| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /* This file just defines the `__environ' variable (and alias `environ'). */ |
| 2 | |||||
| 3 | #include <unistd.h> | ||||
| 4 | #include <stddef.h> | ||||
| 5 | |||||
| 6 | /* This must be initialized; we cannot have a weak alias into bss. */ | ||||
| 7 | char **__environ = NULL; | ||||
| 8 | weak_alias (__environ, environ) | ||||
| 9 | |||||
| 10 | /* The SVR4 ABI says `_environ' will be the name to use | ||||
| 11 | in case the user overrides the weak alias `environ'. */ | ||||
| 12 | weak_alias (__environ, _environ) | ||||