1995-02-20 01:08:14 +00:00
|
|
|
/* This file just defines the `__environ' variable (and alias `environ'). */
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stddef.h>
|
2025-03-07 20:40:55 +00:00
|
|
|
#include <stdlib/setenv.h>
|
1995-02-20 01:08:14 +00:00
|
|
|
|
|
|
|
/* This must be initialized; we cannot have a weak alias into bss. */
|
|
|
|
char **__environ = NULL;
|
|
|
|
weak_alias (__environ, environ)
|
1995-04-13 09:00:11 +00:00
|
|
|
|
|
|
|
/* The SVR4 ABI says `_environ' will be the name to use
|
|
|
|
in case the user overrides the weak alias `environ'. */
|
|
|
|
weak_alias (__environ, _environ)
|
2025-03-07 20:40:55 +00:00
|
|
|
|
|
|
|
struct environ_array *__environ_array_list;
|
|
|
|
environ_counter __environ_counter;
|