diff options
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/dup2.c | 6 | ||||
-rw-r--r-- | sysdeps/posix/getpagesize.c | 5 | ||||
-rw-r--r-- | sysdeps/posix/open64.c | 3 | ||||
-rw-r--r-- | sysdeps/posix/pwrite64.c | 4 | ||||
-rw-r--r-- | sysdeps/posix/sigsuspend.c | 3 |
5 files changed, 9 insertions, 12 deletions
diff --git a/sysdeps/posix/dup2.c b/sysdeps/posix/dup2.c index bc8d422831..46c679899f 100644 --- a/sysdeps/posix/dup2.c +++ b/sysdeps/posix/dup2.c @@ -21,9 +21,6 @@ #include <limits.h> #include <unistd.h> -#undef __dup2 - - /* Duplicate FD to FD2, closing the old FD2 and making FD2 be open the same file as FD is. Return FD2 or -1. */ int @@ -58,6 +55,5 @@ __dup2 (fd, fd2) return fcntl (fd, F_DUPFD, fd2); } - -INTDEF(__dup2) +libc_hidden_def (__dup2) weak_alias (__dup2, dup2) diff --git a/sysdeps/posix/getpagesize.c b/sysdeps/posix/getpagesize.c index 4fc0ccfec1..5a5f047828 100644 --- a/sysdeps/posix/getpagesize.c +++ b/sysdeps/posix/getpagesize.c @@ -19,14 +19,11 @@ #include <unistd.h> -#undef __getpagesize - /* Return the system page size. */ int __getpagesize (void) { return __sysconf (_SC_PAGESIZE); } - -INTDEF(__getpagesize) +libc_hidden_def (__getpagesize) weak_alias (__getpagesize, getpagesize) diff --git a/sysdeps/posix/open64.c b/sysdeps/posix/open64.c index 60140f9d91..3db5292ff5 100644 --- a/sysdeps/posix/open64.c +++ b/sysdeps/posix/open64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995-1997, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995-1997,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 @@ -38,4 +38,5 @@ __libc_open64 (const char *file, int oflag, ...) return __libc_open (file, oflag | O_LARGEFILE, mode); } weak_alias (__libc_open64, BP_SYM (__open64)) +libc_hidden_weak (BP_SYM (__open64)) weak_alias (__libc_open64, BP_SYM (open64)) diff --git a/sysdeps/posix/pwrite64.c b/sysdeps/posix/pwrite64.c index cf33516684..7a206f6597 100644 --- a/sysdeps/posix/pwrite64.c +++ b/sysdeps/posix/pwrite64.c @@ -1,6 +1,6 @@ /* Write block to given position in file without changing file pointer. POSIX version. - 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. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -55,6 +55,8 @@ __libc_pwrite64 (int fd, const void *buf, size_t nbyte, off64_t offset) return result; } #ifndef __libc_pwrite64 +libc_hidden_def (__libc_pwrite64) weak_alias (__libc_pwrite64, __pwrite64) +libc_hidden_weak (__pwrite64) weak_alias (__libc_pwrite64, pwrite64) #endif diff --git a/sysdeps/posix/sigsuspend.c b/sysdeps/posix/sigsuspend.c index be4b990fe6..e85752a47f 100644 --- a/sysdeps/posix/sigsuspend.c +++ b/sysdeps/posix/sigsuspend.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1996, 1997, 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 @@ -49,4 +49,5 @@ __sigsuspend (set) __set_errno (save); return -1; } +libc_hidden_def (__sigsuspend) weak_alias (__sigsuspend, sigsuspend) |