Subject: Re: lib/10675: __progname is not declared
To: None <firstname.lastname@example.org>
From: Chris G. Demetriou <email@example.com>
Date: 07/25/2000 16:37:39
firstname.lastname@example.org (Johan Danielsson) writes:
> To solve this I propose that two new functions be added to libc:
> const char *get_progname(void);
> 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.