Subject: Re: lib/10675: __progname is not declared
To: None <joda@pdc.kth.se>
From: Chris G. Demetriou <cgd@sibyte.com>
List: netbsd-bugs
Date: 07/25/2000 16:37:39
joda@pdc.kth.se (Johan Danielsson) writes:
> To solve this I propose that two new functions be added to libc:
> 
>         const char *get_progname(void);
> and
>         void set_progname(const char *);
> 
> The first should return the `name' of the running program (effectively
> __progname), and the second should set that name.

for consistency with other functions' names, it might be better to
elide the underscores.

This is a good idea, though (both get and set).  /usr/share/misc/style
should be updated to include a set, as well.


chris