* 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.
+2002-08-13 Jakub Jelinek <jakub@redhat.com>
+
+ * 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.
+
2002-08-11 Philip Blundell <philb@gnu.org>
* sysdeps/arm/Makefile: New file.
libc_hidden_proto (__strerror_r)
libc_hidden_proto (__strverscmp)
libc_hidden_proto (basename)
+libc_hidden_proto (strcoll)
# ifndef _ISOMAC
# ifndef index
extern int __mkdir (__const char *__path, __mode_t __mode);
extern int __mknod (__const char *__path,
__mode_t __mode, __dev_t __dev);
-extern int __fxstat_internal (int __ver, int __fildes,
- struct stat *__stat_buf) attribute_hidden;
-extern int __fxstat64_internal (int __ver, int __fildes,
- struct stat64 *__stat_buf) attribute_hidden;
-extern int __lxstat_internal (int __ver, __const char *__file,
- struct stat *__stat_buf) attribute_hidden;
-extern int __lxstat64_internal (int __ver, __const char *__file,
- struct stat64 *__stat_buf) attribute_hidden;
+#if !defined NOT_IN_libc || defined IS_IN_rtld
+hidden_proto (__fxstat)
+hidden_proto (__fxstat64)
+hidden_proto (__lxstat)
+hidden_proto (__lxstat64)
+hidden_proto (__xstat)
+hidden_proto (__xstat64)
+#endif
extern __inline__ int __stat (__const char *__path, struct stat *__statbuf)
{
return __xstat (_STAT_VER, __path, __statbuf);
#define __lstat(fname, buf) __lxstat (_STAT_VER, fname, buf)
#define lstat64(fname, buf) __lxstat64 (_STAT_VER, fname, buf)
#define stat64(fname, buf) __xstat64 (_STAT_VER, fname, buf)
-#ifndef NOT_IN_libc
-# define fstat64(fd, buf) INTUSE(__fxstat64) (_STAT_VER, fd, buf)
-# define fstat(fd, buf) INTUSE(__fxstat) (_STAT_VER, fd, buf)
-# define __fstat(fd, buf) INTUSE(__fxstat) (_STAT_VER, fd, buf)
-
-# define __fxstat(ver, fd, buf) INTUSE(__fxstat) (ver, fd, buf)
-# ifndef __fxstat64
-# define __fxstat64(ver, fd, buf) INTUSE(__fxstat64) (ver, fd, buf)
-# endif
-# define __lxstat(ver, name, buf) INTUSE(__lxstat) (ver, name, buf)
-# ifndef __lxstat64
-# define __lxstat64(ver, name, buf) INTUSE(__lxstat64) (ver, name, buf)
-# endif
-#else
-# define fstat64(fd, buf) __fxstat64 (_STAT_VER, fd, buf)
-# define fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
-# define __fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
-#endif
+#define fstat64(fd, buf) __fxstat64 (_STAT_VER, fd, buf)
+#define fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
+#define __fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
#endif
/* Now define the internal interfaces. */
extern int __statvfs64 (__const char *__file, struct statvfs64 *__buf);
extern int __fstatvfs64 (int __fildes, struct statvfs64 *__buf);
+
+libc_hidden_proto (statvfs)
+libc_hidden_proto (fstatvfs)
#endif
extern int __libc_tcdrain (int __fd);
+libc_hidden_proto (tcsetattr)
+libc_hidden_proto (cfsetispeed)
+libc_hidden_proto (cfsetospeed)
+
#endif
libc_hidden_proto (getsid)
libc_hidden_proto (getdomainname)
libc_hidden_proto (getlogin_r)
-
+libc_hidden_proto (seteuid)
+libc_hidden_proto (setegid)
+libc_hidden_proto (tcgetpgrp)
/* Now define the internal interfaces. */
extern int __access (__const char *__name, int __type);
}
funlockfile (stderr);
}
-libc_hidden_def (vwarnx)
+libc_hidden_def (vwarn)
void
return result;
}
+#if !defined WIDE_CHAR_VERSION && !defined USE_IN_EXTENDED_LOCALE_MODEL
+libc_hidden_def (strcoll)
+#endif
/* 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
return -1;
}
stub_warning (fstatvfs)
-
weak_alias (__fstatvfs, fstatvfs)
+libc_hidden_weak (fstatvfs)
#include <stub-tag.h>
#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)
return -1;
}
stub_warning (fstat)
-
-INTDEF(__fxstat)
+hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat)
#include <stub-tag.h>
#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)
__set_errno (ENOSYS);
return -1;
}
+hidden_def (__fxstat64)
stub_warning (fstat64)
#include <stub-tag.h>
-
-INTDEF(__fxstat64)
#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)
#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
__set_errno (ENOSYS);
return -1;
}
-INTDEF(__lxstat64)
+hidden_def (__lxstat64)
stub_warning (__lxstat64)
#include <stub-tag.h>
/* `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
termios_p->__ospeed = speed;
return 0;
}
+libc_hidden_def (cfsetospeed)
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
int
termios_p->__ispeed = speed;
return 0;
}
+libc_hidden_def (cfsetispeed)
/* 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
return -1;
}
weak_alias (__statvfs, statvfs)
-
+libc_hidden_weak (statvfs)
stub_warning (statvfs)
#include <stub-tag.h>
-/* 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
__set_errno (ENOSYS);
return (pid_t) -1;
}
-
-
+libc_hidden_def (tcgetpgrp)
stub_warning (tcgetpgrp)
#include <stub-tag.h>
-/* 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
__set_errno (ENOSYS);
return -1;
}
-
+libc_hidden_def (tcsetattr)
/* Strychnine checking. */
static int
-/* 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
__set_errno (ENOSYS);
return -1;
}
+hidden_def (__xstat)
stub_warning (stat)
-
weak_alias (__xstat, _xstat)
#include <stub-tag.h>
-/* 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
__set_errno (ENOSYS);
return -1;
}
+hidden_def (__xstat64)
stub_warning (stat64)
#include <stub-tag.h>
return 0;
}
+libc_hidden_def (__fxstat64)
int weak_function
__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
-/* 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
can simply call fstatfs. */
return __fstatfs (fd, (struct statfs *)buf);
}
+libc_hidden_def (fstatvfs)
#include "xstatconv.c"
-#undef __fxstat
-
/* Get information about the file descriptor FD in BUF. */
int
__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)
#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)
return 0;
}
-
-INTDEF(__fxstat64)
+hidden_def (__fxstat64)
#endif
#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)
#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)
return __hurd_fail (err);
return 0;
}
-INTDEF(__lxstat64)
+hidden_def (__lxstat64)
-/* 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
can simply call statfs. */
return __statfs (file, (struct statfs *)buf);
}
+libc_hidden_def (statvfs)
struct stat64 buf64;
return __xstat64 (vers, file, &buf64) ?: xstat64_conv (buf, &buf64);
}
+hidden_def (__xstat)
weak_alias (__xstat, _xstat)
return __hurd_fail (err);
return 0;
}
+hidden_def (__xstat64)
#endif
-/* Copyright (C) 1992, 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 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
return __ioctl (fd, TIOCSETAF, termios_p);
}
}
+libc_hidden_def (tcsetattr)
/* `struct termios' speed frobnication functions. SunOS 4 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
__set_errno (EINVAL);
return -1;
}
+libc_hidden_def (cfsetospeed)
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
int
__set_errno (EINVAL);
return -1;
}
+libc_hidden_def (cfsetispeed)
-/* Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 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
return __ioctl (fd, cmd, termios_p);
}
+libc_hidden_def (tcsetattr)
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 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
return (pid_t) -1;
return (pid_t) pgrp;
}
+libc_hidden_def (tcgetpgrp)
-/* Copyright (C) 1991, 1993, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 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
return -1;
return 0;
}
+libc_hidden_def (tcsetattr)
#include <sys/stat.h>
#include <bp-checks.h>
-#undef __lxstat
-
extern int __syscall_lstat (const char *__unbounded, struct stat *__unbounded);
int
return __syscall_lstat (CHECK_STRING (file), CHECK_1 (buf));
}
-INTDEF(__lxstat)
+hidden_def (__lxstat)
weak_alias (__lxstat, _lxstat)
extern int __syscall_fstat (int, struct stat *__unbounded);
-#undef __fxstat
-
/* Get information about the file descriptor FD in BUF. */
int
__fxstat (int vers, int fd, struct stat *buf)
return __syscall_fstat (fd, CHECK_1 (buf));
}
-INTDEF(__fxstat)
+hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat)
extern int fstatx (int fd, struct stat *st, int len, int cmd);
-#undef __fxstat
-
int
__fxstat (int ver, int fd, struct stat *st)
{
assert (ver == 0);
return fstatx (fd, st, sizeof (*st), STX_NORMAL);
}
-INTDEF(__fxstat)
+hidden_def (__fxstat)
#define STX_NORMAL 0x00
#define STX_64 0x08
-#undef __fxstat64
-
extern int fstatx (int fd, struct stat64 *st, int len, int cmd);
-#undef __fxstat64
-
int
__fxstat64 (int ver, int fd, struct stat64 *st)
{
assert (ver == 0);
return fstatx (fd, st, sizeof (*st), STX_NORMAL | STX_64);
}
-INTDEF(__fxstat64)
+hidden_def (__fxstat64)
#define STX_LINK 0x01
-#undef __lxstat
-
extern int statx (const char *pathname, struct stat *st, int len, int cmd);
int
assert (ver == 0);
return statx (pathname, st, sizeof (*st), STX_LINK);
}
-
-INTDEF(__lxstat)
+hidden_def (__lxstat)
#define STX_LINK 0x01
#define STX_64 0x08
-#undef __lxstat64
-
extern int statx (const char *pathname, struct stat64 *st, int len, int cmd);
int
assert (ver == 0);
return statx (pathname, st, sizeof (*st), STX_LINK | STX_64);
}
-
-INTDEF(__lxstat64)
+hidden_def (__lxstat64)
/* `struct termios' speed frobnication functions. AIX version.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 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
termios_p->c_cflag |= speed & 0x0000000f;
return 0;
}
+libc_hidden_def (cfsetospeed)
+
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
int
termios_p->c_cflag |= (speed << 16) & ~0x000f0000;
return 0;
}
+libc_hidden_def (cfsetispeed)
-/* Copyright (C) 1992, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1992,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
return -1;
return 0;
}
+libc_hidden_def (tcsetattr)
-/* 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
#define STX_NORMAL 0x00
-
extern int statx (const char *pathname, struct stat *st, int len, int cmd);
int
assert (ver == 0);
return statx (pathname, st, sizeof (*st), STX_NORMAL);
}
+hidden_def (__xstat)
-/* 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
assert (ver == 0);
return statx (pathname, st, sizeof (*st), STX_NORMAL | STX_64);
}
+hidden_def (__xstat64)
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
/* We signal success if the statfs call succeeded. */
return 0;
}
+libc_hidden_def (fstatvfs)
/* Ho hum, if xstat == xstat64 we must get rid of the prototype or gcc
will complain since they don't strictly match. */
#define __fxstat64 __fxstat64_disable
-#define __fxstat64_internal __fxstat64_internal_disable
#include <errno.h>
#include <stddef.h>
extern int __syscall_fstat (int, struct kernel_stat *__unbounded);
-#undef __fxstat
-
/* Get information about the file FD in BUF. */
int
__fxstat (int vers, int fd, struct stat *buf)
return result;
}
-INTDEF(__fxstat)
+hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat);
#ifdef XSTAT_IS_XSTAT64
#undef __fxstat64
-#undef __fxstat64_internal
strong_alias (__fxstat, __fxstat64);
-INTDEF(__fxstat64)
+hidden_ver (__fxstat, __fxstat64)
#endif
#endif
/* Get information about the file FD in BUF. */
-extern int ___fxstat64 (int vers, int fd, struct stat64 *buf);
int
___fxstat64 (int vers, int fd, struct stat64 *buf)
versioned_symbol (libc, ___fxstat64, __fxstat64, GLIBC_2_2);
-INTDEF2(___fxstat64, __fxstat64)
-
# if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2)
strong_alias (___fxstat64, __old__fxstat64)
compat_symbol (libc, __old__fxstat64, __fxstat64, GLIBC_2_1);
#else
strong_alias (___fxstat64, __fxstat64);
-
-INTDEF(__fxstat64)
#endif
+hidden_ver (___fxstat64, __fxstat64)
# endif
#endif
-#undef __fxstat
-
/* Get information about the file FD in BUF. */
int
__fxstat (int vers, int fd, struct stat *buf)
#endif /* __ASSUME_STAT64_SYSCALL */
}
-INTDEF(__fxstat)
+hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat);
#ifdef XSTAT_IS_XSTAT64
#undef __fxstat64
strong_alias (__fxstat, __fxstat64);
-INTDEF(__fxstat64)
+hidden_ver (__fxstat, __fxstat64)
#endif
#include <xstatconv.c>
-#undef __lxstat
-
extern int __syscall_lstat (const char *__unbounded,
struct kernel_stat *__unbounded);
#endif
}
-INTDEF(__lxstat)
+hidden_def (__lxstat)
weak_alias (__lxstat, _lxstat);
#ifdef XSTAT_IS_XSTAT64
#undef __lxstat64
-INTDEF(__lxstat64)
strong_alias (__lxstat, __lxstat64);
+hidden_ver (__lxstat, __lxstat64)
#endif
/* xstat using old-style Unix stat system call.
- Copyright (C) 1991,95,96,97,98,2000 Free Software Foundation, Inc.
+ Copyright (C) 1991,95,96,97,98,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
return result;
#endif /* __ASSUME_STAT64_SYSCALL */
}
-
+hidden_def (__xstat)
weak_alias (__xstat, _xstat);
#ifdef XSTAT_IS_XSTAT64
# undef __xstat64
strong_alias (__xstat, __xstat64);
+hidden_ver (__xstat, __xstat64)
#endif
/* Ho hum, since xstat == xstat64 we must get rid of the prototype or gcc
will complain since they don't strictly match. */
#define __fxstat64 __fxstat64_disable
-#define __fxstat64_internal __fxstat64_internal_disable
-/* To avoid the optimizations of using _internal functions define
- NOT_IN_libc. */
-#define NOT_IN_libc 1
#include <errno.h>
#include <stddef.h>
extern int __syscall_fstat (int, struct stat *__unbounded);
-#undef __fxstat
-#undef __fxstat64_internal
-
/* Get information about the file FD in BUF. */
int
__fxstat (int vers, int fd, struct stat *buf)
return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 (buf));
}
-INTDEF(__fxstat)
+hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat);
#undef __fxstat64
strong_alias (__fxstat, __fxstat64);
-INTDEF(__fxstat64)
+hidden_ver (__fxstat, __fxstat64)
/* Ho hum, since xstat == xstat64 we must get rid of the prototype or gcc
will complain since they don't strictly match. */
#define __lxstat64 __lxstat64_disable
-#define __lxstat64_internal __lxstat64_internal_disable
-/* To avoid the optimizations of using _internal functions define
- NOT_IN_libc. */
-#define NOT_IN_libc 1
#include <errno.h>
#include <stddef.h>
#include <sys/syscall.h>
#include <bp-checks.h>
-#undef __lxstat
-#undef __lxstat64_internal
-
extern int __syscall_lstat (const char *__unbounded, struct stat *__unbounded);
/* Get information about the file FD in BUF. */
return INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), CHECK_1 (buf));
}
-INTDEF(__lxstat)
+hidden_def (__lxstat)
weak_alias (__lxstat, _lxstat);
#undef __lxstat64
strong_alias (__lxstat, __lxstat64);
-INTDEF(__lxstat64)
+hidden_ver (__lxstat, __lxstat64)
/* xstat using old-style Unix stat system call.
- Copyright (C) 1991, 95, 96, 97, 98, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1991,95,96,97,98,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
{
return INLINE_SYSCALL (stat, 2, name, CHECK_1 (buf));
}
-
+hidden_def (__xstat)
weak_alias (__xstat, _xstat);
#undef __xstat64
strong_alias (__xstat, __xstat64);
+hidden_ver (__xstat, __xstat64)
/* Ho hum, if xstat == xstat64 we must get rid of the prototype or gcc
will complain since they don't strictly match. */
#define __lxstat64 __lxstat64_disable
-#define __lxstat64_internal __lxstat64_internal_disable
#include <errno.h>
#include <stddef.h>
#include <xstatconv.c>
-#undef __lxstat
-
extern int __syscall_lstat (const char *__unbounded,
struct kernel_stat *__unbounded);
return result;
}
-INTDEF(__lxstat)
+hidden_def (__lxstat)
weak_alias (__lxstat, _lxstat);
#ifdef XSTAT_IS_XSTAT64
#undef __lxstat64
-#undef __lxstat64_internal
strong_alias (__lxstat, __lxstat64);
-INTDEF(__lxstat64)
+hidden_ver (__lxstat, __lxstat64)
#endif
# include <xstatconv.c>
#endif
-#undef __lxstat64
-
extern int __syscall_lstat (const char *__unbounded,
struct kernel_stat *__unbounded);
#endif
/* Get information about the file NAME in BUF. */
-extern int ___lxstat64 (int vers, const char *name, struct stat64 *buf);
-
int
___lxstat64 (int vers, const char *name, struct stat64 *buf)
{
#else
strong_alias (___lxstat64, __lxstat64);
#endif
-INTDEF2(___lxstat64, __lxstat64)
+hidden_ver (___lxstat64, __lxstat64)
extern int __syscall_fstat (int, struct stat *);
-#undef __fxstat
-
/* Get information about the file FD in BUF. */
int
__fxstat (int vers, int fd, struct stat *buf)
return INLINE_SYSCALL (fstat, 2, fd, buf);
}
-INTDEF(__fxstat)
+hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat);
#undef __fxstat64
strong_alias (__fxstat, __fxstat64);
-INTDEF(__fxstat64)
+hidden_ver (__fxstat, __fxstat64)
#include <sysdep.h>
#include <sys/syscall.h>
-#undef __lxstat
-
extern int __syscall_lstat (const char *, struct stat *);
/* Get information about the file FD in BUF. */
return INLINE_SYSCALL (lstat, 2, name, buf);
}
-INTDEF(__lxstat)
+hidden_def (__lxstat)
weak_alias (__lxstat, _lxstat);
#undef __lxstat64
-INTDEF(__lxstat64)
strong_alias (__lxstat, __lxstat64);
+hidden_ver (__lxstat, __lxstat64)
/* xstat using old-style Unix stat system call. 64 bit S/390 version.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 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
{
return INLINE_SYSCALL (stat, 2, name, buf);
}
-
+hidden_def (__xstat)
weak_alias (__xstat, _xstat);
#undef __xstat64
strong_alias (__xstat, __xstat64);
+hidden_ver (__xstat, __xstat64)
/* `struct termios' speed frobnication functions. Linux version.
- Copyright (C) 1991, 92, 93, 95, 96, 97, 98, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1991,92,93,95,96,97,98,2000,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
return 0;
}
+libc_hidden_def (cfsetospeed)
+
/* Set the input baud rate stored in *TERMIOS_P to SPEED.
Although for Linux there is no difference between input and output
return 0;
}
+libc_hidden_def (cfsetispeed)
-/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
/* We signal success if the statfs call succeeded. */
return 0;
}
+libc_hidden_def (statvfs)
-/* Copyright (C) 1993, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 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
return retval;
}
+libc_hidden_def (tcsetattr)
/* xstat using old-style Unix stat system call.
- Copyright (C) 1991, 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1995, 1996, 1997, 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
return result;
}
-
+hidden_def (__xstat)
weak_alias (__xstat, _xstat);
#ifdef XSTAT_IS_XSTAT64
#undef __xstat64
strong_alias (__xstat, __xstat64);
+hidden_ver (__xstat, __xstat64)
#endif
/* Get information about the file NAME in BUF. */
int
-___xstat64 (int vers, const char *name, struct stat64 *buf);
-
-int
___xstat64 (int vers, const char *name, struct stat64 *buf)
{
int result;
#else
strong_alias (___xstat64, __xstat64);
#endif
+hidden_ver (___xstat64, __xstat64)
-/* Copyright (C) 1992, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 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
return (pid_t) -1;
return (pid_t) pgrp;
}
+libc_hidden_def (tcgetpgrp)
-/* Copyright (C) 1992, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 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
return -1;
return 0;
}
+libc_hidden_def (tcsetattr)
/* xstat using old-style Unix stat system call.
- 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
return __syscall_stat (CHECK_STRING (file), CHECK_1 (buf));
}
+hidden_def (__xstat)
weak_alias (__xstat, _xstat)