diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-13 00:24:58 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-13 00:24:58 +0000 |
commit | df9629171c45a83e14ff8319b4d0837ceee22d3f (patch) | |
tree | c3f328cdba60880c8e7ccd2e421d59573a7078cc /sysdeps/mach | |
parent | 6e86f21f71453d22341125b5dc5f0789ec0f85a5 (diff) | |
download | glibc-df9629171c45a83e14ff8319b4d0837ceee22d3f.zip glibc-df9629171c45a83e14ff8319b4d0837ceee22d3f.tar.gz glibc-df9629171c45a83e14ff8319b4d0837ceee22d3f.tar.bz2 |
* include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
* sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
* sysdeps/generic/setegid.c (setegid): Likewise.
* sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
* sysdeps/mach/hurd/setegid.c (setegid): Likewise.
* sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
* sysdeps/unix/bsd/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
Remove fallback if __ASSUME_SETRESUID_SYSCALL.
* include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
__lxstat_internal, __lxstat64_internal): Remove.
(__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
Add hidden_proto.
* sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
Remove INTDEF where present, remove #undef at the beginning.
* sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
* sysdeps/generic/lxstat.c (__lxstat): Likewise.
* sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
* sysdeps/generic/xstat.c (__xstat): Likewise.
* sysdeps/generic/xstat64.c (__xstat64): Likewise.
* sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
* sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
* sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
* sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
* sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
* sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
* sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
* sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
* sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/xstat.c (__xstat): Likewise.
* include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
* sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
* sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
* sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
* sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
* sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
* sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
* include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
* include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
* sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
* sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
* sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
* sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
Likewise.
* sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
* sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
* sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
* sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
* sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
* include/string.h (strcoll): Add libc_hidden_proto.
* string/strcoll.c (strcoll): Add libc_hidden_def.
* misc/err.c (vwarn): Fix pasto in libc_hidden_def.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/dl-sysdep.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/fstatvfs.c | 3 | ||||
-rw-r--r-- | sysdeps/mach/hurd/fxstat.c | 5 | ||||
-rw-r--r-- | sysdeps/mach/hurd/fxstat64.c | 5 | ||||
-rw-r--r-- | sysdeps/mach/hurd/lxstat.c | 5 | ||||
-rw-r--r-- | sysdeps/mach/hurd/lxstat64.c | 4 | ||||
-rw-r--r-- | sysdeps/mach/hurd/statvfs.c | 3 | ||||
-rw-r--r-- | sysdeps/mach/hurd/xstat.c | 1 | ||||
-rw-r--r-- | sysdeps/mach/hurd/xstat64.c | 1 |
9 files changed, 12 insertions, 17 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 3cdb4a3..e1bab50 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -505,6 +505,7 @@ __fxstat64 (int vers, int fd, struct stat64 *buf) return 0; } +libc_hidden_def (__fxstat64) int weak_function __xstat64 (int vers, const char *file, struct stat64 *buf) @@ -522,6 +523,7 @@ __xstat64 (int vers, const char *file, struct stat64 *buf) return 0; } +libc_hidden_def (__xstat64) /* This function is called by the dynamic linker (rtld.c) to check whether debugging malloc is allowed even for SUID binaries. This diff --git a/sysdeps/mach/hurd/fstatvfs.c b/sysdeps/mach/hurd/fstatvfs.c index 70e6d81..a11abe8 100644 --- a/sysdeps/mach/hurd/fstatvfs.c +++ b/sysdeps/mach/hurd/fstatvfs.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1998, 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 @@ fstatvfs (int fd, struct statvfs *buf) can simply call fstatfs. */ return __fstatfs (fd, (struct statfs *)buf); } +libc_hidden_def (fstatvfs) diff --git a/sysdeps/mach/hurd/fxstat.c b/sysdeps/mach/hurd/fxstat.c index 28cfbbb..8a2520c 100644 --- a/sysdeps/mach/hurd/fxstat.c +++ b/sysdeps/mach/hurd/fxstat.c @@ -22,8 +22,6 @@ #include "xstatconv.c" -#undef __fxstat - /* Get information about the file descriptor FD in BUF. */ int __fxstat (int vers, int fd, struct stat *buf) @@ -31,6 +29,5 @@ __fxstat (int vers, int fd, struct stat *buf) struct stat64 buf64; return __fxstat64 (vers, fd, &buf64) ?: xstat64_conv (buf, &buf64); } - -INTDEF(__fxstat) +hidden_def (__fxstat) weak_alias (__fxstat, _fxstat) diff --git a/sysdeps/mach/hurd/fxstat64.c b/sysdeps/mach/hurd/fxstat64.c index c0d4767..c1390d1 100644 --- a/sysdeps/mach/hurd/fxstat64.c +++ b/sysdeps/mach/hurd/fxstat64.c @@ -24,8 +24,6 @@ #include <hurd.h> #include <hurd/fd.h> -#undef __fxstat64 - /* Get information about the file descriptor FD in BUF. */ int __fxstat64 (int vers, int fd, struct stat64 *buf) @@ -40,7 +38,6 @@ __fxstat64 (int vers, int fd, struct stat64 *buf) return 0; } - -INTDEF(__fxstat64) +hidden_def (__fxstat64) #endif diff --git a/sysdeps/mach/hurd/lxstat.c b/sysdeps/mach/hurd/lxstat.c index 9987e25..d6d1279 100644 --- a/sysdeps/mach/hurd/lxstat.c +++ b/sysdeps/mach/hurd/lxstat.c @@ -22,14 +22,11 @@ #include "xstatconv.c" -#undef __lxstat - int __lxstat (int vers, const char *file, struct stat *buf) { struct stat64 buf64; return __lxstat64 (vers, file, &buf64) ?: xstat64_conv (buf, &buf64); } - -INTDEF(__lxstat) +hidden_def (__lxstat) weak_alias (__lxstat, _lxstat) diff --git a/sysdeps/mach/hurd/lxstat64.c b/sysdeps/mach/hurd/lxstat64.c index 6dabdb3..a53f692 100644 --- a/sysdeps/mach/hurd/lxstat64.c +++ b/sysdeps/mach/hurd/lxstat64.c @@ -22,8 +22,6 @@ #include <fcntl.h> #include <hurd.h> -#undef __lxstat64 - /* Get information about the file descriptor FD in BUF. */ int __lxstat64 (int vers, const char *file, struct stat64 *buf) @@ -43,4 +41,4 @@ __lxstat64 (int vers, const char *file, struct stat64 *buf) return __hurd_fail (err); return 0; } -INTDEF(__lxstat64) +hidden_def (__lxstat64) diff --git a/sysdeps/mach/hurd/statvfs.c b/sysdeps/mach/hurd/statvfs.c index f4412f2..759a7cf 100644 --- a/sysdeps/mach/hurd/statvfs.c +++ b/sysdeps/mach/hurd/statvfs.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1998, 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 @@ statvfs (const char *file, struct statvfs *buf) can simply call statfs. */ return __statfs (file, (struct statfs *)buf); } +libc_hidden_def (statvfs) diff --git a/sysdeps/mach/hurd/xstat.c b/sysdeps/mach/hurd/xstat.c index 2ae9598..97719b0 100644 --- a/sysdeps/mach/hurd/xstat.c +++ b/sysdeps/mach/hurd/xstat.c @@ -28,4 +28,5 @@ __xstat (int vers, const char *file, struct stat *buf) struct stat64 buf64; return __xstat64 (vers, file, &buf64) ?: xstat64_conv (buf, &buf64); } +hidden_def (__xstat) weak_alias (__xstat, _xstat) diff --git a/sysdeps/mach/hurd/xstat64.c b/sysdeps/mach/hurd/xstat64.c index 3ca3400..572ae4e 100644 --- a/sysdeps/mach/hurd/xstat64.c +++ b/sysdeps/mach/hurd/xstat64.c @@ -42,5 +42,6 @@ __xstat64 (int vers, const char *file, struct stat64 *buf) return __hurd_fail (err); return 0; } +hidden_def (__xstat64) #endif |