aboutsummaryrefslogtreecommitdiff
path: root/posix/environ.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-04-13 09:00:11 +0000
committerRoland McGrath <roland@gnu.org>1995-04-13 09:00:11 +0000
commit6432a7793f6be8d3b6840e47e752103beaca70c9 (patch)
treeae92def50ae8bb8f4a3fb6407cff025592cdd713 /posix/environ.c
parent53afa8d96790cce8fd0d0ce71307bc7ae31c15fb (diff)
downloadglibc-6432a7793f6be8d3b6840e47e752103beaca70c9.zip
glibc-6432a7793f6be8d3b6840e47e752103beaca70c9.tar.gz
glibc-6432a7793f6be8d3b6840e47e752103beaca70c9.tar.bz2
Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/environ.c: Add weak alias `_environ'.
Diffstat (limited to 'posix/environ.c')
-rw-r--r--posix/environ.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/posix/environ.c b/posix/environ.c
index 3eee48e..a0ed0d8 100644
--- a/posix/environ.c
+++ b/posix/environ.c
@@ -6,3 +6,7 @@
/* This must be initialized; we cannot have a weak alias into bss. */
char **__environ = NULL;
weak_alias (__environ, environ)
+
+/* The SVR4 ABI says `_environ' will be the name to use
+ in case the user overrides the weak alias `environ'. */
+weak_alias (__environ, _environ)