mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-16 01:50:11 +00:00
Converted to use weak aliases with macros from libc-symbols.h.
This commit is contained in:
parent
3332ae5c89
commit
3c22ede5ec
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -1 +1 @@
|
||||
#include <sysdeps/unix/bsd/sun/__getdents.S>
|
||||
#include <sysdeps/unix/bsd/sun/getdents.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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -1 +1,3 @@
|
||||
#include <sysdeps/posix/__dup2.c>
|
||||
|
||||
weak_alias (__dup2, dup2)
|
||||
|
@ -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)
|
||||
|
@ -1,2 +1,4 @@
|
||||
/* SVR4 uses the POSIX dup2. */
|
||||
#include <sysdeps/posix/__dup2.c>
|
||||
|
||||
weak_alias (__dup2, dup2)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user