aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-13 00:24:58 +0000
committerRoland McGrath <roland@gnu.org>2002-08-13 00:24:58 +0000
commitdf9629171c45a83e14ff8319b4d0837ceee22d3f (patch)
treec3f328cdba60880c8e7ccd2e421d59573a7078cc /sysdeps/generic
parent6e86f21f71453d22341125b5dc5f0789ec0f85a5 (diff)
downloadglibc-df9629171c45a83e14ff8319b4d0837ceee22d3f.tar
glibc-df9629171c45a83e14ff8319b4d0837ceee22d3f.tar.gz
glibc-df9629171c45a83e14ff8319b4d0837ceee22d3f.tar.bz2
glibc-df9629171c45a83e14ff8319b4d0837ceee22d3f.zip
* 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/generic')
-rw-r--r--sysdeps/generic/fstatvfs.c4
-rw-r--r--sysdeps/generic/fxstat.c5
-rw-r--r--sysdeps/generic/fxstat64.c5
-rw-r--r--sysdeps/generic/lxstat.c5
-rw-r--r--sysdeps/generic/lxstat64.c4
-rw-r--r--sysdeps/generic/speed.c4
-rw-r--r--sysdeps/generic/statvfs.c4
-rw-r--r--sysdeps/generic/tcgetpgrp.c5
-rw-r--r--sysdeps/generic/tcsetattr.c4
-rw-r--r--sysdeps/generic/xstat.c4
-rw-r--r--sysdeps/generic/xstat64.c3
11 files changed, 19 insertions, 28 deletions
diff --git a/sysdeps/generic/fstatvfs.c b/sysdeps/generic/fstatvfs.c
index 82a8541d7a..c5f75a7c97 100644
--- a/sysdeps/generic/fstatvfs.c
+++ b/sysdeps/generic/fstatvfs.c
@@ -1,5 +1,5 @@
/* Return information about the filesystem on which FD resides.
- Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 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
@@ -28,6 +28,6 @@ __fstatvfs (int fd, struct statvfs *buf)
return -1;
}
stub_warning (fstatvfs)
-
weak_alias (__fstatvfs, fstatvfs)
+libc_hidden_weak (fstatvfs)
#include <stub-tag.h>
diff --git a/sysdeps/generic/fxstat.c b/sysdeps/generic/fxstat.c
index 6bff431dee..b750daca63 100644
--- a/sysdeps/generic/fxstat.c
+++ b/sysdeps/generic/fxstat.c
@@ -20,8 +20,6 @@
#include <stddef.h>
#include <sys/stat.h>
-#undef __fxstat
-
/* Get information about the file descriptor FD in BUF. */
int
__fxstat (int vers, int fd, struct stat *buf)
@@ -47,7 +45,6 @@ __fxstat (int vers, int fd, struct stat *buf)
return -1;
}
stub_warning (fstat)
-
-INTDEF(__fxstat)
+hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat)
#include <stub-tag.h>
diff --git a/sysdeps/generic/fxstat64.c b/sysdeps/generic/fxstat64.c
index bcc7265e18..865ba49484 100644
--- a/sysdeps/generic/fxstat64.c
+++ b/sysdeps/generic/fxstat64.c
@@ -20,8 +20,6 @@
#include <stddef.h>
#include <sys/stat.h>
-#undef __fxstat64
-
/* Get information about the file descriptor FD in BUF. */
int
__fxstat64 (int vers, int fd, struct stat64 *buf)
@@ -46,7 +44,6 @@ __fxstat64 (int vers, int fd, struct stat64 *buf)
__set_errno (ENOSYS);
return -1;
}
+hidden_def (__fxstat64)
stub_warning (fstat64)
#include <stub-tag.h>
-
-INTDEF(__fxstat64)
diff --git a/sysdeps/generic/lxstat.c b/sysdeps/generic/lxstat.c
index 6d1da8061b..23d4442b5c 100644
--- a/sysdeps/generic/lxstat.c
+++ b/sysdeps/generic/lxstat.c
@@ -18,13 +18,10 @@
#include <sys/stat.h>
-#undef __lxstat
-
int
__lxstat (int version, const char *file, struct stat *buf)
{
return __xstat (version, file, buf);
}
-
-INTDEF(__lxstat)
+hidden_def (__lxstat)
weak_alias (__lxstat, _lxstat)
diff --git a/sysdeps/generic/lxstat64.c b/sysdeps/generic/lxstat64.c
index 8eb457dc07..596ecd2277 100644
--- a/sysdeps/generic/lxstat64.c
+++ b/sysdeps/generic/lxstat64.c
@@ -20,8 +20,6 @@
#include <stddef.h>
#include <sys/stat.h>
-#undef __lxstat64
-
/* Get file information about FILE in BUF.
If FILE is a symbolic link, do not follow it. */
int
@@ -36,6 +34,6 @@ __lxstat64 (int vers, const char *file, struct stat64 *buf)
__set_errno (ENOSYS);
return -1;
}
-INTDEF(__lxstat64)
+hidden_def (__lxstat64)
stub_warning (__lxstat64)
#include <stub-tag.h>
diff --git a/sysdeps/generic/speed.c b/sysdeps/generic/speed.c
index 9f4c4f3a81..b4acd62230 100644
--- a/sysdeps/generic/speed.c
+++ b/sysdeps/generic/speed.c
@@ -1,5 +1,5 @@
/* `struct termios' speed frobnication functions. 4.4 BSD/generic GNU version.
- Copyright (C) 1991, 1992, 1993, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1991,1992,1993,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
@@ -52,6 +52,7 @@ cfsetospeed (termios_p, speed)
termios_p->__ospeed = speed;
return 0;
}
+libc_hidden_def (cfsetospeed)
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
int
@@ -68,3 +69,4 @@ cfsetispeed (termios_p, speed)
termios_p->__ispeed = speed;
return 0;
}
+libc_hidden_def (cfsetispeed)
diff --git a/sysdeps/generic/statvfs.c b/sysdeps/generic/statvfs.c
index d2641aafb7..22e24cfeeb 100644
--- a/sysdeps/generic/statvfs.c
+++ b/sysdeps/generic/statvfs.c
@@ -1,5 +1,5 @@
/* Return information about the filesystem on which FILE resides.
- 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
@@ -29,6 +29,6 @@ __statvfs (const char *file, struct statvfs *buf)
return -1;
}
weak_alias (__statvfs, statvfs)
-
+libc_hidden_weak (statvfs)
stub_warning (statvfs)
#include <stub-tag.h>
diff --git a/sysdeps/generic/tcgetpgrp.c b/sysdeps/generic/tcgetpgrp.c
index 06dbfa8b7e..2a1d846e75 100644
--- a/sysdeps/generic/tcgetpgrp.c
+++ b/sysdeps/generic/tcgetpgrp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 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
@@ -34,7 +34,6 @@ tcgetpgrp (fd)
__set_errno (ENOSYS);
return (pid_t) -1;
}
-
-
+libc_hidden_def (tcgetpgrp)
stub_warning (tcgetpgrp)
#include <stub-tag.h>
diff --git a/sysdeps/generic/tcsetattr.c b/sysdeps/generic/tcsetattr.c
index fc16d84aca..205838c87b 100644
--- a/sysdeps/generic/tcsetattr.c
+++ b/sysdeps/generic/tcsetattr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,95,96,2000,01 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,2000,01,02 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
@@ -58,7 +58,7 @@ tcsetattr (int fd, int optional_actions, const struct termios *termios_p)
__set_errno (ENOSYS);
return -1;
}
-
+libc_hidden_def (tcsetattr)
/* Strychnine checking. */
static int
diff --git a/sysdeps/generic/xstat.c b/sysdeps/generic/xstat.c
index 11bb4ef7d6..e7328cc10e 100644
--- a/sysdeps/generic/xstat.c
+++ b/sysdeps/generic/xstat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 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
@@ -33,7 +33,7 @@ __xstat (int vers, const char *file, struct stat *buf)
__set_errno (ENOSYS);
return -1;
}
+hidden_def (__xstat)
stub_warning (stat)
-
weak_alias (__xstat, _xstat)
#include <stub-tag.h>
diff --git a/sysdeps/generic/xstat64.c b/sysdeps/generic/xstat64.c
index a6f726141d..2fb94cf331 100644
--- a/sysdeps/generic/xstat64.c
+++ b/sysdeps/generic/xstat64.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 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
@@ -33,5 +33,6 @@ __xstat64 (int vers, const char *file, struct stat64 *buf)
__set_errno (ENOSYS);
return -1;
}
+hidden_def (__xstat64)
stub_warning (stat64)
#include <stub-tag.h>