]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Converted to use weak aliases with macros from libc-symbols.h.
authorRoland McGrath <roland@gnu.org>
Sat, 21 Jan 1995 14:40:39 +0000 (14:40 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 21 Jan 1995 14:40:39 +0000 (14:40 +0000)
18 files changed:
sysdeps/alpha/copysign.c
sysdeps/m68k/fpu/drem.c
sysdeps/standalone/brk.c
sysdeps/standalone/close.c
sysdeps/unix/bsd/Attic/osf1/alpha/brk.S
sysdeps/unix/bsd/Attic/osf1/alpha/fork.S
sysdeps/unix/bsd/Attic/osf1/alpha/getdents.S
sysdeps/unix/bsd/hp/m68k/brk.S
sysdeps/unix/bsd/sun/getdents.S
sysdeps/unix/bsd/sun/m68k/brk.S
sysdeps/unix/bsd/ultrix4/getdents.S
sysdeps/unix/bsd/vax/brk.S
sysdeps/unix/mips/brk.S
sysdeps/unix/mips/fork.S
sysdeps/unix/sysv/irix4/dup2.c
sysdeps/unix/sysv/irix4/fpathconf.c
sysdeps/unix/sysv/sysv4/dup2.c
sysdeps/unix/sysv/sysv4/i386/fstat.S

index 2136f6bfb09474d10436e32b11add84afa4a4bb8..69544b01fb764a4aad816e7ba5d22c42223cc176 100644 (file)
@@ -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 <math.h>
 
 /* 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)
index b3efffb777861eb76c88abb5c018d646bda55fa5..16caacfd81aacc0f5dba6847185bfa9a6b029a7a 100644 (file)
@@ -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)
index be9174c8dd56cbda16e6eaa2b4484aeb22aaab88..67fbf771a0453a25bde8deed533c59049249648a 100644 (file)
@@ -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 <gnu-stabs.h>
-
 text_set_element (__libc_subinit, __NONE_set_memvals);
 #endif
 
+weak_alias (__brk, brk)
index d7674ae67647a073224f73e9b5e1799906f3bada..59b607305fc0747b925a3ee819edb293e8e89635 100644 (file)
@@ -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)
index 1475108d64decb1243b1f44bb437927c92e9c7e0..111f3397afa949fbc310b67050c8cf2fd0bc10b3 100644 (file)
@@ -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)
index 8afcfbc43e4f03106ad2e8975ef0cd0821a5119f..7c8d6718930dde22c63d6b365ba31546fd922d2a 100644 (file)
@@ -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)
index 52f7cdbfea0ae67622ac7773a289d2d9ec47b7f4..16ccbc2ce2801c17853860d589ff08a90b2b7815 100644 (file)
@@ -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)
+
index 1b06c12fe9a5316b0cf5918f686b18cd8de3a1d3..cf46b4d9023ac10f2d6c4332ae142af741ddd3d2 100644 (file)
@@ -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)
index 6c4f7afa7a7ed21efeebf2ad840dfa37283c6f15..f283a5cc7184925bc99da3054d67cab46546d39e 100644 (file)
@@ -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)
index 6a69dd0da4fd08ee6f4917ec9a407fcb68e6ed96..114fa73c85899b75aef680e25a30b459c2317b3c 100644 (file)
@@ -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)
index 6d18c04ecabc960debb28aa95b211bab678f24e7..be449b2bcb69bf98de8878ca75b9ffdc598539f0 100644 (file)
@@ -1 +1 @@
-#include <sysdeps/unix/bsd/sun/__getdents.S>
+#include <sysdeps/unix/bsd/sun/getdents.S>
index 9186d863b687b2b2afc05418199674d5a375f360..b3e8e103075111fe67f64660e58517b509ebb979 100644 (file)
@@ -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)
index 79e4fec4938e546e4de0ab0d4cdfaa87aea28c89..1754c0c4de82295c353a2a2b9452f21c34eed776 100644 (file)
@@ -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)
index 53cae3c2f51082429fd22ffb1e9bb99d5f7f6176..2347bf4d50f2cda53d44d5ebc32004b75284b061 100644 (file)
@@ -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)
index 53691b6022e6cd1f54cdca4c86db29e96320ca8b..86720b1b70e0f4f0544bd9405c962b88d3c46b0e 100644 (file)
@@ -1 +1,3 @@
 #include <sysdeps/posix/__dup2.c>
+
+weak_alias (__dup2, dup2)
index be39d2f349ec6b2bdd7d12fef5efc9732f028793..3c9f1750ff0c5f1d55f1fc104383c2202332a238 100644 (file)
@@ -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)
index 06270b433900c9df1a50d632317b469ef4fde40e..c7015fce7e2e1c061254c7baf6b78cff27f11b1b 100644 (file)
@@ -1,2 +1,4 @@
 /* SVR4 uses the POSIX dup2.  */
 #include <sysdeps/posix/__dup2.c>
+
+weak_alias (__dup2, dup2)
index bf83d6f301e848c6e78d114e733baa209f8e85d4..11743b3fc3cc72b9f662629b93bb5511fceedf7c 100644 (file)
@@ -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)