suggested bsd-setproctitle.c
David Terrell
dbt at meat.net
Wed Nov 8 12:16:22 EST 2000
On Mon, Nov 06, 2000 at 06:52:02AM +0100, Kevin Steves wrote:
> That should work. But it seems this __progname issue could be cleaned
> up by defining the variable in main() files if needed:
>
> #ifndef HAVE___PROGNAME
> const char *__progname = "foo";
> #endif
>
> then declaring it (no ifdefs) if it's referenced:
>
> extern const char *__progname;
>
> This gets us closer to OpenBSD's tree with fewer ifdefs.
>
> I'll do this patch unless someone points out what it will break :)
It breaks the actual functionality of __progname, which is roughly
equivelent to basename(argv[0]).
--
David Terrell | p = "you are nasty" q = "my first name is Janet"
Nebcorp PM | r = "my first name is baby" s = "My name is Miss Jackson"
dbt at meat.net | (!r -> q) & (p -> s) - Braverman's Third Lemma
wwn.nebcorp.com | !r & (!p -> q) & (p -> s) - Libor's Corrolary
More information about the openssh-unix-dev
mailing list