From owner-freebsd-arch Sun Mar 24 9:15:11 2002 Delivered-To: freebsd-arch@freebsd.org Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id E4CA037B419 for ; Sun, 24 Mar 2002 09:15:08 -0800 (PST) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.11.6/8.11.6) with UUCP id g2OHF4R96158; Sun, 24 Mar 2002 17:15:04 GMT (envelope-from mark@grimreaper.grondar.za) Received: from grimreaper (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.2/8.12.2) with ESMTP id g2OHEfXl061582; Sun, 24 Mar 2002 17:14:41 GMT (envelope-from mark@grimreaper.grondar.za) Message-Id: <200203241714.g2OHEfXl061582@grimreaper.grondar.org> To: Bruce Evans Cc: arch@FreeBSD.ORG Subject: Re: Why isn't __progname declared in a header? References: <20020325035923.I46460-100000@gamplex.bde.org> In-Reply-To: <20020325035923.I46460-100000@gamplex.bde.org> ; from Bruce Evans "Mon, 25 Mar 2002 04:01:06 +1100." Date: Sun, 24 Mar 2002 17:14:41 +0000 From: Mark Murray 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 > > > > 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. So what direction do I go in the get it closer to "right"? __progname is implemented in csu/, so it make sense for me to have its header there. Only two files in any other library (lib/libc/gen/[gs]etprogname.c) actually need this information, so it makes sense (to me anyway) for them to have some kind of special case to get it. I don't like a plain declaration, as that makes diverting declarations (more) possible. M -- o Mark Murray \_ O.\_ Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message