From owner-freebsd-arch Sun Mar 24 6:40:21 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 7FC7D37B41A for ; Sun, 24 Mar 2002 06:40:15 -0800 (PST) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.11.6/8.11.6) with UUCP id g2OEe9w40120; Sun, 24 Mar 2002 14:40:09 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 g2OEbuXl083121; Sun, 24 Mar 2002 14:37:56 GMT (envelope-from mark@grimreaper.grondar.za) Message-Id: <200203241437.g2OEbuXl083121@grimreaper.grondar.org> To: Bruce Evans Cc: arch@FreeBSD.ORG Subject: Re: Why isn't __progname declared in a header? References: <20020325001528.B44805-100000@gamplex.bde.org> In-Reply-To: <20020325001528.B44805-100000@gamplex.bde.org> ; from Bruce Evans "Mon, 25 Mar 2002 00:24:47 +1100." Date: Sun, 24 Mar 2002 14:37:55 +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 > 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? 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