From 1cec31f4d43f0a2ddc3ff268512b9f0db79f2466 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 21 Jan 1995 15:40:54 +0000 Subject: [PATCH] Converted to use weak aliases with macros from libc-symbols.h. --- sysdeps/m68k/fpu/isinf.c | 6 ++++-- sysdeps/m68k/fpu/isnan.c | 4 +++- sysdeps/m68k/fpu/logb.c | 8 +++++--- sysdeps/m68k/fpu/rint.c | 2 ++ sysdeps/mach/hurd/alpha/sigreturn.c | 4 +++- sysdeps/mach/hurd/mips/sigreturn.c | 4 +++- sysdeps/standalone/open.c | 8 +++----- sysdeps/standalone/read.c | 4 +++- sysdeps/standalone/write.c | 4 +++- sysdeps/unix/bsd/Attic/osf1/alpha/pipe.S | 4 +++- sysdeps/unix/bsd/Attic/osf1/alpha/sigblock.S | 4 +++- sysdeps/unix/bsd/Attic/osf1/alpha/sigpause.S | 4 +++- sysdeps/unix/bsd/Attic/osf1/alpha/sigsetmask.S | 4 +++- sysdeps/unix/bsd/Attic/osf1/alpha/sigvec.S | 4 +++- sysdeps/unix/bsd/Attic/osf1/alpha/wait4.S | 2 +- sysdeps/unix/bsd/Attic/osf1/alpha/waitpid.c | 2 +- sysdeps/unix/bsd/hp/m68k/wait3.S | 4 +++- sysdeps/unix/bsd/m68k/pipe.S | 4 +++- sysdeps/unix/bsd/m68k/wait.S | 4 +++- sysdeps/unix/bsd/sequent/i386/getgroups.S | 4 +++- sysdeps/unix/bsd/sequent/i386/sigvec.S | 4 +++- sysdeps/unix/bsd/sony/newsos4/wait.c | 2 +- sysdeps/unix/bsd/sony/newsos4/wait3.c | 2 +- sysdeps/unix/bsd/sony/newsos4/wait4.c | 2 +- sysdeps/unix/bsd/sun/sigreturn.S | 4 +++- sysdeps/unix/bsd/sun/sigvec.S | 4 +++- sysdeps/unix/bsd/sun/sunos3/m68k/wait.S | 2 +- sysdeps/unix/bsd/sun/sunos4/setsid.S | 2 +- sysdeps/unix/bsd/sun/sunos4/tcgetattr.c | 4 +++- sysdeps/unix/bsd/sun/sunos4/wait.c | 2 +- sysdeps/unix/bsd/sun/sunos4/wait3.c | 2 +- sysdeps/unix/bsd/sun/sunos4/wait4.c | 4 +++- sysdeps/unix/bsd/sun/sunos4/waitpid.c | 2 +- sysdeps/unix/bsd/ultrix4/mips/sigvec.S | 2 +- sysdeps/unix/bsd/ultrix4/mips/vfork.S | 4 +++- sysdeps/unix/bsd/ultrix4/setsid.S | 2 +- sysdeps/unix/bsd/ultrix4/sysconf.c | 4 ++-- sysdeps/unix/bsd/ultrix4/wait3.S | 4 +++- sysdeps/unix/bsd/ultrix4/waitpid.S | 4 +++- sysdeps/unix/bsd/vax/pipe.S | 4 +++- sysdeps/unix/bsd/vax/wait.S | 4 +++- sysdeps/unix/bsd/vax/wait3.S | 4 +++- sysdeps/unix/mips/pipe.S | 4 +++- sysdeps/unix/mips/sigreturn.S | 4 +++- sysdeps/unix/mips/wait.S | 4 +++- sysdeps/unix/sysv/i386/sigreturn.S | 4 +++- sysdeps/unix/sysv/irix4/getgroups.c | 4 +++- sysdeps/unix/sysv/irix4/getrusage.c | 4 +++- sysdeps/unix/sysv/irix4/gettimeofday.c | 2 ++ sysdeps/unix/sysv/irix4/pathconf.c | 4 +++- sysdeps/unix/sysv/irix4/setpgid.S | 4 +++- sysdeps/unix/sysv/irix4/sigreturn.S | 4 +++- sysdeps/unix/sysv/irix4/sysconf.c | 4 +++- sysdeps/unix/sysv/irix4/wait.S | 4 +++- sysdeps/unix/sysv/irix4/wait3.S | 2 +- sysdeps/unix/sysv/irix4/waitpid.c | 2 +- sysdeps/unix/sysv/sco3.2.4/getgroups.c | 4 +++- sysdeps/unix/sysv/sco3.2.4/pathconf.S | 4 +++- sysdeps/unix/sysv/sco3.2.4/setpgid.c | 2 +- sysdeps/unix/sysv/sco3.2.4/setsid.c | 2 +- sysdeps/unix/sysv/sco3.2.4/sigaction.S | 4 +++- sysdeps/unix/sysv/sco3.2.4/sigprocmask.S | 4 +++- sysdeps/unix/sysv/sco3.2.4/sysconf.S | 4 +++- sysdeps/unix/sysv/sco3.2.4/waitpid.S | 4 +++- sysdeps/unix/sysv/sysv4/getdtsz.c | 2 +- sysdeps/unix/sysv/sysv4/gethostname.c | 4 +++- sysdeps/unix/sysv/sysv4/getpagesize.c | 2 +- sysdeps/unix/sysv/sysv4/i386/lstat.S | 4 +++- sysdeps/unix/sysv/sysv4/i386/mknod.S | 4 +++- sysdeps/unix/sysv/sysv4/i386/stat.S | 4 +++- sysdeps/unix/sysv/sysv4/i386/vfork.S | 2 +- sysdeps/unix/sysv/sysv4/setpgid.c | 4 +++- sysdeps/unix/sysv/sysv4/setsid.c | 4 +++- sysdeps/unix/sysv/sysv4/sigaction.c | 4 +++- sysdeps/unix/sysv/sysv4/sigprocmask.S | 4 +++- sysdeps/unix/sysv/sysv4/solaris2/utimes.S | 2 +- sysdeps/unix/sysv/sysv4/sysconf.c | 4 +++- sysdeps/unix/sysv/sysv4/waitpid.c | 4 +++- sysdeps/vax/infnan.c | 4 +++- sysdeps/vax/memccpy.c | 4 +++- 80 files changed, 200 insertions(+), 86 deletions(-) diff --git a/sysdeps/m68k/fpu/isinf.c b/sysdeps/m68k/fpu/isinf.c index c816dcd0675..ab2cf0bb03a 100644 --- a/sysdeps/m68k/fpu/isinf.c +++ b/sysdeps/m68k/fpu/isinf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 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 @@ -25,8 +25,10 @@ Cambridge, MA 02139, USA. */ #endif -__CONSTVALUE int +int DEFUN(FUNC, (x), double x) { return __m81_u(FUNC)(x); } + +weak_alias (__isinf, isinf) diff --git a/sysdeps/m68k/fpu/isnan.c b/sysdeps/m68k/fpu/isnan.c index e90c691cca9..d0984911d2b 100644 --- a/sysdeps/m68k/fpu/isnan.c +++ b/sysdeps/m68k/fpu/isnan.c @@ -1,2 +1,4 @@ #define FUNC __isnan -#include <__isinf.c> +#include + +weak_alias (__isnan, isnan) diff --git a/sysdeps/m68k/fpu/logb.c b/sysdeps/m68k/fpu/logb.c index 27ce1048fdd..8619c908c86 100644 --- a/sysdeps/m68k/fpu/logb.c +++ b/sysdeps/m68k/fpu/logb.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993, 1994, 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 @@ -23,7 +23,7 @@ Cambridge, MA 02139, USA. */ /* Return the base 2 signed integral exponent of X. */ -__CONSTVALUE double +double DEFUN(__logb, (x), double x) { if (__isnan (x)) @@ -39,6 +39,8 @@ DEFUN(__logb, (x), double x) return x; } +weak_alias (__logb, logb) + #else -#include +#include #endif diff --git a/sysdeps/m68k/fpu/rint.c b/sysdeps/m68k/fpu/rint.c index 288ae81ce42..f83a4e4c3f7 100644 --- a/sysdeps/m68k/fpu/rint.c +++ b/sysdeps/m68k/fpu/rint.c @@ -1,3 +1,5 @@ #define FUNC __rint #define OP intr #include + +weak_alias (__rint, rint) diff --git a/sysdeps/mach/hurd/alpha/sigreturn.c b/sysdeps/mach/hurd/alpha/sigreturn.c index c178a034357..4adfb8d78fd 100644 --- a/sysdeps/mach/hurd/alpha/sigreturn.c +++ b/sysdeps/mach/hurd/alpha/sigreturn.c @@ -1,5 +1,5 @@ /* Return from signal handler in GNU C library for Hurd. Alpha version. -Copyright (C) 1994 Free Software Foundation, Inc. +Copyright (C) 1994, 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 @@ -207,3 +207,5 @@ __sigreturn (struct sigcontext *scp) /* NOTREACHED */ return -1; } + +weak_alias (__sigreturn, sigreturn) diff --git a/sysdeps/mach/hurd/mips/sigreturn.c b/sysdeps/mach/hurd/mips/sigreturn.c index 0b3a474986e..d1d444f075a 100644 --- a/sysdeps/mach/hurd/mips/sigreturn.c +++ b/sysdeps/mach/hurd/mips/sigreturn.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1994, 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 @@ -164,3 +164,5 @@ __sigreturn (struct sigcontext *scp) /* NOTREACHED */ return -1; } + +weak_alias (__sigreturn, sigreturn) diff --git a/sysdeps/standalone/open.c b/sysdeps/standalone/open.c index fdcaf65134c..910e7933e77 100644 --- a/sysdeps/standalone/open.c +++ b/sysdeps/standalone/open.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. @@ -116,9 +116,7 @@ DEFUN(__NONE_init_console_io, (argc, argv, envp), } #ifdef HAVE_GNU_LD - -#include - text_set_element (__libc_subinit, __NONE_init_console_io); - #endif + +weak_alias (__open, open) diff --git a/sysdeps/standalone/read.c b/sysdeps/standalone/read.c index 1c87b1103af..284321d717e 100644 --- a/sysdeps/standalone/read.c +++ b/sysdeps/standalone/read.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. @@ -83,3 +83,5 @@ DEFUN(__read, (fd, buf, nbytes), *buffer = data; return 1; } + +weak_alias (__read, read) diff --git a/sysdeps/standalone/write.c b/sysdeps/standalone/write.c index 22c01a4f042..f0ae3888f62 100644 --- a/sysdeps/standalone/write.c +++ b/sysdeps/standalone/write.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. @@ -70,3 +70,5 @@ DEFUN(__write, (fd, buf, nbytes), return count; } + +weak_alias (__write, write) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/pipe.S b/sysdeps/unix/bsd/Attic/osf1/alpha/pipe.S index 6973e960317..6b074eda1a1 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/pipe.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -26,3 +26,5 @@ SYSCALL__ (pipe, 1) /* Go out with a clean status. */ mov zero, r0 ret + +weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/sigblock.S b/sysdeps/unix/bsd/Attic/osf1/alpha/sigblock.S index eefd6414247..c3556a915f8 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/sigblock.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/sigblock.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -23,3 +23,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (sigblock, 1) ret + +weak_alias (__sigblock, sigblock) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/sigpause.S b/sysdeps/unix/bsd/Attic/osf1/alpha/sigpause.S index 893ee089ebb..04b6d45db77 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/sigpause.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/sigpause.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -23,3 +23,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (sigpause, 1) ret + +weak_alias (__sigpause, sigpause) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/sigsetmask.S b/sysdeps/unix/bsd/Attic/osf1/alpha/sigsetmask.S index f2536d7aff8..fb3a1d19f73 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/sigsetmask.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/sigsetmask.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -23,3 +23,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (sigsetmask, 1) ret + +weak_alias (__sigsetmask, sigsetmask) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/sigvec.S b/sysdeps/unix/bsd/Attic/osf1/alpha/sigvec.S index d0d3ae00ed8..b04ec6e12ed 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/sigvec.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/sigvec.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -23,3 +23,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (sigvec, 3) ret + +weak_alias (__sigvec, sigvec) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/wait4.S b/sysdeps/unix/bsd/Attic/osf1/alpha/wait4.S index 0f76c625b65..e4c322341d4 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/wait4.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/wait4.S @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/waitpid.c b/sysdeps/unix/bsd/Attic/osf1/alpha/waitpid.c index 47129a88453..8378982ac73 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/waitpid.c +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/waitpid.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/hp/m68k/wait3.S b/sysdeps/unix/bsd/hp/m68k/wait3.S index d02f27fe7c8..d0e758595ac 100644 --- a/sysdeps/unix/bsd/hp/m68k/wait3.S +++ b/sysdeps/unix/bsd/hp/m68k/wait3.S @@ -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 @@ -35,3 +35,5 @@ ENTRY(__wait3) .globl syscall_error error: jmp syscall_error + +weak_alias (__wait3, wait3) diff --git a/sysdeps/unix/bsd/m68k/pipe.S b/sysdeps/unix/bsd/m68k/pipe.S index 547b4f351b0..633d18fe2cc 100644 --- a/sysdeps/unix/bsd/m68k/pipe.S +++ b/sysdeps/unix/bsd/m68k/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993, 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 @@ -28,3 +28,5 @@ SYSCALL__ (pipe, 1) #endif clrl d0 rts + +weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/bsd/m68k/wait.S b/sysdeps/unix/bsd/m68k/wait.S index 927fa338b0d..c7685b72aa8 100644 --- a/sysdeps/unix/bsd/m68k/wait.S +++ b/sysdeps/unix/bsd/m68k/wait.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993, 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 @@ -31,3 +31,5 @@ SYSCALL__ (wait, 1) movel d1, a0@ #endif 1: rts + +weak_alias (__wait, wait) diff --git a/sysdeps/unix/bsd/sequent/i386/getgroups.S b/sysdeps/unix/bsd/sequent/i386/getgroups.S index cf25abe043d..b68bcbdbaa2 100644 --- a/sysdeps/unix/bsd/sequent/i386/getgroups.S +++ b/sysdeps/unix/bsd/sequent/i386/getgroups.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -40,3 +40,5 @@ myerror: addl %esp, $(NGROUPS_MAX * 4) /* Pop the local array. */ jb syscall_error /* Check for error from the system call. */ ret /* Return its value. */ + +weak_alias (__getgroups, getgroups) diff --git a/sysdeps/unix/bsd/sequent/i386/sigvec.S b/sysdeps/unix/bsd/sequent/i386/sigvec.S index a5812c7fee1..1bb57c20748 100644 --- a/sysdeps/unix/bsd/sequent/i386/sigvec.S +++ b/sysdeps/unix/bsd/sequent/i386/sigvec.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 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 @@ -41,3 +41,5 @@ ENTRY (__sigvec) DO_CALL (sigvec, 4) /* Do the system call. */ jb syscall_error /* Check for error. */ ret + +weak_alias (__sigvec, sigvec) diff --git a/sysdeps/unix/bsd/sony/newsos4/wait.c b/sysdeps/unix/bsd/sony/newsos4/wait.c index d9ee77b4a34..79d54580fd7 100644 --- a/sysdeps/unix/bsd/sony/newsos4/wait.c +++ b/sysdeps/unix/bsd/sony/newsos4/wait.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/sony/newsos4/wait3.c b/sysdeps/unix/bsd/sony/newsos4/wait3.c index ecc11134bbb..0b3bdee7717 100644 --- a/sysdeps/unix/bsd/sony/newsos4/wait3.c +++ b/sysdeps/unix/bsd/sony/newsos4/wait3.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/sony/newsos4/wait4.c b/sysdeps/unix/bsd/sony/newsos4/wait4.c index 9183ce1b533..856c99fd61d 100644 --- a/sysdeps/unix/bsd/sony/newsos4/wait4.c +++ b/sysdeps/unix/bsd/sony/newsos4/wait4.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/sun/sigreturn.S b/sysdeps/unix/bsd/sun/sigreturn.S index 9a3b5e6bdf3..d0a3f3a56be 100644 --- a/sysdeps/unix/bsd/sun/sigreturn.S +++ b/sysdeps/unix/bsd/sun/sigreturn.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 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 @@ -24,3 +24,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (sigreturn, 1) /* Does not return. */ + +weak_alias (__sigreturn, sigreturn) diff --git a/sysdeps/unix/bsd/sun/sigvec.S b/sysdeps/unix/bsd/sun/sigvec.S index fdf919c7b8c..c09397486f8 100644 --- a/sysdeps/unix/bsd/sun/sigvec.S +++ b/sysdeps/unix/bsd/sun/sigvec.S @@ -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 @@ -22,3 +22,5 @@ Cambridge, MA 02139, USA. */ PSEUDO (__raw_sigvec, sigvec, 3) ret + +weak_alias (__sigvec, sigvec) diff --git a/sysdeps/unix/bsd/sun/sunos3/m68k/wait.S b/sysdeps/unix/bsd/sun/sunos3/m68k/wait.S index c7f681dff1c..f69c4b44312 100644 --- a/sysdeps/unix/bsd/sun/sunos3/m68k/wait.S +++ b/sysdeps/unix/bsd/sun/sunos3/m68k/wait.S @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/sun/sunos4/setsid.S b/sysdeps/unix/bsd/sun/sunos4/setsid.S index e0f94b08681..4930c56dcf4 100644 --- a/sysdeps/unix/bsd/sun/sunos4/setsid.S +++ b/sysdeps/unix/bsd/sun/sunos4/setsid.S @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/sun/sunos4/tcgetattr.c b/sysdeps/unix/bsd/sun/sunos4/tcgetattr.c index dce1b02ae0f..5e45037bb28 100644 --- a/sysdeps/unix/bsd/sun/sunos4/tcgetattr.c +++ b/sysdeps/unix/bsd/sun/sunos4/tcgetattr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 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 @@ -29,3 +29,5 @@ DEFUN(__tcgetattr, (fd, termios_p), { return __ioctl (fd, TCGETS, termios_p); } + +weak_alias (__tcgetattr, tcgetattr) diff --git a/sysdeps/unix/bsd/sun/sunos4/wait.c b/sysdeps/unix/bsd/sun/sunos4/wait.c index d9ee77b4a34..79d54580fd7 100644 --- a/sysdeps/unix/bsd/sun/sunos4/wait.c +++ b/sysdeps/unix/bsd/sun/sunos4/wait.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/sun/sunos4/wait3.c b/sysdeps/unix/bsd/sun/sunos4/wait3.c index ecc11134bbb..0b3bdee7717 100644 --- a/sysdeps/unix/bsd/sun/sunos4/wait3.c +++ b/sysdeps/unix/bsd/sun/sunos4/wait3.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/sun/sunos4/wait4.c b/sysdeps/unix/bsd/sun/sunos4/wait4.c index 3e9fdcbe63b..4d15ddc9e89 100644 --- a/sysdeps/unix/bsd/sun/sunos4/wait4.c +++ b/sysdeps/unix/bsd/sun/sunos4/wait4.c @@ -2,7 +2,7 @@ SunOS 4.1) on top of SunOS's wait4 system call, which has semantics different from those documented. Go Sun! -Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. +Copyright (C) 1991, 1992, 1993, 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 @@ -46,3 +46,5 @@ DEFUN(__wait4, (pid, stat_loc, options, usage), return __wait4_syscall (pid, stat_loc, options, usage); } + +weak_alias (__wait4, wait4) diff --git a/sysdeps/unix/bsd/sun/sunos4/waitpid.c b/sysdeps/unix/bsd/sun/sunos4/waitpid.c index 47129a88453..8378982ac73 100644 --- a/sysdeps/unix/bsd/sun/sunos4/waitpid.c +++ b/sysdeps/unix/bsd/sun/sunos4/waitpid.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/ultrix4/mips/sigvec.S b/sysdeps/unix/bsd/ultrix4/mips/sigvec.S index fdf919c7b8c..20a5dd1c49b 100644 --- a/sysdeps/unix/bsd/ultrix4/mips/sigvec.S +++ b/sysdeps/unix/bsd/ultrix4/mips/sigvec.S @@ -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 diff --git a/sysdeps/unix/bsd/ultrix4/mips/vfork.S b/sysdeps/unix/bsd/ultrix4/mips/vfork.S index e194db0c408..37f6d8016d9 100644 --- a/sysdeps/unix/bsd/ultrix4/mips/vfork.S +++ b/sysdeps/unix/bsd/ultrix4/mips/vfork.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -29,3 +29,5 @@ SYSCALL__ (vfork, 0) parent: ret nop + +weak_alias (__vfork, vfork) diff --git a/sysdeps/unix/bsd/ultrix4/setsid.S b/sysdeps/unix/bsd/ultrix4/setsid.S index e0f94b08681..4930c56dcf4 100644 --- a/sysdeps/unix/bsd/ultrix4/setsid.S +++ b/sysdeps/unix/bsd/ultrix4/setsid.S @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/ultrix4/sysconf.c b/sysdeps/unix/bsd/ultrix4/sysconf.c index c0b32038bb3..a9f3c5bbbee 100644 --- a/sysdeps/unix/bsd/ultrix4/sysconf.c +++ b/sysdeps/unix/bsd/ultrix4/sysconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995 Free Software Foundation, Inc. Contributed by Ian Lance Taylor (ian@airs.com). The GNU C Library is free software; you can redistribute it and/or @@ -58,4 +58,4 @@ DEFUN(__sysconf, (name), int name) #define __sysconf __default_sysconf -#include +#include diff --git a/sysdeps/unix/bsd/ultrix4/wait3.S b/sysdeps/unix/bsd/ultrix4/wait3.S index 102ca185221..83910a5d7b3 100644 --- a/sysdeps/unix/bsd/ultrix4/wait3.S +++ b/sysdeps/unix/bsd/ultrix4/wait3.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -20,3 +20,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (wait3, 3) ret + +weak_alias (__wait3, wait3) diff --git a/sysdeps/unix/bsd/ultrix4/waitpid.S b/sysdeps/unix/bsd/ultrix4/waitpid.S index 3bc5ce2f5ef..b64e528b69a 100644 --- a/sysdeps/unix/bsd/ultrix4/waitpid.S +++ b/sysdeps/unix/bsd/ultrix4/waitpid.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -20,3 +20,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (waitpid, 3) ret + +weak_alias (__waitpid, waitpid) diff --git a/sysdeps/unix/bsd/vax/pipe.S b/sysdeps/unix/bsd/vax/pipe.S index 9501744c115..10c681aac6a 100644 --- a/sysdeps/unix/bsd/vax/pipe.S +++ b/sysdeps/unix/bsd/vax/pipe.S @@ -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 @@ -24,3 +24,5 @@ SYSCALL__ (pipe, 1) movl r1, (r2) clrl r0 ret + +weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/bsd/vax/wait.S b/sysdeps/unix/bsd/vax/wait.S index 5316be20269..77311b49bfd 100644 --- a/sysdeps/unix/bsd/vax/wait.S +++ b/sysdeps/unix/bsd/vax/wait.S @@ -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 @@ -23,3 +23,5 @@ SYSCALL__ (wait, 1) beq 1f movl r1, (r2) 1: ret + +weak_alias (__wait, wait) diff --git a/sysdeps/unix/bsd/vax/wait3.S b/sysdeps/unix/bsd/vax/wait3.S index 2e7ab13d38b..2d8dba82979 100644 --- a/sysdeps/unix/bsd/vax/wait3.S +++ b/sysdeps/unix/bsd/vax/wait3.S @@ -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 @@ -33,3 +33,5 @@ ENTRY(___wait3) .globl syscall_error error: jmp syscall_error + +weak_alias (__wait3, wait3) diff --git a/sysdeps/unix/mips/pipe.S b/sysdeps/unix/mips/pipe.S index 507a7537f51..f8ce56b118c 100644 --- a/sysdeps/unix/mips/pipe.S +++ b/sysdeps/unix/mips/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -27,3 +27,5 @@ SYSCALL__ (pipe, 1) j ra move v0, zero nop + +weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/mips/sigreturn.S b/sysdeps/unix/mips/sigreturn.S index 02e4d2519ed..1e76bf5f99b 100644 --- a/sysdeps/unix/mips/sigreturn.S +++ b/sysdeps/unix/mips/sigreturn.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -25,3 +25,5 @@ Cambridge, MA 02139, USA. */ ENTRY(__sigreturn) li v0, SYS_sigreturn syscall + +weak_alias (__sigreturn, sigreturn) diff --git a/sysdeps/unix/mips/wait.S b/sysdeps/unix/mips/wait.S index 2e9a2596187..63bce849d4e 100644 --- a/sysdeps/unix/mips/wait.S +++ b/sysdeps/unix/mips/wait.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -40,3 +40,5 @@ noerror: nop noarg: ret + +weak_alias (__wait, wait) diff --git a/sysdeps/unix/sysv/i386/sigreturn.S b/sysdeps/unix/sysv/i386/sigreturn.S index 47905b36fa4..be1c6b89bf6 100644 --- a/sysdeps/unix/sysv/i386/sigreturn.S +++ b/sysdeps/unix/sysv/i386/sigreturn.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -23,3 +23,5 @@ ENTRY (__sigreturn) addl $4, %esp /* Pop the return PC. */ lcall $0xf, $0 /* Do the magic sigreturn trap. */ /* NOTREACHED */ + +weak_alias (__sigreturn, sigreturn) diff --git a/sysdeps/unix/sysv/irix4/getgroups.c b/sysdeps/unix/sysv/irix4/getgroups.c index b85b13942c3..714f66077f5 100644 --- a/sysdeps/unix/sysv/irix4/getgroups.c +++ b/sysdeps/unix/sysv/irix4/getgroups.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -29,3 +29,5 @@ DEFUN(__getgroups, (n, groups), size_t n AND gid_t *groups) { return __syssgi (SGI_GETGROUPS, n, groups); } + +weak_alias (__getgroups, getgroups) diff --git a/sysdeps/unix/sysv/irix4/getrusage.c b/sysdeps/unix/sysv/irix4/getrusage.c index e160980a7f9..fdd3a24042d 100644 --- a/sysdeps/unix/sysv/irix4/getrusage.c +++ b/sysdeps/unix/sysv/irix4/getrusage.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -31,3 +31,5 @@ DEFUN(__getrusage, (who, usage), { return __syssgi (SGI_RUSAGE, who, usage); } + +weak_alias (__getrusage, getrusage) diff --git a/sysdeps/unix/sysv/irix4/gettimeofday.c b/sysdeps/unix/sysv/irix4/gettimeofday.c index d92b3bb868c..8a55f99984f 100644 --- a/sysdeps/unix/sysv/irix4/gettimeofday.c +++ b/sysdeps/unix/sysv/irix4/gettimeofday.c @@ -1 +1,3 @@ #include + +weak_alias (__gettimeofday, gettimeofday) diff --git a/sysdeps/unix/sysv/irix4/pathconf.c b/sysdeps/unix/sysv/irix4/pathconf.c index 6e54661f4b1..698e30aab78 100644 --- a/sysdeps/unix/sysv/irix4/pathconf.c +++ b/sysdeps/unix/sysv/irix4/pathconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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,3 +30,5 @@ DEFUN(__pathconf, (path, name), CONST char *path AND int name) { return __syssgi (SGI_PATHCONF, PATHCONF, path, name); } + +weak_alias (__pathconf, pathconf) diff --git a/sysdeps/unix/sysv/irix4/setpgid.S b/sysdeps/unix/sysv/irix4/setpgid.S index 2e3135b51c6..38ce9cbdcc0 100644 --- a/sysdeps/unix/sysv/irix4/setpgid.S +++ b/sysdeps/unix/sysv/irix4/setpgid.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -20,3 +20,5 @@ Cambridge, MA 02139, USA. */ PSEUDO (__setpgrp, bsdsetpgrp, 2) ret + +weak_alias (__setpgrp, setpgrp) diff --git a/sysdeps/unix/sysv/irix4/sigreturn.S b/sysdeps/unix/sysv/irix4/sigreturn.S index 1d624685fd6..ebb5c1ae445 100644 --- a/sysdeps/unix/sysv/irix4/sigreturn.S +++ b/sysdeps/unix/sysv/irix4/sigreturn.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@cs.widener.edu). The GNU C Library is free software; you can redistribute it and/or @@ -21,3 +21,5 @@ Cambridge, MA 02139, USA. */ ENTRY(__sigreturn) li v0, SYS_sigreturn syscall + +weak_alias (__sigreturn, sigreturn) diff --git a/sysdeps/unix/sysv/irix4/sysconf.c b/sysdeps/unix/sysv/irix4/sysconf.c index 497c6a78282..a3103622399 100644 --- a/sysdeps/unix/sysv/irix4/sysconf.c +++ b/sysdeps/unix/sysv/irix4/sysconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -31,3 +31,5 @@ DEFUN(__sysconf, (name), int name) return __syssgi (SGI_SYSCONF, name); } + +weak_alias (__sysconf, sysconf) diff --git a/sysdeps/unix/sysv/irix4/wait.S b/sysdeps/unix/sysv/irix4/wait.S index a50a5e68166..9f2afa7997d 100644 --- a/sysdeps/unix/sysv/irix4/wait.S +++ b/sysdeps/unix/sysv/irix4/wait.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@cs.widener.edu). The GNU C Library is free software; you can redistribute it and/or @@ -38,3 +38,5 @@ noerror: nop noarg: ret + +weak_alias (__wait, wait) diff --git a/sysdeps/unix/sysv/irix4/wait3.S b/sysdeps/unix/sysv/irix4/wait3.S index d4ed738f8c0..54065aefdff 100644 --- a/sysdeps/unix/sysv/irix4/wait3.S +++ b/sysdeps/unix/sysv/irix4/wait3.S @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/sysv/irix4/waitpid.c b/sysdeps/unix/sysv/irix4/waitpid.c index 47129a88453..8378982ac73 100644 --- a/sysdeps/unix/sysv/irix4/waitpid.c +++ b/sysdeps/unix/sysv/irix4/waitpid.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/sysv/sco3.2.4/getgroups.c b/sysdeps/unix/sysv/sco3.2.4/getgroups.c index 82e5fbab644..68966bc5df7 100644 --- a/sysdeps/unix/sysv/sco3.2.4/getgroups.c +++ b/sysdeps/unix/sysv/sco3.2.4/getgroups.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -41,3 +41,5 @@ DEFUN(__getgroups, (size, list), int size AND gid_t *list) return size; } + +weak_alias (__getgroups, getgroups) diff --git a/sysdeps/unix/sysv/sco3.2.4/pathconf.S b/sysdeps/unix/sysv/sco3.2.4/pathconf.S index 2c737620f67..1c4dd9571c6 100644 --- a/sysdeps/unix/sysv/sco3.2.4/pathconf.S +++ b/sysdeps/unix/sysv/sco3.2.4/pathconf.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 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 @@ -20,3 +20,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (pathconf, 2) ret + +weak_alias (__pathconf, pathconf) diff --git a/sysdeps/unix/sysv/sco3.2.4/setpgid.c b/sysdeps/unix/sysv/sco3.2.4/setpgid.c index 928e6d01209..32f7daf0050 100644 --- a/sysdeps/unix/sysv/sco3.2.4/setpgid.c +++ b/sysdeps/unix/sysv/sco3.2.4/setpgid.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/sysv/sco3.2.4/setsid.c b/sysdeps/unix/sysv/sco3.2.4/setsid.c index 4a0a706aa54..63376525521 100644 --- a/sysdeps/unix/sysv/sco3.2.4/setsid.c +++ b/sysdeps/unix/sysv/sco3.2.4/setsid.c @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/sysv/sco3.2.4/sigaction.S b/sysdeps/unix/sysv/sco3.2.4/sigaction.S index f5453da4cf5..dc1bb418d64 100644 --- a/sysdeps/unix/sysv/sco3.2.4/sigaction.S +++ b/sysdeps/unix/sysv/sco3.2.4/sigaction.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1994, 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 @@ -25,3 +25,5 @@ ENTRY (__sigaction) DO_CALL (sigaction, 3) jb syscall_error ret + +weak_alias (__sigaction, sigaction) diff --git a/sysdeps/unix/sysv/sco3.2.4/sigprocmask.S b/sysdeps/unix/sysv/sco3.2.4/sigprocmask.S index 148741ec8c9..ff199158a41 100644 --- a/sysdeps/unix/sysv/sco3.2.4/sigprocmask.S +++ b/sysdeps/unix/sysv/sco3.2.4/sigprocmask.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 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 @@ -20,3 +20,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (sigprocmask, 3) ret + +weak_alias (__sigprocmask, sigprocmask) diff --git a/sysdeps/unix/sysv/sco3.2.4/sysconf.S b/sysdeps/unix/sysv/sco3.2.4/sysconf.S index 58e14654d14..631e5e977af 100644 --- a/sysdeps/unix/sysv/sco3.2.4/sysconf.S +++ b/sysdeps/unix/sysv/sco3.2.4/sysconf.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1994, 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 @@ -26,3 +26,5 @@ ENTRY (__sysconf) DO_CALL (sysconf, 1) /* No; use the SCO system call. */ ret tzname: jmp C_SYMBOL_NAME(__tzname_max) /* Yes; bounce to __tzname_max (). */ + +weak_alias (__sysconf, sysconf) diff --git a/sysdeps/unix/sysv/sco3.2.4/waitpid.S b/sysdeps/unix/sysv/sco3.2.4/waitpid.S index 63decf1d9ce..523ef37e531 100644 --- a/sysdeps/unix/sysv/sco3.2.4/waitpid.S +++ b/sysdeps/unix/sysv/sco3.2.4/waitpid.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1994, 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 @@ -32,3 +32,5 @@ ENTRY (__waitpid) je null movl r1, (scratch) /* Yes; store the status there. */ null: ret + +weak_alias (__waitpid, waitpid) diff --git a/sysdeps/unix/sysv/sysv4/getdtsz.c b/sysdeps/unix/sysv/sysv4/getdtsz.c index 9de35d5af67..c1ae6108fba 100644 --- a/sysdeps/unix/sysv/sysv4/getdtsz.c +++ b/sysdeps/unix/sysv/sysv4/getdtsz.c @@ -1,2 +1,2 @@ /* Solaris uses sysconf ala POSIX.1. */ -#include +#include diff --git a/sysdeps/unix/sysv/sysv4/gethostname.c b/sysdeps/unix/sysv/sysv4/gethostname.c index c1c9e0a454a..cce1149e7f2 100644 --- a/sysdeps/unix/sysv/sysv4/gethostname.c +++ b/sysdeps/unix/sysv/sysv4/gethostname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -29,3 +29,5 @@ DEFUN(__gethostname, (name, namelen), char *name AND size_t namelen) { return __sysinfo (SI_HOSTNAME, name, namelen); } + +weak_alias (__gethostname, gethostname) diff --git a/sysdeps/unix/sysv/sysv4/getpagesize.c b/sysdeps/unix/sysv/sysv4/getpagesize.c index 241348cbfb1..61196407586 100644 --- a/sysdeps/unix/sysv/sysv4/getpagesize.c +++ b/sysdeps/unix/sysv/sysv4/getpagesize.c @@ -1,2 +1,2 @@ /* Solaris uses sysconf ala POSIX.1. */ -#include +#include diff --git a/sysdeps/unix/sysv/sysv4/i386/lstat.S b/sysdeps/unix/sysv/sysv4/i386/lstat.S index 0ca214fa47b..52ffdbadfdc 100644 --- a/sysdeps/unix/sysv/sysv4/i386/lstat.S +++ b/sysdeps/unix/sysv/sysv4/i386/lstat.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -33,3 +33,5 @@ ENTRY (__lstat) DO_CALL (lxstat, 3) /* Do the syscall. */ jb syscall_error /* Check for error. */ ret /* Return success. */ + +weak_alias (__lstat, lstat) diff --git a/sysdeps/unix/sysv/sysv4/i386/mknod.S b/sysdeps/unix/sysv/sysv4/i386/mknod.S index 4c879cbefbf..21f932c921a 100644 --- a/sysdeps/unix/sysv/sysv4/i386/mknod.S +++ b/sysdeps/unix/sysv/sysv4/i386/mknod.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -32,3 +32,5 @@ ENTRY (__mknod) DO_CALL (xmknod, 3) /* Do the syscall. */ jb syscall_error /* Check for error. */ ret /* Return success. */ + +weak_alias (__mknod, mknod) diff --git a/sysdeps/unix/sysv/sysv4/i386/stat.S b/sysdeps/unix/sysv/sysv4/i386/stat.S index 72829332fd8..3a5107c2676 100644 --- a/sysdeps/unix/sysv/sysv4/i386/stat.S +++ b/sysdeps/unix/sysv/sysv4/i386/stat.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -33,3 +33,5 @@ ENTRY (__stat) DO_CALL (xstat, 3) /* Do the syscall. */ jb syscall_error /* Check for error. */ ret /* Return success. */ + +weak_alias (__stat, stat) diff --git a/sysdeps/unix/sysv/sysv4/i386/vfork.S b/sysdeps/unix/sysv/sysv4/i386/vfork.S index 1cdebcded9f..bbe99fbc41a 100644 --- a/sysdeps/unix/sysv/sysv4/i386/vfork.S +++ b/sysdeps/unix/sysv/sysv4/i386/vfork.S @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/sysv/sysv4/setpgid.c b/sysdeps/unix/sysv/sysv4/setpgid.c index 90eff3c51c1..e71f0db7f0a 100644 --- a/sysdeps/unix/sysv/sysv4/setpgid.c +++ b/sysdeps/unix/sysv/sysv4/setpgid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 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,3 +30,5 @@ DEFUN(__setpgrp, (pid, pgid), int pid AND int pgid) { return __pgrpsys (1, pid, pgid); } + +weak_alias (__setpgrp, setpgrp) diff --git a/sysdeps/unix/sysv/sysv4/setsid.c b/sysdeps/unix/sysv/sysv4/setsid.c index a32b39ad3bd..f0d6c8a4cd0 100644 --- a/sysdeps/unix/sysv/sysv4/setsid.c +++ b/sysdeps/unix/sysv/sysv4/setsid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 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,3 +30,5 @@ DEFUN_VOID(__setsid) { return __pgrpsys (3); } + +weak_alias (__setsid, setsid) diff --git a/sysdeps/unix/sysv/sysv4/sigaction.c b/sysdeps/unix/sysv/sysv4/sigaction.c index 2644fb03ad9..68fd7a18469 100644 --- a/sysdeps/unix/sysv/sysv4/sigaction.c +++ b/sysdeps/unix/sysv/sysv4/sigaction.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 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 @@ -75,3 +75,5 @@ DEFUN(__sigaction, (sig, act, oact), return 0; } + +weak_alias (__sigaction, sigaction) diff --git a/sysdeps/unix/sysv/sysv4/sigprocmask.S b/sysdeps/unix/sysv/sysv4/sigprocmask.S index 5da366da82b..51fddb0bee9 100644 --- a/sysdeps/unix/sysv/sysv4/sigprocmask.S +++ b/sysdeps/unix/sysv/sysv4/sigprocmask.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -20,3 +20,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (sigprocmask, 3) ret + +weak_alias (__sigprocmask, sigprocmask) diff --git a/sysdeps/unix/sysv/sysv4/solaris2/utimes.S b/sysdeps/unix/sysv/sysv4/solaris2/utimes.S index 16baf448b19..54a043c835b 100644 --- a/sysdeps/unix/sysv/sysv4/solaris2/utimes.S +++ b/sysdeps/unix/sysv/sysv4/solaris2/utimes.S @@ -1,2 +1,2 @@ /* Solaris has the BSD `utimes' function. */ -#include +#include diff --git a/sysdeps/unix/sysv/sysv4/sysconf.c b/sysdeps/unix/sysv/sysv4/sysconf.c index 71d3d087254..607cd05d149 100644 --- a/sysdeps/unix/sysv/sysv4/sysconf.c +++ b/sysdeps/unix/sysv/sysv4/sysconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -177,3 +177,5 @@ DEFUN(__sysconf, (name), int name) #endif } } + +weak_alias (__sysconf, sysconf) diff --git a/sysdeps/unix/sysv/sysv4/waitpid.c b/sysdeps/unix/sysv/sysv4/waitpid.c index a0ca8c2f120..f54df4bf6bd 100644 --- a/sysdeps/unix/sysv/sysv4/waitpid.c +++ b/sysdeps/unix/sysv/sysv4/waitpid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -116,3 +116,5 @@ DEFUN(__waitpid, (pid, stat_loc, options), any PID. */ return infop.__pid; } + +weak_alias (__waitpid, waitpid) diff --git a/sysdeps/vax/infnan.c b/sysdeps/vax/infnan.c index aa755ed6bc6..62ec9dca0f9 100644 --- a/sysdeps/vax/infnan.c +++ b/sysdeps/vax/infnan.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 @@ -58,3 +58,5 @@ DEFUN(__infnan, (error), int error) } #endif + +weak_alias (__infnan, infnan) diff --git a/sysdeps/vax/memccpy.c b/sysdeps/vax/memccpy.c index 84df894c3f9..9849761f13a 100644 --- a/sysdeps/vax/memccpy.c +++ b/sysdeps/vax/memccpy.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 @@ -41,3 +41,5 @@ DEFUN(__memccpy, (dest, src, c, n), (void) memcpy (dest, src, (char *) found + 1 - (char *) src); return (PTR) ((char *) dest + ((char *) found + 1 - (char *) src)); } + +weak_alias (__memccpy, memccpy) -- 2.47.3