From owner-freebsd-hackers Wed Oct 18 01:46:38 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA05815 for hackers-outgoing; Wed, 18 Oct 1995 01:46:38 -0700 Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id BAA05808 for ; Wed, 18 Oct 1995 01:46:34 -0700 Received: from critter.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0t5U8u-0003wHC; Wed, 18 Oct 95 01:46 PDT Received: from localhost (localhost [127.0.0.1]) by critter.tfs.com (8.6.11/8.6.9) with SMTP id JAA00192; Wed, 18 Oct 1995 09:46:31 +0100 X-Authentication-Warning: critter.tfs.com: Host localhost didn't use HELO protocol To: Bruce Evans cc: freebsd-hackers@FreeBSD.ORG, roberto@keltia.freenix.fr Subject: Re: crt0.c In-reply-to: Your message of "Wed, 18 Oct 1995 16:40:12 +1000." <199510180640.QAA15271@godzilla.zeta.org.au> Date: Wed, 18 Oct 1995 09:46:30 +0100 Message-ID: <190.814005990@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > >With all the talk about crt0.c, locale and friends, I just saw the > >following : > >[...] > >Why is it using "regular" getenv when it already has its own private one > >_getenv ? > > Because no one noticed that _getenv() existed when the locale bloat was > added. The private _getenv() is to avoid linking in whatever bloat may > be attached to getenv() (there actually isn't much). Similarly for all > the other private functions in crt0.c. Linking to to _startup_selocale() > defeats the point of most or all of these because there is a lot of bloat > attached to _startup_setlocale(). BZZZT!!! Wrong. The local functions, as well as the local syscall code is there so that it works before libc.so has been loaded. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.