Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 00:24:47 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mark Murray <mark@grondar.za>
Cc:        <arch@FreeBSD.ORG>
Subject:   Re: Why isn't __progname declared in a header?
Message-ID:  <20020325001528.B44805-100000@gamplex.bde.org>
In-Reply-To: <200203241141.g2OBfZXl019225@grimreaper.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 24 Mar 2002, Mark Murray wrote:

> __progname is (inconsistently) declared all over the place. Why is
> this not in a header?

Because all over the place is unwarrantedly chummy with the implementation.
__progname should only be used in csu/*/crt1.c, getprogname(3),
setprogname(3) and perhaps in other parts of the implementation.

> Next question, what header should it go into? I'm quite happy to do
> the work.

libc/include/libc_private.h is almost right.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020325001528.B44805-100000>