From c9caec621be48533b6adf9a1d0d2bd0e8255d484 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 25 Feb 2000 23:28:51 +0000 Subject: Update. * posix/environ.c: Moved to... * sysdeps/generic/environ.c: ...here. New file. --- sysdeps/generic/environ.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sysdeps/generic/environ.c (limited to 'sysdeps/generic/environ.c') diff --git a/sysdeps/generic/environ.c b/sysdeps/generic/environ.c new file mode 100644 index 0000000000..a0ed0d80ea --- /dev/null +++ b/sysdeps/generic/environ.c @@ -0,0 +1,12 @@ +/* This file just defines the `__environ' variable (and alias `environ'). */ + +#include +#include + +/* 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) -- cgit v1.2.3