aboutsummaryrefslogtreecommitdiff
path: root/posix/environ.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-02-20 01:08:14 +0000
committerRoland McGrath <roland@gnu.org>1995-02-20 01:08:14 +0000
commit5f9e57babebe38587437ac432f26e5421f5532da (patch)
treeb7127b569ca33e355c98722376e2d9853abb049b /posix/environ.c
parent50de467103a56c688d52b7b14cea82dba79d1ad4 (diff)
downloadglibc-5f9e57babebe38587437ac432f26e5421f5532da.zip
glibc-5f9e57babebe38587437ac432f26e5421f5532da.tar.gz
glibc-5f9e57babebe38587437ac432f26e5421f5532da.tar.bz2
Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
* posix/Makefile (aux): Add environ. * posix/environ.c: New file. * sysdeps/unix/sparc/start.c: Remove __environ definition. * sysdeps/unix/start.c: Likewise. * sysdeps/unix/sysv/irix4/start.c: Likewise. * sysdeps/mach/hurd/start.c: Likewise. * sysdeps/mach/start.c: Likewise. * sysdeps/stub/start.c: Likewise. * sysdeps/unix/make_errlist.c: In produced program, test HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD. * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file. Remove extra weak alias. * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name in #include. * libc-symbols.h: Put comment around ^L to pacify Solaris as. * sysdeps/posix/Makefile (cded-objdir-includes): New variable replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of $(CPPFLAGS). (mk-stdiolim): Use it instead. * mach/mach_init.c (__vm_page_size): Make it initialized. It does not work to make a weak alias to a bss symbol. * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy. (tests): Add test-fwrite. * stdio/test-fwrite.c: New file. * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof, __strtold. * Makefile (autoconf-it): New canned sequence. Do cvs commit if there is a CVS directory. (configure, %/configure): Use $(autoconf-it) for cmds. * Make-dist: Likewise. * Makerules ($(gpl2lgpl)): Likewise. inlines cause trouble for files defining global register variables. * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
Diffstat (limited to 'posix/environ.c')
-rw-r--r--posix/environ.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/posix/environ.c b/posix/environ.c
new file mode 100644
index 0000000..3eee48e
--- /dev/null
+++ b/posix/environ.c
@@ -0,0 +1,8 @@
+/* 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)