From owner-freebsd-hackers Sun Jun 1 23:51:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA02259 for hackers-outgoing; Sun, 1 Jun 1997 23:51:37 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id XAA02244 for ; Sun, 1 Jun 1997 23:51:34 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA22636 for freebsd-hackers@freebsd.org; Mon, 2 Jun 1997 08:51:32 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id IAA09304; Mon, 2 Jun 1997 08:34:43 +0200 (MET DST) Message-ID: <19970602083438.EW54555@uriah.heep.sax.de> Date: Mon, 2 Jun 1997 08:34:38 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Re: bcc vs cc/gcc (float) References: <199706020036.UAA18558@lakes.water.net> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199706020036.UAA18558@lakes.water.net>; from Thomas David Rivers on Jun 1, 1997 20:36:41 -0400 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Thomas David Rivers wrote: > > > I don't see a declaration for environ in our /usr/include/ files. > > > Shouldn't it be there? > > > > Posix doesn't specify any (which I think was a mistake), but it would > > be nice to have it as an extension. > I don't think you can do this; because it would violate the user's > name space. You can bracket it in #ifndef _POSIX_SOURCE etc. As it stands now, we do already provide every binary with `environ', so it would be a mistake for a user program to reuse this name as a global. With the proper declaration in unistd.h, you at least give the innocent programmer a hint that this name actually _is_ already in use. It's not that it would get into use by just declaring it, it's always there since crt0 defines it. I don't even think it's a weak symbol, but i might be mistaken in this. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)