From: Roland McGrath Date: Sat, 21 Jan 1995 14:40:39 +0000 (+0000) Subject: Converted to use weak aliases with macros from libc-symbols.h. X-Git-Tag: glibc-2.16-ports-before-merge~3983 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c22ede5ecfc0f03bacdb096c965265ebbb9d409;p=thirdparty%2Fglibc.git Converted to use weak aliases with macros from libc-symbols.h. --- diff --git a/sysdeps/alpha/copysign.c b/sysdeps/alpha/copysign.c index 2136f6bfb09..69544b01fb7 100644 --- a/sysdeps/alpha/copysign.c +++ b/sysdeps/alpha/copysign.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1993 Free Software Foundation, Inc. +/* Copyright (C) 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 @@ -21,9 +21,11 @@ Cambridge, MA 02139, USA. */ #include /* Return X with its sign changed to Y's. */ -__inline __CONSTVALUE double +__inline double __copysign (double __x, double __y) { __asm ("cpys %1, %2, %0" : "=f" (__x) : "f" (__y), "f" (__x)); return __x; } + +weak_alias (__copysign, copysign) diff --git a/sysdeps/m68k/fpu/drem.c b/sysdeps/m68k/fpu/drem.c index b3efffb7778..16caacfd81a 100644 --- a/sysdeps/m68k/fpu/drem.c +++ b/sysdeps/m68k/fpu/drem.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 @@ -22,8 +22,10 @@ Cambridge, MA 02139, USA. */ #undef drem -__CONSTVALUE double +double DEFUN(__drem, (x, y), double x AND double y) { return ____drem(x, y); } + +weak_alias (__drem, drem) diff --git a/sysdeps/standalone/brk.c b/sysdeps/standalone/brk.c index be9174c8dd5..67fbf771a04 100644 --- a/sysdeps/standalone/brk.c +++ b/sysdeps/standalone/brk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 1995 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. @@ -59,10 +59,7 @@ DEFUN(__NONE_set_memvals, (argc, argv, envp), } #ifdef HAVE_GNU_LD - -#include - text_set_element (__libc_subinit, __NONE_set_memvals); - #endif +weak_alias (__brk, brk) diff --git a/sysdeps/standalone/close.c b/sysdeps/standalone/close.c index d7674ae6764..59b607305fc 100644 --- a/sysdeps/standalone/close.c +++ b/sysdeps/standalone/close.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. @@ -40,3 +40,5 @@ DEFUN(__close, (fd), int fd) return 0; } + +weak_alias (__close, close) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/brk.S b/sysdeps/unix/bsd/Attic/osf1/alpha/brk.S index 1475108d64d..111f3397afa 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/brk.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/brk.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 @@ -49,3 +49,5 @@ ENTRY(__brk) error: ldgp gp,0(gp) jmp zero,syscall_error .end __brk + +weak_alias (__brk, brk) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/fork.S b/sysdeps/unix/bsd/Attic/osf1/alpha/fork.S index 8afcfbc43e4..7c8d6718930 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/fork.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/fork.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 @@ -21,3 +21,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (fork, 0) cmovne a4, 0, v0 ret + +weak_alias (__fork, fork) diff --git a/sysdeps/unix/bsd/Attic/osf1/alpha/getdents.S b/sysdeps/unix/bsd/Attic/osf1/alpha/getdents.S index 52f7cdbfea0..16ccbc2ce28 100644 --- a/sysdeps/unix/bsd/Attic/osf1/alpha/getdents.S +++ b/sysdeps/unix/bsd/Attic/osf1/alpha/getdents.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,6 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (getdirentries, 4) ret + +weak_alias (__getdirentries, getdirentries) + diff --git a/sysdeps/unix/bsd/hp/m68k/brk.S b/sysdeps/unix/bsd/hp/m68k/brk.S index 1b06c12fe9a..cf46b4d9023 100644 --- a/sysdeps/unix/bsd/hp/m68k/brk.S +++ b/sysdeps/unix/bsd/hp/m68k/brk.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc. +/* Copyright (C) 1991, 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 @@ -42,3 +42,5 @@ ENTRY (__brk) clrl d0 rts error: jmp syscall_error + +weak_alias (__brk, brk) diff --git a/sysdeps/unix/bsd/sun/getdents.S b/sysdeps/unix/bsd/sun/getdents.S index 6c4f7afa7a7..f283a5cc718 100644 --- a/sysdeps/unix/bsd/sun/getdents.S +++ b/sysdeps/unix/bsd/sun/getdents.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 @@ -20,3 +20,5 @@ Cambridge, MA 02139, USA. */ SYSCALL__ (getdirentries, 4) ret + +weak_alias (__getdirentries, getdirentries) diff --git a/sysdeps/unix/bsd/sun/m68k/brk.S b/sysdeps/unix/bsd/sun/m68k/brk.S index 6a69dd0da4f..114fa73c858 100644 --- a/sysdeps/unix/bsd/sun/m68k/brk.S +++ b/sysdeps/unix/bsd/sun/m68k/brk.S @@ -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 @@ -45,3 +45,5 @@ ENTRY (__brk) rts 1: jmp syscall_error + +weak_alias (__brk, brk) diff --git a/sysdeps/unix/bsd/ultrix4/getdents.S b/sysdeps/unix/bsd/ultrix4/getdents.S index 6d18c04ecab..be449b2bcb6 100644 --- a/sysdeps/unix/bsd/ultrix4/getdents.S +++ b/sysdeps/unix/bsd/ultrix4/getdents.S @@ -1 +1 @@ -#include +#include diff --git a/sysdeps/unix/bsd/vax/brk.S b/sysdeps/unix/bsd/vax/brk.S index 9186d863b68..b3e8e103075 100644 --- a/sysdeps/unix/bsd/vax/brk.S +++ b/sysdeps/unix/bsd/vax/brk.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991 Free Software Foundation, Inc. +/* Copyright (C) 1991, 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 @@ -43,3 +43,5 @@ ENTRY (__brk) ret 1: jmp syscall_error + +weak_alias (__brk, brk) diff --git a/sysdeps/unix/mips/brk.S b/sysdeps/unix/mips/brk.S index 79e4fec4938..1754c0c4de8 100644 --- a/sysdeps/unix/mips/brk.S +++ b/sysdeps/unix/mips/brk.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 @@ -63,3 +63,5 @@ error: j syscall_error nop nop nop + +weak_alias (__brk, brk) diff --git a/sysdeps/unix/mips/fork.S b/sysdeps/unix/mips/fork.S index 53cae3c2f51..2347bf4d50f 100644 --- a/sysdeps/unix/mips/fork.S +++ b/sysdeps/unix/mips/fork.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 @@ -25,3 +25,5 @@ SYSCALL__ (fork, 0) move v0, zero parent: ret + +weak_alias (__fork, fork) diff --git a/sysdeps/unix/sysv/irix4/dup2.c b/sysdeps/unix/sysv/irix4/dup2.c index 53691b6022e..86720b1b70e 100644 --- a/sysdeps/unix/sysv/irix4/dup2.c +++ b/sysdeps/unix/sysv/irix4/dup2.c @@ -1 +1,3 @@ #include + +weak_alias (__dup2, dup2) diff --git a/sysdeps/unix/sysv/irix4/fpathconf.c b/sysdeps/unix/sysv/irix4/fpathconf.c index be39d2f349e..3c9f1750ff0 100644 --- a/sysdeps/unix/sysv/irix4/fpathconf.c +++ b/sysdeps/unix/sysv/irix4/fpathconf.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(__fpathconf, (fd, name), int fd AND int name) { return __syssgi (SGI_PATHCONF, FPATHCONF, fd, name); } + +weak_alias (__fpathconf, fpathconf) diff --git a/sysdeps/unix/sysv/sysv4/dup2.c b/sysdeps/unix/sysv/sysv4/dup2.c index 06270b43390..c7015fce7e2 100644 --- a/sysdeps/unix/sysv/sysv4/dup2.c +++ b/sysdeps/unix/sysv/sysv4/dup2.c @@ -1,2 +1,4 @@ /* SVR4 uses the POSIX dup2. */ #include + +weak_alias (__dup2, dup2) diff --git a/sysdeps/unix/sysv/sysv4/i386/fstat.S b/sysdeps/unix/sysv/sysv4/i386/fstat.S index bf83d6f301e..11743b3fc3c 100644 --- a/sysdeps/unix/sysv/sysv4/i386/fstat.S +++ b/sysdeps/unix/sysv/sysv4/i386/fstat.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 (__fstat) DO_CALL (fxstat, 3) /* Do the syscall. */ jb syscall_error /* Check for error. */ ret /* Return success. */ + +weak_alias (__fstat, fstat)