From da5f5f79867173aa46c6626fe990e26bf4991fef Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 3 Aug 2002 06:57:53 +0000 Subject: [PATCH] Add libc_hidden_def. Remove undef and INTDEF. --- sysdeps/standalone/close.c | 5 ++--- sysdeps/standalone/open.c | 3 ++- sysdeps/standalone/read.c | 5 +++-- sysdeps/standalone/write.c | 4 +++- sysdeps/unix/bsd/m68k/pipe.S | 3 ++- sysdeps/unix/bsd/osf/alpha/pipe.S | 3 ++- sysdeps/unix/bsd/vax/pipe.S | 3 ++- sysdeps/unix/mips/pipe.S | 3 ++- sysdeps/unix/sysv/aix/chown.c | 4 +--- sysdeps/unix/sysv/aix/close.c | 3 ++- sysdeps/unix/sysv/aix/fcntl.c | 5 ++--- sysdeps/unix/sysv/aix/getpgid.c | 4 +--- sysdeps/unix/sysv/aix/getpid.c | 3 +++ sysdeps/unix/sysv/aix/open.c | 6 ++---- sysdeps/unix/sysv/aix/pipe.c | 3 ++- sysdeps/unix/sysv/aix/poll.c | 3 ++- sysdeps/unix/sysv/aix/read.c | 4 +++- sysdeps/unix/sysv/aix/sbrk.c | 3 ++- sysdeps/unix/sysv/aix/select.c | 3 ++- sysdeps/unix/sysv/aix/setpgid.c | 3 ++- sysdeps/unix/sysv/aix/sigaction.c | 3 ++- sysdeps/unix/sysv/aix/sigsuspend.c | 3 ++- sysdeps/unix/sysv/aix/statfs.c | 3 ++- sysdeps/unix/sysv/aix/write.c | 6 ++---- sysdeps/unix/sysv/linux/alpha/pipe.S | 3 ++- sysdeps/unix/sysv/linux/alpha/select.S | 4 +++- sysdeps/unix/sysv/linux/alpha/sigsuspend.S | 3 ++- sysdeps/unix/sysv/linux/arm/sigaction.c | 3 ++- sysdeps/unix/sysv/linux/m68k/chown.c | 2 +- sysdeps/unix/sysv/linux/m68k/getpagesize.c | 5 +---- sysdeps/unix/sysv/linux/mips/pwrite64.c | 3 ++- sysdeps/unix/sysv/linux/mips/sigaction.c | 3 ++- sysdeps/unix/sysv/sco3.2.4/__setpgid.c | 3 ++- sysdeps/unix/sysv/sco3.2.4/sigaction.S | 3 ++- sysdeps/unix/sysv/sysv4/__getpgid.c | 4 +--- sysdeps/unix/sysv/sysv4/__setpgid.c | 3 ++- sysdeps/unix/sysv/sysv4/getpgid.c | 5 +---- sysdeps/unix/sysv/sysv4/setpgid.c | 4 ++-- sysdeps/unix/sysv/sysv4/sigaction.c | 4 ++-- 39 files changed, 77 insertions(+), 63 deletions(-) diff --git a/sysdeps/standalone/close.c b/sysdeps/standalone/close.c index b0fa5f0c8b..8c2caf1975 100644 --- a/sysdeps/standalone/close.c +++ b/sysdeps/standalone/close.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. This file is part of the GNU C Library. @@ -39,6 +39,5 @@ __close (fd) __FD_Table[ fd ].in_use = 0; return 0; } - - +libc_hidden_def (__close) weak_alias (__close, close) diff --git a/sysdeps/standalone/open.c b/sysdeps/standalone/open.c index 2be04f4b26..e0a3432415 100644 --- a/sysdeps/standalone/open.c +++ b/sysdeps/standalone/open.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. This file is part of the GNU C Library. @@ -82,6 +82,7 @@ __open (file, oflag) return newfd; } +libc_hidden_def (__open) /* Initialization Code for Console I/O */ diff --git a/sysdeps/standalone/read.c b/sysdeps/standalone/read.c index 2daee870d0..0fb9e7a1ec 100644 --- a/sysdeps/standalone/read.c +++ b/sysdeps/standalone/read.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. This file is part of the GNU C Library. @@ -80,6 +80,7 @@ __libc_read (int fd, void *buf, size_t nbytes) *buffer = data; return 1; } - +libc_hidden_def (__libc_read) weak_alias (__libc_read, __read) +libc_hidden_weak (__read) weak_alias (__libc_read, read) diff --git a/sysdeps/standalone/write.c b/sysdeps/standalone/write.c index a5fe44ea26..5d3823065f 100644 --- a/sysdeps/standalone/write.c +++ b/sysdeps/standalone/write.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. Ported to standalone by Joel Sherrill jsherril@redstone-emh2.army.mil, On-Line Applications Research Corporation. This file is part of the GNU C Library. @@ -67,5 +67,7 @@ __libc_write (int fd, const void *buf, size_t nbytes) return count; } +libc_hidden_def (__libc_write) weak_alias (__libc_write, __write) +libc_hidden_weak (__write) weak_alias (__libc_write, write) diff --git a/sysdeps/unix/bsd/m68k/pipe.S b/sysdeps/unix/bsd/m68k/pipe.S index 93db95e149..d7b8ec28d5 100644 --- a/sysdeps/unix/bsd/m68k/pipe.S +++ b/sysdeps/unix/bsd/m68k/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991,1992,1993,1995,1997,2002 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,4 +29,5 @@ SYSCALL__ (pipe, 1) clrl d0 rts +libc_hidden_def (__pipe) weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/bsd/osf/alpha/pipe.S b/sysdeps/unix/bsd/osf/alpha/pipe.S index 0916ff4e74..b4eb2166e0 100644 --- a/sysdeps/unix/bsd/osf/alpha/pipe.S +++ b/sysdeps/unix/bsd/osf/alpha/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Brendan Kehoe (brendan@zen.org). @@ -29,4 +29,5 @@ SYSCALL__ (pipe, 1) ret .end __pipe +libc_hidden_def (__pipe) weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/bsd/vax/pipe.S b/sysdeps/unix/bsd/vax/pipe.S index 691cf3c390..3ed784264c 100644 --- a/sysdeps/unix/bsd/vax/pipe.S +++ b/sysdeps/unix/bsd/vax/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1995, 1997, 2002 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,4 +25,5 @@ SYSCALL__ (pipe, 1) clrl r0 ret +libc_hidden_def (__pipe) weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/mips/pipe.S b/sysdeps/unix/mips/pipe.S index a2f4ec7ead..1aebb9b81b 100644 --- a/sysdeps/unix/mips/pipe.S +++ b/sysdeps/unix/mips/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1995, 1997, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995, 1997, 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Brendan Kehoe (brendan@zen.org). @@ -29,4 +29,5 @@ SYSCALL__ (pipe, 1) j ra .end __pipe +libc_hidden_def (__pipe) weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/sysv/aix/chown.c b/sysdeps/unix/sysv/aix/chown.c index 037b14b276..2b6e82e739 100644 --- a/sysdeps/unix/sysv/aix/chown.c +++ b/sysdeps/unix/sysv/aix/chown.c @@ -18,11 +18,9 @@ #include -#undef __chown - int __chown (const char *file, uid_t owner, gid_t group) { return chown (file, owner, group); } -INTDEF(__chown) +libc_hidden_def (__chown) diff --git a/sysdeps/unix/sysv/aix/close.c b/sysdeps/unix/sysv/aix/close.c index f1b9a01eb8..7be595643f 100644 --- a/sysdeps/unix/sysv/aix/close.c +++ b/sysdeps/unix/sysv/aix/close.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2002 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,4 @@ __close (int fd) { return close (fd); } +libc_hidden_def (__close) diff --git a/sysdeps/unix/sysv/aix/fcntl.c b/sysdeps/unix/sysv/aix/fcntl.c index f9bb42a766..7f16cbe013 100644 --- a/sysdeps/unix/sysv/aix/fcntl.c +++ b/sysdeps/unix/sysv/aix/fcntl.c @@ -19,9 +19,6 @@ #include #include -#undef __libc_fcntl -#undef __fcntl - extern int kfcntl (int fdes, int cmd, unsigned long int arg); int @@ -40,5 +37,7 @@ __fcntl (int fdes, int cmd, ...) return res; } +libc_hidden_def (__fcntl) strong_alias (__fcntl, fcntl) strong_alias (__fcntl, __libc_fcntl) +libc_hidden_def (__libc_fcntl) diff --git a/sysdeps/unix/sysv/aix/getpgid.c b/sysdeps/unix/sysv/aix/getpgid.c index 889e3e1cac..a6e75f3f9c 100644 --- a/sysdeps/unix/sysv/aix/getpgid.c +++ b/sysdeps/unix/sysv/aix/getpgid.c @@ -18,8 +18,6 @@ #include -#undef __getpgid - extern int kgetpgidx (pid_t pid); int @@ -27,5 +25,5 @@ __getgpid (pid_t pid) { return kgetpgidx (pid); } -INTDEF(__getgpid) +libc_hidden_def (__getgpid) strong_alias (__getpgid, getpgid) diff --git a/sysdeps/unix/sysv/aix/getpid.c b/sysdeps/unix/sysv/aix/getpid.c index 67ef7eaf79..8a74e22da7 100644 --- a/sysdeps/unix/sysv/aix/getpid.c +++ b/sysdeps/unix/sysv/aix/getpid.c @@ -1,6 +1,9 @@ /* This is a system call. We only have to provide the wrapper. */ +#include + int __getpid (void) { return getpid (); } +libc_hidden_def (__getpid) diff --git a/sysdeps/unix/sysv/aix/open.c b/sysdeps/unix/sysv/aix/open.c index c41c708564..2b42f8e81b 100644 --- a/sysdeps/unix/sysv/aix/open.c +++ b/sysdeps/unix/sysv/aix/open.c @@ -20,9 +20,6 @@ #include #include -#undef __libc_open -#undef __open - int __open (const char *file, int oflag, ...) { @@ -38,5 +35,6 @@ __open (const char *file, int oflag, ...) return open (file, oflag, mode); } +libc_hidden_def (__open) strong_alias (__open, __libc_open) -INTDEF(__open) +libc_hidden_def (__libc_open) diff --git a/sysdeps/unix/sysv/aix/pipe.c b/sysdeps/unix/sysv/aix/pipe.c index 385e0be4cb..4a3ba1c041 100644 --- a/sysdeps/unix/sysv/aix/pipe.c +++ b/sysdeps/unix/sysv/aix/pipe.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2002 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,4 @@ __pipe (pipedes) { return pipe (pipedes); } +libc_hidden_def (__pipe) diff --git a/sysdeps/unix/sysv/aix/poll.c b/sysdeps/unix/sysv/aix/poll.c index 890dcd0dbc..5ce5409914 100644 --- a/sysdeps/unix/sysv/aix/poll.c +++ b/sysdeps/unix/sysv/aix/poll.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2001, 2002 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,4 @@ __poll (fds, nfds, timeout) { return poll (fds, nfds, timeout); } +libc_hidden_def (__poll) diff --git a/sysdeps/unix/sysv/aix/read.c b/sysdeps/unix/sysv/aix/read.c index 50b59a3af7..ca0edb30d5 100644 --- a/sysdeps/unix/sysv/aix/read.c +++ b/sysdeps/unix/sysv/aix/read.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2002 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,5 +25,7 @@ __libc_read (int fd, void *buf, size_t len) { return kread (fd, buf, len); } +libc_hidden_def (__libc_read) strong_alias (__libc_read, __read) +libc_hidden_def (__read) strong_alias (__libc_read, read) diff --git a/sysdeps/unix/sysv/aix/sbrk.c b/sysdeps/unix/sysv/aix/sbrk.c index af56c4b1e8..0a590ee8c6 100644 --- a/sysdeps/unix/sysv/aix/sbrk.c +++ b/sysdeps/unix/sysv/aix/sbrk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2002 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,4 @@ __sbrk (intptr_t delta) { return sbrk (delta); } +libc_hidden_def (__sbrk) diff --git a/sysdeps/unix/sysv/aix/select.c b/sysdeps/unix/sysv/aix/select.c index e5c48dcde9..9bf5bae47c 100644 --- a/sysdeps/unix/sysv/aix/select.c +++ b/sysdeps/unix/sysv/aix/select.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2002 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,4 @@ __select (nfds, readfds, writefds, exceptfds, timeout) { return select (nfds, readfds, writefds, exceptfds, timeout); } +libc_hidden_def (__select) diff --git a/sysdeps/unix/sysv/aix/setpgid.c b/sysdeps/unix/sysv/aix/setpgid.c index 5150929aaf..b076f28ed6 100644 --- a/sysdeps/unix/sysv/aix/setpgid.c +++ b/sysdeps/unix/sysv/aix/setpgid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2002 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,4 @@ __setpgid (pid, pgid) { return setpgid (pid, pgid); } +libc_hidden_def (__setpgid) diff --git a/sysdeps/unix/sysv/aix/sigaction.c b/sysdeps/unix/sysv/aix/sigaction.c index 272c271db8..6b48a505c0 100644 --- a/sysdeps/unix/sysv/aix/sigaction.c +++ b/sysdeps/unix/sysv/aix/sigaction.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1997,2000,2002 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,4 +32,5 @@ __sigaction (sig, act, oact) { return _sigaction (sig, act, oact); } +libc_hidden_def (__sigaction) strong_alias (__sigaction, sigaction) diff --git a/sysdeps/unix/sysv/aix/sigsuspend.c b/sysdeps/unix/sysv/aix/sigsuspend.c index afca6b793e..c9120d6e97 100644 --- a/sysdeps/unix/sysv/aix/sigsuspend.c +++ b/sysdeps/unix/sysv/aix/sigsuspend.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995-1998, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995-1998, 2000, 2002 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,4 +29,5 @@ __sigsuspend (set) { return _sigsuspend (set); } +libc_hidden_def (__sigsuspend) weak_alias (__sigsuspend, sigsuspend) diff --git a/sysdeps/unix/sysv/aix/statfs.c b/sysdeps/unix/sysv/aix/statfs.c index f44a1c6a27..1ead597da6 100644 --- a/sysdeps/unix/sysv/aix/statfs.c +++ b/sysdeps/unix/sysv/aix/statfs.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2002 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,4 @@ __statfs (const char *file, struct statfs *buf) { return statfs (file, buf); } +libc_hidden_def (__statfs) diff --git a/sysdeps/unix/sysv/aix/write.c b/sysdeps/unix/sysv/aix/write.c index 5a1ac101e4..0cc5d33aca 100644 --- a/sysdeps/unix/sysv/aix/write.c +++ b/sysdeps/unix/sysv/aix/write.c @@ -21,9 +21,6 @@ #include "kernel_proto.h" -#undef __libc_write -#undef __write - ssize_t __write (fd, ptr, n) int fd; @@ -32,7 +29,8 @@ __write (fd, ptr, n) { return kwrite (fd, ptr, n); } -INTDEF(__write) +libc_hidden_def (__write) /* AIX has no weak aliases (yet) but let's hope for better times. */ weak_alias (__write, write) strong_alias (__write, __libc_write) +libc_hidden_def (__libc_write) diff --git a/sysdeps/unix/sysv/linux/alpha/pipe.S b/sysdeps/unix/sysv/linux/alpha/pipe.S index 5d2905a8dc..2da4d78abd 100644 --- a/sysdeps/unix/sysv/linux/alpha/pipe.S +++ b/sysdeps/unix/sysv/linux/alpha/pipe.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger (davidm@cs.arizona.edu). @@ -28,4 +28,5 @@ PSEUDO (__pipe, pipe, 0) ret PSEUDO_END(__pipe) +libc_hidden_def (__pipe) weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/sysv/linux/alpha/select.S b/sysdeps/unix/sysv/linux/alpha/select.S index 40c0f9fb40..57030aaa4e 100644 --- a/sysdeps/unix/sysv/linux/alpha/select.S +++ b/sysdeps/unix/sysv/linux/alpha/select.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998, 2002 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 @@ -124,6 +124,8 @@ default_symbol_version (__select_tv64, __select, GLIBC_2.1) The 'p' is for 'public'. *Shrug* */ strong_alias (__select_tv64, __select_tv64p) default_symbol_version (__select_tv64p, select, GLIBC_2.1) +libc_hidden_ver (__select_tv64, __select) #else weak_alias (__select, select) +libc_hidden_def (__select) #endif diff --git a/sysdeps/unix/sysv/linux/alpha/sigsuspend.S b/sysdeps/unix/sysv/linux/alpha/sigsuspend.S index 7aa851e9ea..d6a17851ca 100644 --- a/sysdeps/unix/sysv/linux/alpha/sigsuspend.S +++ b/sysdeps/unix/sysv/linux/alpha/sigsuspend.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger , 1995. @@ -51,4 +51,5 @@ error: END(__sigsuspend) +libc_hidden_def (__sigsuspend) weak_alias(__sigsuspend, sigsuspend) diff --git a/sysdeps/unix/sysv/linux/arm/sigaction.c b/sysdeps/unix/sysv/linux/arm/sigaction.c index f39665f3c4..a137ce7ad1 100644 --- a/sysdeps/unix/sysv/linux/arm/sigaction.c +++ b/sysdeps/unix/sysv/linux/arm/sigaction.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000, 2002 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 @@ -150,4 +150,5 @@ __libc_sigaction (sig, act, oact) } weak_alias (__libc_sigaction, __sigaction) +libc_hidden_weak (__sigaction) weak_alias (__libc_sigaction, sigaction) diff --git a/sysdeps/unix/sysv/linux/m68k/chown.c b/sysdeps/unix/sysv/linux/m68k/chown.c index f8f4b5c0af..ad0386d1d9 100644 --- a/sysdeps/unix/sysv/linux/m68k/chown.c +++ b/sysdeps/unix/sysv/linux/m68k/chown.c @@ -71,5 +71,5 @@ __chown (const char *file, uid_t owner, gid_t group) return INLINE_SYSCALL (chown, 3, CHECK_STRING (file), owner, group); #endif } -INTDEF(__chown) +libc_hidden_def (__chown) weak_alias (__chown, chown) diff --git a/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/sysdeps/unix/sysv/linux/m68k/getpagesize.c index 026a8943bf..6645e2b472 100644 --- a/sysdeps/unix/sysv/linux/m68k/getpagesize.c +++ b/sysdeps/unix/sysv/linux/m68k/getpagesize.c @@ -25,8 +25,6 @@ #include #include -#undef __getpagesize - /* Return the system page size. */ int __getpagesize () @@ -47,6 +45,5 @@ __getpagesize () return 4096; } - -INTDEF(__getpagesize) +libc_hidden_def (__getpagesize) weak_alias (__getpagesize, getpagesize) diff --git a/sysdeps/unix/sysv/linux/mips/pwrite64.c b/sysdeps/unix/sysv/linux/mips/pwrite64.c index a655d6e795..4f7299ed47 100644 --- a/sysdeps/unix/sysv/linux/mips/pwrite64.c +++ b/sysdeps/unix/sysv/linux/mips/pwrite64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ralf Baechle , 1998. @@ -60,6 +60,7 @@ __libc_pwrite64 (fd, buf, count, offset) } weak_alias (__libc_pwrite64, __pwrite64) +libc_hidden_weak (__pwrite64) weak_alias (__libc_pwrite64, pwrite64) # define __libc_pwrite64(fd, buf, count, offset) \ diff --git a/sysdeps/unix/sysv/linux/mips/sigaction.c b/sysdeps/unix/sysv/linux/mips/sigaction.c index fb32b50888..17f678c08b 100644 --- a/sysdeps/unix/sysv/linux/mips/sigaction.c +++ b/sysdeps/unix/sysv/linux/mips/sigaction.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000, 2002 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 @@ -136,4 +136,5 @@ __libc_sigaction (sig, act, oact) } weak_alias (__libc_sigaction, __sigaction) +libc_hidden_weak (__sigaction) weak_alias (__libc_sigaction, sigaction) diff --git a/sysdeps/unix/sysv/sco3.2.4/__setpgid.c b/sysdeps/unix/sysv/sco3.2.4/__setpgid.c index 2064e67cc9..e58f22e7a9 100644 --- a/sysdeps/unix/sysv/sco3.2.4/__setpgid.c +++ b/sysdeps/unix/sysv/sco3.2.4/__setpgid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1997, 2002 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,4 @@ __setpgid (pid, pgid) { return __pgrpsys (2, pid, pgid); } +libc_hidden_def (__setpgid) diff --git a/sysdeps/unix/sysv/sco3.2.4/sigaction.S b/sysdeps/unix/sysv/sco3.2.4/sigaction.S index 05f33338a8..ae50c17d93 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, 1995, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1994, 1995, 1997, 2002 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,4 +26,5 @@ ENTRY (__sigaction) jb syscall_error ret +libc_hidden_def (__sigaction) weak_alias (__sigaction, sigaction) diff --git a/sysdeps/unix/sysv/sysv4/__getpgid.c b/sysdeps/unix/sysv/sysv4/__getpgid.c index 9313434011..ea9a23876c 100644 --- a/sysdeps/unix/sysv/sysv4/__getpgid.c +++ b/sysdeps/unix/sysv/sysv4/__getpgid.c @@ -21,8 +21,6 @@ #include #include -#undef __getpgid - extern int __pgrpsys __P ((int type, ...)); /* Get the process group ID of process PID. */ @@ -32,4 +30,4 @@ __getpgid (pid) { return __pgrpsys (4, pid); } -INTDEF(__getpgid) +libc_hidden_def (__getpgid) diff --git a/sysdeps/unix/sysv/sysv4/__setpgid.c b/sysdeps/unix/sysv/sysv4/__setpgid.c index b497d7e26b..ac096a4516 100644 --- a/sysdeps/unix/sysv/sysv4/__setpgid.c +++ b/sysdeps/unix/sysv/sysv4/__setpgid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Brendan Kehoe (brendan@zen.org). @@ -31,3 +31,4 @@ __setpgid (pid, pgid) { return __pgrpsys (5, pid, pgid); } +libc_hidden_def (__setpgid) diff --git a/sysdeps/unix/sysv/sysv4/getpgid.c b/sysdeps/unix/sysv/sysv4/getpgid.c index 5ec9e2c1c2..39fb728d1b 100644 --- a/sysdeps/unix/sysv/sysv4/getpgid.c +++ b/sysdeps/unix/sysv/sysv4/getpgid.c @@ -19,8 +19,6 @@ #include #include -#undef __getpgid - extern pid_t __pgrpsys __P ((int type, ...)); /* Get the process group ID of process PID. */ @@ -30,6 +28,5 @@ __getpgid (pid) { return __pgrpsys (4, pid); } - -INTDEF(__getpgid) +libc_hidden_def (__getpgid) weak_alias (__getpgid, getpgid) diff --git a/sysdeps/unix/sysv/sysv4/setpgid.c b/sysdeps/unix/sysv/sysv4/setpgid.c index 27f4967e40..1ffb182d4a 100644 --- a/sysdeps/unix/sysv/sysv4/setpgid.c +++ b/sysdeps/unix/sysv/sysv4/setpgid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1993,1995,1996,1997,1999,2002 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,5 +30,5 @@ __setpgid (pid, pgid) { return __pgrpsys (5, pid, pgid); } - +libc_hidden_def (__setpgid) weak_alias (__setpgid, setpgid) diff --git a/sysdeps/unix/sysv/sysv4/sigaction.c b/sysdeps/unix/sysv/sysv4/sigaction.c index de0f5afc16..d5926b3d42 100644 --- a/sysdeps/unix/sysv/sysv4/sigaction.c +++ b/sysdeps/unix/sysv/sysv4/sigaction.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994,1995,1996,1997,2002 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 @@ -76,5 +76,5 @@ __sigaction (sig, act, oact) return 0; } - +libc_hidden_def (__sigaction) weak_alias (__sigaction, sigaction)