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. --- ChangeLog | 3 +++ posix/environ.c | 12 ------------ sysdeps/generic/environ.c | 12 ++++++++++++ 3 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 posix/environ.c create mode 100644 sysdeps/generic/environ.c diff --git a/ChangeLog b/ChangeLog index b776ebc89f..46848fc943 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * sysdeps/powerpc/bzero.S: Moved to... * sysdeps/powerpc/elf/bzero.S: ...here. New file. + * posix/environ.c: Moved to... + * sysdeps/generic/environ.c: ...here. New file. + 2000-02-25 Andreas Jaeger * stdio-common/Makefile (CFLAGS-_itoa.c): The code has been diff --git a/posix/environ.c b/posix/environ.c deleted file mode 100644 index a0ed0d80ea..0000000000 --- a/posix/environ.c +++ /dev/null @@ -1,12 +0,0 @@ -/* 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) 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