diff options
Diffstat (limited to 'REORG.TODO/posix/environ.c')
-rw-r--r-- | REORG.TODO/posix/environ.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/REORG.TODO/posix/environ.c b/REORG.TODO/posix/environ.c new file mode 100644 index 0000000000..a0ed0d80ea --- /dev/null +++ b/REORG.TODO/posix/environ.c @@ -0,0 +1,12 @@ +/* This file just defines the `__environ' variable (and alias `environ'). */ + +#include <unistd.h> +#include <stddef.h> + +/* 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) |