diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-31 20:46:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-31 20:46:11 +0000 |
commit | a4baf360be5b32c2246d4a7b6fef34e2d5b0c4fe (patch) | |
tree | 6c33f32c1914b9ae17e17edbc6e1bcd728d69998 /linuxthreads/sysdeps/unix | |
parent | cca7719a82a8ce1cf862f6f31c8b9fa18b749930 (diff) | |
download | glibc-a4baf360be5b32c2246d4a7b6fef34e2d5b0c4fe.tar.gz glibc-a4baf360be5b32c2246d4a7b6fef34e2d5b0c4fe.tar.xz glibc-a4baf360be5b32c2246d4a7b6fef34e2d5b0c4fe.zip |
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 <drepper@redhat.com> * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin and __libc_current_sigrtmax. 2002-12-31 Jakub Jelinek <jakub@redhat.com> * 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.
Diffstat (limited to 'linuxthreads/sysdeps/unix')
8 files changed, 21 insertions, 19 deletions
diff --git a/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c b/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c index a18753233a..af1581a4c3 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c +++ b/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c @@ -57,6 +57,7 @@ __libc_current_sigrtmin (void) return current_rtmin; } strong_alias (__libc_current_sigrtmin, __libc_current_sigrtmin_private); +libc_hidden_def (__libc_current_sigrtmin) /* Return number of available real-time signal with lowest priority. */ int @@ -67,6 +68,7 @@ __libc_current_sigrtmax (void) return current_rtmax; } strong_alias (__libc_current_sigrtmax, __libc_current_sigrtmax_private); +libc_hidden_def (__libc_current_sigrtmax) /* Allocate real-time signal with highest/lowest available priority. Please note that we don't use a lock since we assume diff --git a/linuxthreads/sysdeps/unix/sysv/linux/fork.c b/linuxthreads/sysdeps/unix/sysv/linux/fork.c index c519fa0677..49f1b088c5 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/fork.c +++ b/linuxthreads/sysdeps/unix/sysv/linux/fork.c @@ -18,7 +18,7 @@ 02111-1307 USA. */ #include <errno.h> -#include "fork.h" +#include <fork.h> #include <bits/libc-lock.h> weak_extern (__pthread_fork); diff --git a/linuxthreads/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h index c2455a7464..6189b7b152 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h @@ -20,7 +20,7 @@ #include <sysdep.h> #include <tls.h> #include <pt-machine.h> -#ifndef ASSEMBLER +#ifndef __ASSEMBLER__ # include <linuxthreads/internals.h> #endif @@ -83,7 +83,7 @@ # define __local_multiple_threads __pthread_multiple_threads #endif -# ifndef ASSEMBLER +# ifndef __ASSEMBLER__ # if defined FLOATING_STACKS && USE___THREAD && defined PIC # define SINGLE_THREAD_P \ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \ @@ -112,7 +112,7 @@ extern int __local_multiple_threads attribute_hidden; # endif # endif -#elif !defined ASSEMBLER +#elif !defined __ASSEMBLER__ /* This code should never be used but we define it anyhow. */ # define SINGLE_THREAD_P (1) diff --git a/linuxthreads/sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h index 723c2e4117..ec787da31c 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h @@ -19,7 +19,7 @@ #include <sysdep.h> #include <tls.h> -#ifndef ASSEMBLER +#ifndef __ASSEMBLER__ # include <linuxthreads/internals.h> #endif @@ -99,7 +99,7 @@ __syscall_error_##args: \ #define COPY_ARGS_6 COPY_ARGS_5 mov out5 = in5; #define COPY_ARGS_7 COPY_ARGS_6 mov out6 = in6; -# ifndef ASSEMBLER +# ifndef __ASSEMBLER__ # define SINGLE_THREAD_P \ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \ p_header.data.multiple_threads) == 0, 1) @@ -108,7 +108,7 @@ __syscall_error_##args: \ adds r14 = MULTIPLE_THREADS_OFFSET, r13 ;; ld4 r14 = [r14] ;; cmp4.ne p6, p7 = 0, r14 ;; # endif -#elif !defined ASSEMBLER +#elif !defined __ASSEMBLER__ /* This code should never be used but we define it anyhow. */ # define SINGLE_THREAD_P (1) diff --git a/linuxthreads/sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h index fb6e92c37a..2711c222d4 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h @@ -18,7 +18,7 @@ 02111-1307 USA. */ #include <sysdep.h> -#ifndef ASSEMBLER +#ifndef __ASSEMBLER__ # include <linuxthreads/internals.h> #endif @@ -90,7 +90,7 @@ # define __local_multiple_threads __pthread_multiple_threads # endif -# ifndef ASSEMBLER +# ifndef __ASSEMBLER__ extern int __local_multiple_threads attribute_hidden; # define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1) # else @@ -107,7 +107,7 @@ extern int __local_multiple_threads attribute_hidden; # endif # endif -#elif !defined ASSEMBLER +#elif !defined __ASSEMBLER__ /* This code should never be used but we define it anyhow. */ # define SINGLE_THREAD_P (1) diff --git a/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h index f6afb81373..66aaeabdde 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h @@ -19,7 +19,7 @@ #include <sysdep.h> #include <tls.h> -#ifndef ASSEMBLER +#ifndef __ASSEMBLER__ # include <linuxthreads/internals.h> #endif @@ -81,7 +81,7 @@ SYSCALL_ERROR_HANDLER_ENTRY(__syscall_error_handler2) \ #define COPY_ARGS_5 COPY_ARGS_4 mov %i4, %o4; #define COPY_ARGS_6 COPY_ARGS_5 mov %i5, %o5; -# ifndef ASSEMBLER +# ifndef __ASSEMBLER__ # define SINGLE_THREAD_P \ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \ p_header.data.multiple_threads) == 0, 1) @@ -89,7 +89,7 @@ SYSCALL_ERROR_HANDLER_ENTRY(__syscall_error_handler2) \ # define SINGLE_THREAD_P ld [%g6 + MULTIPLE_THREADS_OFFSET], %g1 # endif -#elif !defined ASSEMBLER +#elif !defined __ASSEMBLER__ /* This code should never be used but we define it anyhow. */ # define SINGLE_THREAD_P (1) diff --git a/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h index d236bf33b7..7d4f9b5ea8 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h @@ -19,7 +19,7 @@ #include <sysdep.h> #include <tls.h> -#ifndef ASSEMBLER +#ifndef __ASSEMBLER__ # include <linuxthreads/internals.h> #endif @@ -80,7 +80,7 @@ SYSCALL_ERROR_HANDLER_ENTRY(__syscall_error_handler2) \ #define COPY_ARGS_5 COPY_ARGS_4 mov %i4, %o4; #define COPY_ARGS_6 COPY_ARGS_5 mov %i5, %o5; -# ifndef ASSEMBLER +# ifndef __ASSEMBLER__ # define SINGLE_THREAD_P \ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \ p_header.data.multiple_threads) == 0, 1) @@ -88,7 +88,7 @@ SYSCALL_ERROR_HANDLER_ENTRY(__syscall_error_handler2) \ # define SINGLE_THREAD_P ld [%g6 + MULTIPLE_THREADS_OFFSET], %g1 # endif -#elif !defined ASSEMBLER +#elif !defined __ASSEMBLER__ /* This code should never be used but we define it anyhow. */ # define SINGLE_THREAD_P (1) diff --git a/linuxthreads/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h index 1c7a95dcd8..ca8183f4e9 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h @@ -20,7 +20,7 @@ #include <sysdep.h> #include <tls.h> #include <pt-machine.h> -#ifndef ASSEMBLER +#ifndef __ASSEMBLER__ # include <linuxthreads/internals.h> #endif @@ -102,7 +102,7 @@ # define __local_multiple_threads __libc_multiple_threads # endif -# ifndef ASSEMBLER +# ifndef __ASSEMBLER__ extern int __local_multiple_threads attribute_hidden; # define SINGLE_THREAD_P \ __builtin_expect (__local_multiple_threads == 0, 1) @@ -110,7 +110,7 @@ extern int __local_multiple_threads attribute_hidden; # define SINGLE_THREAD_P cmpl $0, __local_multiple_threads(%rip) # endif -#elif !defined ASSEMBLER +#elif !defined __ASSEMBLER__ /* This code should never be used but we define it anyhow. */ # define SINGLE_THREAD_P (1) |