diff options
author | Roland McGrath <roland@gnu.org> | 1995-02-20 01:08:14 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-02-20 01:08:14 +0000 |
commit | 5f9e57babebe38587437ac432f26e5421f5532da (patch) | |
tree | b7127b569ca33e355c98722376e2d9853abb049b /sysdeps/unix | |
parent | 50de467103a56c688d52b7b14cea82dba79d1ad4 (diff) | |
download | glibc-5f9e57babebe38587437ac432f26e5421f5532da.tar.gz glibc-5f9e57babebe38587437ac432f26e5421f5532da.tar.xz glibc-5f9e57babebe38587437ac432f26e5421f5532da.zip |
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 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/make_errlist.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sparc/start.c | 9 | ||||
-rw-r--r-- | sysdeps/unix/start.c | 6 | ||||
-rw-r--r-- | sysdeps/unix/sysv/irix4/start.c | 9 | ||||
-rw-r--r-- | sysdeps/unix/sysv/sysv4/dup2.c | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/sysv4/sigaltstack.S | 2 |
6 files changed, 5 insertions, 27 deletions
diff --git a/sysdeps/unix/make_errlist.c b/sysdeps/unix/make_errlist.c index 40b4f820c0..705dcfe88a 100644 --- a/sysdeps/unix/make_errlist.c +++ b/sysdeps/unix/make_errlist.c @@ -31,7 +31,7 @@ main () puts ("#include \"ansidecl.h\"\n#include <stddef.h>\n"); puts ("\n/* This is a list of all known `errno' codes. */\n"); - puts ("#ifndef HAVE_GNU_LD"); + puts ("#ifndef HAVE_WEAK_SYMBOLS"); puts ("#define _sys_nerr\tsys_nerr"); puts ("#define _sys_errlist\tsys_errlist"); puts ("#endif"); diff --git a/sysdeps/unix/sparc/start.c b/sysdeps/unix/sparc/start.c index e0f39f5b73..f8567d2103 100644 --- a/sysdeps/unix/sparc/start.c +++ b/sysdeps/unix/sparc/start.c @@ -42,15 +42,6 @@ weak_alias (__data_start, data_start) VOLATILE int errno; -#ifdef HAVE_WEAK_SYMBOLS -weak_alias (__environ, environ) -#else -#undef environ -#define __environ environ -#endif - -char **__environ; - extern void EXFUN(__libc_init, (int argc, char **argv, char **envp)); extern int EXFUN(main, (int argc, char **argv, char **envp)); diff --git a/sysdeps/unix/start.c b/sysdeps/unix/start.c index da7ec71ffb..feb5f44fb8 100644 --- a/sysdeps/unix/start.c +++ b/sysdeps/unix/start.c @@ -37,15 +37,11 @@ weak_alias (__data_start, data_start) VOLATILE int errno; -#ifdef HAVE_WEAK_SYMBOLS -weak_alias (__environ, environ) -#else +#ifndef HAVE_WEAK_SYMBOLS #undef environ #define __environ environ #endif -char **__environ; - extern void EXFUN(__libc_init, (int argc, char **argv, char **envp)); extern int EXFUN(main, (int argc, char **argv, char **envp)); diff --git a/sysdeps/unix/sysv/irix4/start.c b/sysdeps/unix/sysv/irix4/start.c index 4382e6f855..cd86f85244 100644 --- a/sysdeps/unix/sysv/irix4/start.c +++ b/sysdeps/unix/sysv/irix4/start.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -30,13 +30,6 @@ int __data_start = 0; VOLATILE int errno = 0; -#ifndef HAVE_GNU_LD -#undef environ -#define __environ environ -#endif - -char **__environ; - extern void EXFUN(__libc_init, (int argc, char **argv, char **envp)); extern int EXFUN(main, (int argc, char **argv, char **envp)); diff --git a/sysdeps/unix/sysv/sysv4/dup2.c b/sysdeps/unix/sysv/sysv4/dup2.c index c7015fce7e..7d36e0e352 100644 --- a/sysdeps/unix/sysv/sysv4/dup2.c +++ b/sysdeps/unix/sysv/sysv4/dup2.c @@ -1,4 +1,2 @@ /* SVR4 uses the POSIX dup2. */ -#include <sysdeps/posix/__dup2.c> - -weak_alias (__dup2, dup2) +#include <sysdeps/posix/dup2.c> diff --git a/sysdeps/unix/sysv/sysv4/sigaltstack.S b/sysdeps/unix/sysv/sysv4/sigaltstack.S index e7e4060fba..f7cf0d57f4 100644 --- a/sysdeps/unix/sysv/sysv4/sigaltstack.S +++ b/sysdeps/unix/sysv/sysv4/sigaltstack.S @@ -1,2 +1,2 @@ /* SVR4 uses the BSD 4.4 sigaltstack syscall. */ -#include <sysdeps/unix/bsd/bsd4.4/sigaltstk.S> +#include <sysdeps/unix/bsd/bsd4.4/sigaltstack.S> |