From owner-freebsd-arch Sun Mar 24 9: 2: 4 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 947E637B404 for ; Sun, 24 Mar 2002 09:01:54 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id EAA22766; Mon, 25 Mar 2002 04:00:43 +1100 Date: Mon, 25 Mar 2002 04:01:06 +1100 (EST) From: Bruce Evans X-X-Sender: To: Mark Murray Cc: Subject: Re: Why isn't __progname declared in a header? In-Reply-To: <200203241437.g2OEbuXl083121@grimreaper.grondar.org> Message-ID: <20020325035923.I46460-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 24 Mar 2002, Mark Murray wrote: > > 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. > > OK, I've fixed that in src/lib/lib* > > > > Next question, what header should it go into? I'm quite happy to do > > > the work. > > > > libc/include/libc_private.h is almost right. > > Hmm. It is implemented in csu/*/crt[01].c, so how about > csu/common/_progname.h? Further from being almost right. It would be a new header with very little in it, and isn't in libc's tree any more than libc's header is in csu's tree. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message