* 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.
* sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
- * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct
- stat.
+ * 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/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/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.
+ * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
+ structs stat and stat64.
- * time/time.h (__timespec_defined): Define for __USE_MISC.
+ * 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.
2002-12-31 Ulrich Drepper <drepper@redhat.com>
return (int *) __hurd_threadvar_location (_HURD_THREADVAR_ERRNO);
}
strong_alias (__errno_location, __hurd_errno_location)
+libc_hidden_def (__errno_location)
# 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 */
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,
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 **);
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);
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
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,
2002-12-31 Jakub Jelinek <jakub@redhat.com>
+ * sysdeps/i386/i686/pt-machine.h: Use __ASSEMBLER__ instead of
+ ASSEMBLER test macro.
+ * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
+ * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
+ * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
+ * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
+ * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
+ * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
+
+ * sysdeps/pthread/errno-loc.c (__errno_location): Add
+ libc_hidden_def.
+ * sysdeps/pthread/herrno-loc.c (__h_errno_location): Likewise.
+ * sysdeps/pthread/res-state.c (__res_state): Likewise.
+ * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
+ __libc_current_sigrtmax): Likewise.
+ * Versions [libc] (GLIBC_PRIVATE): Remove __libc_internal_tsd_get,
+ __libc_internal_tsd_set, __libc_internal_tsd_address,
+ __libc_alloca_cutoff.
+ [libpthread] (GLIBC_PRIVATE): Remove __libc_internal_tsd_get,
+ __libc_internal_tsd_set, __libc_internal_tsd_address.
+
+ * sysdeps/pthread/list.h: Remove assert.h include.
+ * sysdeps/unix/sysv/linux/fork.c: Include <fork.h>, not "fork.h".
+
* sysdeps/pthread/list.h: New file.
* sysdeps/unix/sysv/linux/jmp-unwind.c: New file.
* sysdeps/unix/sysv/linux/fork.c: New file.
#endif
#include "kernel-features.h"
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
extern long int testandset (int *spinlock);
extern int __compare_and_swap (long int *p, long int oldval, long int newval);
#endif
return &errno;
}
+libc_hidden_def (__errno_location)
#endif
return &h_errno;
}
+libc_hidden_def (__h_errno_location)
#ifndef _LIST_H
#define _LIST_H 1
-#include <assert.h>
-
/* The definitions of this file are adopted from those which can be
found in the Linux kernel headers to enable people familiar with
the latter find their way in these sources as well. */
#endif
return &_res;
}
+libc_hidden_def (__res_state)
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
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
02111-1307 USA. */
#include <errno.h>
-#include "fork.h"
+#include <fork.h>
#include <bits/libc-lock.h>
weak_extern (__pthread_fork);
#include <sysdep.h>
#include <tls.h>
#include <pt-machine.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
# include <linuxthreads/internals.h>
#endif
# 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, \
# endif
# endif
-#elif !defined ASSEMBLER
+#elif !defined __ASSEMBLER__
/* This code should never be used but we define it anyhow. */
# define SINGLE_THREAD_P (1)
#include <sysdep.h>
#include <tls.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
# include <linuxthreads/internals.h>
#endif
#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)
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)
02111-1307 USA. */
#include <sysdep.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
# include <linuxthreads/internals.h>
#endif
# 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
# endif
# endif
-#elif !defined ASSEMBLER
+#elif !defined __ASSEMBLER__
/* This code should never be used but we define it anyhow. */
# define SINGLE_THREAD_P (1)
#include <sysdep.h>
#include <tls.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
# include <linuxthreads/internals.h>
#endif
#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)
# 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)
#include <sysdep.h>
#include <tls.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
# include <linuxthreads/internals.h>
#endif
#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)
# 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)
#include <sysdep.h>
#include <tls.h>
#include <pt-machine.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
# include <linuxthreads/internals.h>
#endif
# 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)
# 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)
+2002-12-31 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Use __ASSEMBLER__
+ instead of ASSEMBLER test macro.
+
+ * sysdeps/unix/sysv/linux/allocrtsig.c (__libc_current_sigrtmin,
+ __libc_current_sigrtmax): Add libc_hidden_def.
+
+ * sysdeps/pthread/list.h: Remove assert.h include.
+
2002-12-31 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/pt-initfini.c (call_initialize_minimal): Use
#ifndef _LIST_H
#define _LIST_H 1
-#include <assert.h>
-
/* The definitions of this file are adopted from those which can be
found in the Linux kernel headers to enable people familiar with
the latter find their way in these sources as well. */
{
return current_rtmin;
}
+libc_hidden_def (__libc_current_sigrtmin)
strong_alias (__libc_current_sigrtmin, __libc_current_sigrtmin_private)
{
return current_rtmax;
}
+libc_hidden_def (__libc_current_sigrtmax)
strong_alias (__libc_current_sigrtmax, __libc_current_sigrtmax_private)
#include <sysdep.h>
#include <tls.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
# include <nptl/pthreadP.h>
#endif
# define POPCARGS_4 POPCARGS_2
# define POPCARGS_5 POPCARGS_2
-# ifndef ASSEMBLER
+# ifndef __ASSEMBLER__
# define SINGLE_THREAD_P \
__builtin_expect (THREAD_GETMEM (THREAD_SELF, \
header.data.multiple_threads) == 0, 1)
# define SINGLE_THREAD_P cmpl $0, %gs:MULTIPLE_THREADS_OFFSET
# endif
-#elif !defined ASSEMBLER
+#elif !defined __ASSEMBLER__
/* This code should never be used but we define it anyhow. */
# define SINGLE_THREAD_P (1)
mov 0, a1
br $sigsetjmp_local
END(_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
ENTRY(setjmp)
ldgp gp, 0(pv)
mov r1, #0
b PLTJMP(C_SYMBOL_NAME(__sigsetjmp))
END (_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
-/* 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;
}
+libc_hidden_def (accept)
stub_warning (accept)
#endif
return current_rtmin;
}
+libc_hidden_def (__libc_current_sigrtmin)
/* Return number of available real-time signal with lowest priority. */
int
#endif
return current_rtmax;
}
+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
{
return &errno;
}
+libc_hidden_def (__errno_location)
{
return &h_errno;
}
+libc_hidden_def (__h_errno_location)
-/* 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
return -1;
}
stub_warning (lseek)
+libc_hidden_def (__lseek)
weak_alias (__lseek, lseek)
#include <stub-tag.h>
{
return &_res;
}
+libc_hidden_def (__res_state)
ldi 0, %r25
.procend
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
/* longjmp for i386.
- Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 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
movl %eax, JB_SIZE(%edx) /* No signal mask set. */
ret
END (BP_SYM (_setjmp))
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
-/* Copyright (C) 1992, 1993, 1994, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1992,1993,1994,1997,1999,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 _hurd_intern_fd (new, O_IGNORE_CTTY, 1);
}
+libc_hidden_def (accept)
}
weak_alias (__libc_lseek, __lseek)
+libc_hidden_def (__lseek)
weak_alias (__libc_lseek, lseek)
j C_SYMBOL_NAME (__sigsetjmp)
#endif
.end _setjmp
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
nop
jr t9
dli a1, 0 /* Pass a second argument of zero. */
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
li r4,0 /* Set second argument to 0. */
b JUMPTARGET(BP_SYM (__sigsetjmp))
END (BP_SYM (_setjmp))
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
li r4,0 /* Set second argument to 0. */
b ___sigsetjmp
END (BP_SYM (_setjmp))
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
ENTRY (BP_SYM (__setjmp))
li r4,1 /* Set second argument to 1. */
.L1: .long __sigsetjmp
#endif
END (_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
/* Binary compatibility entry point. */
ENTRY(_setjmp)
.weak C_SYMBOL_NAME (_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
ENTRY(__setjmp)
lhi %r3,0 /* second argument of zero */
jg __sigsetjmp /* Branch to __sigsetjmp. */
#endif
END (_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
/* Binary compatibility entry point. */
ENTRY(_setjmp)
.weak C_SYMBOL_NAME (_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
ENTRY(__setjmp)
slgr %r3,%r3 /* Second argument of zero. */
.long C_SYMBOL_NAME(__sigsetjmp)
#endif
END (_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
b 1f
set 0, %o1
END(_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
ENTRY(setjmp)
set 1, %o1
and r0, r0, r1
RETINSTR(mov, pc, r14)
PSEUDO_END (__fork)
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__fork, fork)
movel d0, _errno
moveq #-1, d0
jmp a0@
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
decl r1
andl r1, r0
ret
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
cmovne a4, 0, v0
ret
.end __fork
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__fork, fork)
movel d0, _errno
moveq #-1, d0
jmp a0@
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
ret
nop
.end __vfork
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
movl r0, _errno
mnegl $1, r0
jmp (r2)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
andl r1, r0
ret
PSEUDO_END (__fork)
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__fork, fork)
andl r1, r0
ret
PSEUDO_END (__fork)
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__fork, fork)
# File name Caller Syscall name # args Strong name Weak names
-accept - accept Ci:iBN __libc_accept accept
+accept - accept Ci:iBN __libc_accept accept __GI_accept
bind - bind i:ipi __bind bind
connect - connect Ci:ipi __libc_connect __connect __connect_internal connect
gethostid - gethostid i: gethostid
shutdown - shutdown i:ii shutdown
socket - socket i:iii __socket socket
socketpair - socketpair i:iiif socketpair
-
-
-
-
parent:
ret
.end __fork
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__fork, fork)
sub %o1, 1, %o1
retl
and %o0, %o1, %o0
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__fork, fork)
sub %o1, 1, %o1
retl
and %o0, %o1, %o0
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
ioctl - ioctl i:iiI __ioctl ioctl
kill - kill i:ii __kill kill
link - link i:ss __link link
-lseek - lseek Ci:iii __libc_lseek __lseek lseek
+lseek - lseek Ci:iii __libc_lseek __lseek lseek __GI___lseek
mkdir - mkdir i:si __mkdir mkdir
open - open Ci:siv __libc_open __open open
profil - profil i:piii __profil profil
-/* 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
assert (sizeof (socklen_t) == sizeof (int));
return naccept (fd, addr.__sockaddr__, addr_len);
}
+libc_hidden_def (accept)
return lseek (fd, offset, whence);
}
strong_alias (__lseek, __libc_lseek)
+libc_hidden_def (__lseek)
#define NARGS 3
#define NEED_CANCELLATION
#include <socket.S>
+libc_hidden_def (accept)
sys_mknod xmknod mknod 3 __syscall_mknod
# proper socket implementations:
-accept - accept C:3 __libc_accept __accept accept
+accept - accept C:3 __libc_accept __accept accept __GI_accept
bind - bind 3 __bind bind
connect - connect C:3 __libc_connect __connect_internal __connect connect
getpeername - getpeername 3 __getpeername getpeername
b PLTJMP(C_SYMBOL_NAME(__syscall_error))
PSEUDO_END (__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
Ret
nop
PSEUDO_END (__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
semctl - semctl i:iiii __semctl semctl
# proper socket implementations:
-accept - accept Ci:iBN __libc_accept __accept accept
+accept - accept Ci:iBN __libc_accept __accept accept __GI_accept
bind - bind i:ipi __bind bind
connect - connect Ci:ipi __libc_connect __connect_internal __connect connect
getpeername - getpeername i:ipp __getpeername getpeername
ret
#endif
PSEUDO_END (__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
PSEUDO_END(__libc_fork)
weak_alias (__libc_fork, __fork)
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__libc_fork, fork)
mov in1=0
br.cond.sptk.many __sigsetjmp
END(_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
/* __sigsetjmp(__jmp_buf buf, int savemask) */
umount2 - umount 2 __umount2 umount2
# Whee! 64-bit systems naturally implement llseek.
-llseek EXTRA lseek C:3 __libc_lseek __lseek lseek __libc_lseek64 __llseek llseek __lseek64 lseek64
+llseek EXTRA lseek C:3 __libc_lseek __lseek lseek __libc_lseek64 __llseek llseek __lseek64 lseek64 __GI___lseek
lseek llseek -
pread - pread C:4 __libc_pread __libc_pread64 __pread pread __pread64 pread64
pwrite - pwrite C:4 __libc_pwrite __libc_pwrite64 __pwrite pwrite __pwrite64 pwrite64
semctl - semctl i:iiii __semctl semctl
# proper socket implementations:
-accept - accept Ci:iBN __libc_accept __accept accept
+accept - accept Ci:iBN __libc_accept __accept accept __GI_accept
bind - bind i:ipi __bind bind
connect - connect Ci:ipi __libc_connect __connect_internal __connect connect
getpeername - getpeername i:ipp __getpeername getpeername
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#ifndef _LINUX_IA64_SYSDEP_H
+#define _LINUX_IA64_SYSDEP_H 1
+
#include <sysdeps/unix/sysdep.h>
#include <sysdeps/ia64/sysdep.h>
"b6", "b7"
#endif /* not __ASSEMBLER__ */
+
+#endif /* linux/ia64/sysdep.h */
(p6) br.cond.spnt.few __syscall_error
ret
PSEUDO_END(__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
rts
PSEUDO_END (__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
# Socket functions; Linux/MIPS doesn't use the socketcall(2) wrapper;
# it's provided for compatibility, though.
#
-accept - accept Ci:iBN __libc_accept __accept accept
+accept - accept Ci:iBN __libc_accept __accept accept __GI_accept
bind - bind i:ipi __bind bind
connect - connect Ci:ipi __libc_connect __connect_internal __connect connect
getpeername - getpeername i:ipp __getpeername getpeername
# File name Caller Syscall name # args Strong name Weak names
-llseek EXTRA lseek C:3 __libc_lseek __lseek lseek __libc_lseek64 __llseek llseek __lseek64 lseek64
+llseek EXTRA lseek C:3 __libc_lseek __lseek lseek __libc_lseek64 __llseek llseek __lseek64 lseek64 __GI___lseek
lseek llseek -
pread - pread C:4 __libc_pread __libc_pread64 __pread pread __pread64 pread64
pwrite - pwrite C:4 __libc_pwrite __libc_pwrite64 __pwrite pwrite __pwrite64 pwrite64
semctl - semctl i:iiii __semctl semctl
# proper socket implementations:
-accept - accept Ci:iBN __libc_accept __accept accept
+accept - accept Ci:iBN __libc_accept __accept accept __GI_accept
bind - bind i:ipi __bind bind
connect - connect Ci:ipi __libc_connect __connect_internal __connect connect
getpeername - getpeername i:ipp __getpeername getpeername
nop
PSEUDO_END (__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
PSEUDO_END (__libc_fork)
weak_alias (__libc_fork, __fork)
-strong_alias (__fork, __GI___fork)
+libc_hidden_def (__fork)
weak_alias (__libc_fork, fork)
strong_alias(__libc_siglongjmp, __longjmp)
strong_alias(__libc_siglongjmp, __libc_longjmp)
-strong_alias(__libc_longjmp, __GI___libc_longjmp)
+libc_hidden_def (__libc_longjmp)
weak_alias(__libc_siglongjmp, longjmp)
weak_alias(__libc_siglongjmp, _longjmp)
weak_alias(__libc_siglongjmp, siglongjmp)
ba __sigsetjmp_local
set 0, %o1
END(_setjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
/* int setjmp(jmp_buf) */
# Override select.S in parent directory:
select - select C:5 __select select
-accept - accept C:3 __libc_accept __accept accept
+accept - accept C:3 __libc_accept __accept accept __GI_accept
bind - bind 3 __bind bind
connect - connect C:3 __libc_connect __connect_internal __connect connect
getpeername - getpeername 3 __getpeername getpeername
and %o0, %o1, %o0
PSEUDO_END (__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
# proper socket implementations:
-accept - accept Ci:iBN __libc_accept __accept accept
+accept - accept Ci:iBN __libc_accept __accept accept __GI_accept
bind - bind i:ipi __bind bind
connect - connect Ci:ipi __libc_connect __connect_internal __connect connect
getpeername - getpeername i:ipp __getpeername getpeername
ret
PSEUDO_END (__vfork)
-strong_alias (__vfork, __GI___vfork)
+libc_hidden_def (__vfork)
weak_alias (__vfork, vfork)
pushl r1 /* Push back first argument. */
pushl r0 /* Push back return PC. */
jmp C_SYMBOL_NAME (__sigsetjmp)
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)
jmp BP_SYM (__sigsetjmp)
#endif
END (BP_SYM (_setjmp))
-strong_alias (_setjmp, __GI__setjmp)
+libc_hidden_def (_setjmp)