From owner-freebsd-hackers Tue Oct 17 23:43:13 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA01254 for hackers-outgoing; Tue, 17 Oct 1995 23:43:13 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id XAA01238 for ; Tue, 17 Oct 1995 23:43:07 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id QAA15271; Wed, 18 Oct 1995 16:40:12 +1000 Date: Wed, 18 Oct 1995 16:40:12 +1000 From: Bruce Evans Message-Id: <199510180640.QAA15271@godzilla.zeta.org.au> To: freebsd-hackers@FreeBSD.ORG, roberto@keltia.freenix.fr Subject: Re: crt0.c 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(). Bruce