From a4baf360be5b32c2246d4a7b6fef34e2d5b0c4fe Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 31 Dec 2002 20:46:11 +0000 Subject: Update. * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat. * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for nsec resolution changes. (xstat64_conv): Likewise. (xstat32_conv): Likewise. * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for struct kernel_stat. * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for structs stat and stat64. * time/time.h (__timespec_defined): Define for __USE_MISC. 2002-12-31 Ulrich Drepper * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin and __libc_current_sigrtmax. 2002-12-31 Jakub Jelinek * include/errno.h (__errno_location): Add prototype. Use libc_hidden_proto unconditionally. * include/netdb.h (__h_errno_location): Use libc_hidden_proto unconditionally. * include/resolv.h (__res_state): Likewise. * hurd/errno-loc.c (__errno_location): Add libc_hidden_def. * include/sys/socket.h (accept): Add libc_hidden_proto. * include/errno.h (__errno_location): Likewise. * include/netdb.h (__h_errno_location): Likewise. * include/resolv.h (__res_state): Likewise. * include/unistd.h (__lseek): Likewise. * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def. * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise. * sysdeps/generic/res-state.c (__res_state): Likewise. * sysdeps/generic/accept.c (accept): Likewise. * sysdeps/generic/lseek.c (__lseek): Likewise. * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin, __libc_current_sigrtmax): Likewise. * sysdeps/mach/hurd/accept.c (accept): Likewise. * sysdeps/mach/hurd/lseek.c (__lseek): Likewise. * sysdeps/unix/sysv/aix/accept.c (accept): Likewise. * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise. * sysdeps/unix/sysv/linux/accept.S (accept): Likewise. * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept. * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise. * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise. * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New alias to llseek. (__GI_accept): New alias to accept. * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek): New alias to llseek. (__GI_accept): New alias to accept. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept): Likewise. * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept): Likewise. * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek. * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of strong_alias (name, __GI_name). * sysdeps/arm/bsd-_setjmp.S : Likewise. * sysdeps/hppa/bsd-_setjmp.S : Likewise. * sysdeps/i386/bsd-_setjmp.S : Likewise. * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise. * sysdeps/mips/bsd-_setjmp.S : Likewise. * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise. * sysdeps/powerpc/powerpc64/setjmp.S : Likewise. * sysdeps/s390/s390-32/elf/setjmp.S : Likewise. * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise. * sysdeps/s390/s390-64/elf/setjmp.S : Likewise. * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise. * sysdeps/sh/bsd-_setjmp.S : Likewise. * sysdeps/sparc/sparc32/setjmp.S : Likewise. * sysdeps/unix/arm/fork.S : Likewise. * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise. * sysdeps/unix/bsd/i386/vfork.S : Likewise. * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise. * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise. * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise. * sysdeps/unix/bsd/vax/vfork.S : Likewise. * sysdeps/unix/i386/fork.S : Likewise. * sysdeps/unix/mips/fork.S : Likewise. * sysdeps/unix/sparc/fork.S : Likewise. * sysdeps/unix/sparc/vfork.S : Likewise. * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise. * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise. * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise. * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise. * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise. * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise. * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise. * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise. * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise. * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise. * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise. * sysdeps/unix/fork.S : Likewise. * sysdeps/vax/bsd-_setjmp.S : Likewise. * sysdeps/x86_64/bsd-_setjmp.S : Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple inclusion. --- include/errno.h | 5 +++++ include/netdb.h | 1 + include/resolv.h | 1 + include/signal.h | 2 ++ include/sys/socket.h | 1 + include/unistd.h | 1 + 6 files changed, 11 insertions(+) (limited to 'include') diff --git a/include/errno.h b/include/errno.h index 05888c1..1b0aabc 100644 --- a/include/errno.h +++ b/include/errno.h @@ -35,6 +35,11 @@ extern __thread int errno attribute_tls_model_ie; # define __set_errno(val) (errno = (val)) +# ifndef __ASSEMBLER__ +extern int *__errno_location (void) __THROW __attribute__ ((__const__)); +libc_hidden_proto (__errno_location) +# endif + #endif /* _ERRNO_H */ #endif /* ! _ERRNO_H */ diff --git a/include/netdb.h b/include/netdb.h index 54cdda1..7b44605 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -37,6 +37,7 @@ libc_hidden_proto (getaddrinfo) libc_hidden_proto (getnameinfo) libc_hidden_proto (freeaddrinfo) libc_hidden_proto (gai_strerror) +libc_hidden_proto (__h_errno_location) /* Document internal interfaces. */ extern int __gethostent_r (struct hostent *__restrict __result_buf, diff --git a/include/resolv.h b/include/resolv.h index 8b5b852..f9635dd 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -46,6 +46,7 @@ extern int res_ourserver_p (const res_state __statp, const struct sockaddr_in6 *__inp); libc_hidden_proto (__res_ninit) libc_hidden_proto (__res_randomid) +libc_hidden_proto (__res_state) int __libc_res_nquery (res_state, const char *, int, int, u_char *, int, u_char **); diff --git a/include/signal.h b/include/signal.h index 0b6aef6..b03b1a3 100644 --- a/include/signal.h +++ b/include/signal.h @@ -9,6 +9,8 @@ libc_hidden_proto (sigfillset) libc_hidden_proto (sigismember) libc_hidden_proto (__sigpause) libc_hidden_proto (raise) +libc_hidden_proto (__libc_current_sigrtmin) +libc_hidden_proto (__libc_current_sigrtmax) /* Now define the internal interfaces. */ extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler); diff --git a/include/sys/socket.h b/include/sys/socket.h index f943e9b..0579809 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -118,6 +118,7 @@ extern int __listen (int __fd, int __n) attribute_hidden; extern int __libc_accept (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) __THROW; +libc_hidden_proto (accept) /* Return the length of a `sockaddr' structure. */ #ifdef _HAVE_SA_LEN diff --git a/include/unistd.h b/include/unistd.h index 7481af7..eba1451 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -21,6 +21,7 @@ extern int __access (__const char *__name, int __type); extern int __euidaccess (__const char *__name, int __type); extern __off64_t __lseek64 (int __fd, __off64_t __offset, int __whence); extern __off_t __lseek (int __fd, __off_t __offset, int __whence); +libc_hidden_proto (__lseek) extern __off_t __libc_lseek (int __fd, __off_t __offset, int __whence); extern __off64_t __libc_lseek64 (int __fd, __off64_t __offset, int __whence); extern ssize_t __pread (int __fd, void *__buf, size_t __nbytes, -- cgit v1.1