Ulrich Drepper [Tue, 31 Dec 2002 09:56:50 +0000 (09:56 +0000)]
Update.
* libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
_IO_iter_end, _IO_iter_next, and _IO_iter_file.
* libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
_IO_iter_end, _IO_iter_next, and _IO_iter_file.
Ulrich Drepper [Tue, 31 Dec 2002 09:46:42 +0000 (09:46 +0000)]
Update.
* include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
* sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
* sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
__GI___longjmp alias.
Ulrich Drepper [Tue, 31 Dec 2002 09:36:52 +0000 (09:36 +0000)]
Update.
2002-12-31 Ulrich Drepper <drepper@redhat.com>
* include/setjmp.h: Add libc_hidden_proto for _setjmp.
* sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
* sysdeps/arm/bsd-_setjmp.S: Likewise.
* sysdeps/generic/bsd-_setjmp.c: Likewise.
* sysdeps/hppa/bsd-_setjmp.S: Likewise.
* sysdeps/i386/bsd-_setjmp.S: Likewise.
* sysdeps/m68k/bsd-_setjmp.c: Likewise.
* sysdeps/mips/bsd-_setjmp.S: Likewise.
* sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
* sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
* sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
* sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
* sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
* sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
* sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
* sysdeps/sh/bsd-_setjmp.S: Likewise.
* sysdeps/sparc/sparc32/setjmp.S: Likewise.
* sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
* sysdeps/vax/bsd-_setjmp.S: Likewise.
* sysdeps/x86_64/bsd-_setjmp.S: Likewise.
Ulrich Drepper [Tue, 31 Dec 2002 08:00:19 +0000 (08:00 +0000)]
Update.
2002-12-30 Ulrich Drepper <drepper@redhat.com>
* malloc/thread-m.h (thread_atfork): Define using __register_atfork.
Ulrich Drepper [Tue, 31 Dec 2002 06:54:17 +0000 (06:54 +0000)]
Update.
2002-12-30 Ulrich Drepper <drepper@redhat.com>
* init.c (__pthread_initialize_minimal_internal): Don't mark as
constructor.
2002-12-31 Jakub Jelinek <jakub@redhat.com>
* Makefile ($(inst_libdir)/libpthread.so): Depend on
$(common-objpfx)format.lds, include that into the output script.
Fix comment.
(extra-B-pthread.so): Change linuxthreads/ into nptl/.
* io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
Ulrich Drepper [Tue, 31 Dec 2002 06:53:45 +0000 (06:53 +0000)]
($(inst_libdir)/libpthread.so): Depend on $(common-objpfx)format.lds, include that into the output script. Fix comment. (extra-B-pthread.so): Change linuxthreads/ into nptl/.
Roland McGrath [Tue, 31 Dec 2002 02:04:48 +0000 (02:04 +0000)]
* Rules (generated): Target removed.
* mach/Makefile (generated): Define it here instead.
Roland McGrath [Tue, 31 Dec 2002 02:04:37 +0000 (02:04 +0000)]
2002-12-30 Roland McGrath <roland@redhat.com>
* Rules (generated): Target removed.
* mach/Makefile (generated): Define it here instead.
Ulrich Drepper [Tue, 31 Dec 2002 01:46:45 +0000 (01:46 +0000)]
Update.
2002-12-30 Ulrich Drepper <drepper@redhat.com>
* math/Makefile (generated): Remove definition. Needs to be fixed.
might already be gone.
Ulrich Drepper [Tue, 31 Dec 2002 00:06:24 +0000 (00:06 +0000)]
Update.
2002-12-30 Jakub Jelinek <jakub@redhat.com>
* forward.c: Make all functions available by default again. It
caused too much trouble.
* internals.h (struct pthread_functions): Rename ptr_pthread_exit
and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
ptr___pthread_attr_init_2_*.
* pthread.c (pthread_functions): Adjust.
Ulrich Drepper [Mon, 30 Dec 2002 23:45:39 +0000 (23:45 +0000)]
Update.
2002-12-30 Jakub Jelinek <jakub@redhat.com>
* forward.c (FORWARD2): Renamed from FORWARD3. Remove unused export
argument.
(pthread_attr_init_2_0, pthread_attr_init_2_1): Use FORWARD macro.
(pthread_exit): Use strong_alias to avoid warnings.
* pthreadP.h (struct pthread_functions): Rename ptr_pthread_exit
and ptr_pthread_attr_init_2_* to ptr___pthread_exit and
ptr___pthread_attr_init_2_*.
* init.c (pthread_functions): Adjust.
Ulrich Drepper [Mon, 30 Dec 2002 21:24:18 +0000 (21:24 +0000)]
Update.
* elf/dl-close.c (_dl_close): Handle relocation dependencies among
the to-be-deleted objects right away instead of later separately.
The latter fails because the scope data structures of the DSO
might already have gone.
Roland McGrath [Mon, 30 Dec 2002 21:20:31 +0000 (21:20 +0000)]
* math/Makefile (generated): Add m_*l and m_*f variants too.
Roland McGrath [Mon, 30 Dec 2002 21:20:24 +0000 (21:20 +0000)]
2002-12-30 Roland McGrath <roland@redhat.com>
* math/Makefile (generated): Add m_*l and m_*f variants too.
Ulrich Drepper [Mon, 30 Dec 2002 21:15:31 +0000 (21:15 +0000)]
(_dl_close): Handle relocation dependencies among the to-be-deleted objects right away instead of later separately. The latter fails because the scope data structures of the DSO might already have gone.
Ulrich Drepper [Mon, 30 Dec 2002 20:25:40 +0000 (20:25 +0000)]
Update.
2002-12-30 Ulrich Drepper <drepper@redhat.com>
* elf/Makefile: Add rules to build and run reldep8 test.
* elf/reldep8.c: New file.
* elf/reldep8mod1.c: New file.
* elf/reldep8mod2.c: New file.
* elf/reldep8mod3.c: New file.
Contributed by Jakub Jelinek.
Ulrich Drepper [Mon, 30 Dec 2002 02:31:19 +0000 (02:31 +0000)]
Update.
2002-12-24 GOTO Masanori <gotom@debian.or.jp>
* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
checking of return value ENOSYS from getdents64.
Ulrich Drepper [Mon, 30 Dec 2002 01:17:52 +0000 (01:17 +0000)]
Update.
* forward.c: Make all functions available by default again. It
caused too much trouble.
Ulrich Drepper [Mon, 30 Dec 2002 01:17:13 +0000 (01:17 +0000)]
Make all functions available by default again. It caused too much trouble.
Roland McGrath [Mon, 30 Dec 2002 00:12:56 +0000 (00:12 +0000)]
* sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
($(common-objpfx)s-%.d): Generalized from
$(common-objpfx)s-proto.d rule.
(common-generated): Add s-proto-cancel.d.
* sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
cancellable syscalls.
* sysdeps/unix/s-proto-cancel.S: New file.
Roland McGrath [Mon, 30 Dec 2002 00:10:07 +0000 (00:10 +0000)]
* resolv/res_libc.c: Move _res defn magic after res_init defn
so _res macro is in effect for that code.
Roland McGrath [Sun, 29 Dec 2002 21:01:00 +0000 (21:01 +0000)]
* Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
pattern for prepending $(..) so it doesn't affect $(foo).
Roland McGrath [Sun, 29 Dec 2002 20:56:59 +0000 (20:56 +0000)]
* math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
Roland McGrath [Sun, 29 Dec 2002 20:56:54 +0000 (20:56 +0000)]
2002-12-29 Roland McGrath <roland@redhat.com>
* math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
Ulrich Drepper [Sun, 29 Dec 2002 19:30:24 +0000 (19:30 +0000)]
Update.
2002-12-29 Jakub Jelinek <jakub@redhat.com>
* elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
in hwcap.
Ulrich Drepper [Sun, 29 Dec 2002 10:19:13 +0000 (10:19 +0000)]
Update.
2002-12-29 Ulrich Drepper <drepper@redhat.com>
* pt-siglongjmp.c: Removed.
Ulrich Drepper [Sat, 28 Dec 2002 22:19:04 +0000 (22:19 +0000)]
Update.
2002-12-28 Ulrich Drepper <drepper@redhat.com>
* misc/sys/cdefs.h (__attribute_deprecated__): New #define.
Ulrich Drepper [Sat, 28 Dec 2002 21:08:38 +0000 (21:08 +0000)]
Update.
2002-12-28 Andreas Jaeger <aj@suse.de>
* sysdeps/generic/readelflib.c (process_elf_file): Cast value to
avoid warning.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
Ulrich Drepper [Sat, 28 Dec 2002 10:24:40 +0000 (10:24 +0000)]
Update.
* inet/herrno.c (__h_errno_location): Remove.
* inet/Makefile (routines): Add herrno-loc.
* resolv/res_libc.c (__res_state): Remove.
* resolv/Makefile (routines): Add res-state.
* sysdeps/generic/herrno-loc.c: New file.
* sysdeps/generic/res-state.c: New file.
2002-12-27 Jakub Jelinek <jakub@redhat.com>
Ulrich Drepper [Sat, 28 Dec 2002 09:58:41 +0000 (09:58 +0000)]
Update.
2002-12-27 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
Only define if USE_DL_SYSINFO is defined.
2002-12-22 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
Define. Patch by Richard Henderson and Jes Sorensen.
(PSEUDO): Remove unnecessary ;;.
* elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
* sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
if not initializing thread pointer.
[!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
* sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
make it weak also if NONTLS_INIT_TP.
* sysdeps/unix/common/pause.c: Handle cancellation.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
(LOADSYSCALL): Remove.
(SYSCALL_ERROR_HANDLER_ENTRY): Define.
(SYSCALL_ERROR_HANDLER): Use it.
(PSEUDO): Don't jump around error handler.
* sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
jump around error handler.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
to __syscall_error_handler on failure.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
(LOADSYSCALL): Remove.
(SYSCALL_ERROR_HANDLER_ENTRY): Define.
(SYSCALL_ERROR_HANDLER): Use it.
(PSEUDO): Don't jump around error handler.
* sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
jump around error handler.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
to __syscall_error_handler on failure.
Ulrich Drepper [Sat, 28 Dec 2002 09:27:26 +0000 (09:27 +0000)]
Update.
2002-12-28 Ulrich Drepper <drepper@redhat.com>
* descr.h (struct pthread): Move header.data.list to the back of the
struct.
* sysdeps/i386/tls.h (tcbhead_t): Move list to the back of the struct.
(MULTIPLE_THREADS_OFFSET): Adjust offset.
(SYSINFO_OFFSEET): Likewise.
2002-12-27 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h (USE_DL_SYSINFO):
Define.
(DL_SYSINFO_DEFAULT): Cast to uintptr_t to avoid warnings.
* sysdeps/unix/sysv/linux/i386/dl-sysdep.h (NEED_DL_SYSINFO,
DL_SYSINFO_DEFAULT, DL_SYSINFO_IMPLEMENTATION): Define.
(USE_DL_SYSINFO): Undef.
2002-12-22 Jakub Jelinek <jakub@redhat.com>
* Makefile (tests-reverse): Use $(objpfx)../libc.so instead of
$(common-objpfx)libc.so.
* tst-cancel4.c (tf_write, tf_writev): Increase buf sizes so that
it is bigger than pipe buffer size even on arches with bigger
page size.
(tf_usleep): Cast usleep argument to useconds_t to avoid warnings.
Ulrich Drepper [Sat, 28 Dec 2002 08:45:26 +0000 (08:45 +0000)]
Test of cancellation handling.
Roland McGrath [Fri, 27 Dec 2002 23:13:05 +0000 (23:13 +0000)]
second typo in prior commit
Roland McGrath [Fri, 27 Dec 2002 23:06:00 +0000 (23:06 +0000)]
* scripts/gen-as-const.awk: New file.
* Makefile (distribute): Add it.
* Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
(before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
to the list.
(+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
* sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
Roland McGrath [Fri, 27 Dec 2002 23:05:53 +0000 (23:05 +0000)]
2002-12-27 Roland McGrath <roland@redhat.com>
* scripts/gen-as-const.awk: New file.
* Makefile (distribute): Add it.
* Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
(before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
to the list.
(+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
Andreas Schwab [Fri, 27 Dec 2002 22:15:56 +0000 (22:15 +0000)]
*** empty log message ***
2002-12-27 Andreas Schwab <schwab@suse.de>
* sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
Andreas Schwab [Fri, 27 Dec 2002 21:09:21 +0000 (21:09 +0000)]
*** empty log message ***
2002-12-27 Andreas Schwab <schwab@suse.de>
* sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: New file.
Andreas Schwab [Fri, 27 Dec 2002 21:09:01 +0000 (21:09 +0000)]
Cancellation handling for m68k.
Roland McGrath [Fri, 27 Dec 2002 20:13:29 +0000 (20:13 +0000)]
Remove bogus CRs at end of all lines. Hope they do not come back.
Roland McGrath [Fri, 27 Dec 2002 00:37:06 +0000 (00:37 +0000)]
* malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
_environ is NULL.
Roland McGrath [Fri, 27 Dec 2002 00:35:06 +0000 (00:35 +0000)]
* Makerules ($(common-objpfx)%.make): Filter through
$(sed-remove-objpfx).
Roland McGrath [Fri, 27 Dec 2002 00:35:00 +0000 (00:35 +0000)]
2002-12-27 Andreas Schwab <schwab@suse.de>
* Makerules ($(common-objpfx)%.make): Filter through
$(sed-remove-objpfx).
Ulrich Drepper [Wed, 25 Dec 2002 08:56:55 +0000 (08:56 +0000)]
Update.
2002-12-25 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Implement
correct errno access for case that USE___THREAD is not defined.
Ulrich Drepper [Tue, 24 Dec 2002 23:22:01 +0000 (23:22 +0000)]
Update.
2002-12-24 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Add missing #endif.
Patch by Marijn Ros <marijn@mad.scientist.com>.
Ulrich Drepper [Tue, 24 Dec 2002 23:20:54 +0000 (23:20 +0000)]
Add missing #endif.
Roland McGrath [Mon, 23 Dec 2002 11:17:18 +0000 (11:17 +0000)]
* scripts/abilist.awk: Produce a more compact format, divided into
stanzas for each version set, the set name listed only once.
* scripts/extract-abilist.awk: New file.
* scripts/merge-abilist.awk: New file.
* Makerules (check-abi-%, update-abi-%): New pattern rules.
(update-abi, check-abi): New targets.
* Makefile (+subdir_targets): Add subdir_{check,update}-abi.
* Makerules (%.symlist): Use LC_ALL=C when running awk script.
Roland McGrath [Mon, 23 Dec 2002 09:56:22 +0000 (09:56 +0000)]
* sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
INTERNAL_SYSCALL.
Roland McGrath [Mon, 23 Dec 2002 00:45:05 +0000 (00:45 +0000)]
* Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
Roland McGrath [Mon, 23 Dec 2002 00:44:58 +0000 (00:44 +0000)]
2002-12-22 Roland McGrath <roland@redhat.com>
* Makefile (omit-deps): Add $(unix-syscalls:%=ptw-%).
Ulrich Drepper [Sun, 22 Dec 2002 02:29:06 +0000 (02:29 +0000)]
Update.
2002-12-21 Ulrich Drepper <drepper@redhat.com>
* pthread.c (init_rtsigs): Remove incomplete __builtin_expect.
Reported by Art Hass <ahaas@airmail.net>.
Ulrich Drepper [Sat, 21 Dec 2002 21:40:32 +0000 (21:40 +0000)]
Update.
* elf/check-textrel.c (handle_file): Swap p_type.
2002-12-21 Andreas Schwab <schwab@suse.de>
Ulrich Drepper [Sat, 21 Dec 2002 21:39:34 +0000 (21:39 +0000)]
(handle_file): Swap p_type.
Andreas Schwab [Sat, 21 Dec 2002 21:05:31 +0000 (21:05 +0000)]
Fix thinko.
Andreas Schwab [Sat, 21 Dec 2002 20:09:41 +0000 (20:09 +0000)]
*** empty log message ***
(SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
Andreas Schwab [Sat, 21 Dec 2002 19:37:26 +0000 (19:37 +0000)]
*** empty log message ***
2002-12-21 Andreas Schwab <schwab@suse.de>
* sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
(INLINE_SYSCALL): Use it.
(INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
* sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
* sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
Andreas Schwab [Sat, 21 Dec 2002 19:36:29 +0000 (19:36 +0000)]
Use INTERNAL_SYSCALL.
Ulrich Drepper [Sat, 21 Dec 2002 19:33:56 +0000 (19:33 +0000)]
(parse_opt): Avoid warning in case -t is used with maximum allowed number.
Ulrich Drepper [Sat, 21 Dec 2002 18:53:25 +0000 (18:53 +0000)]
Update.
2002-12-20 Art Haas <ahaas@airmail.net>
* sysdeps/gnu/siglist.c: Convert GCC extension initializer
syntax to C99.
2002-12-21 Philip Blundell <philb@gnu.org>
* sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
top as seventh arg to __libc_start_main.
Reported by paulnash@wildseed.com.
* sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
* sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
compatibility cruft when new enough kernel is assumed.
Ulrich Drepper [Fri, 20 Dec 2002 19:14:55 +0000 (19:14 +0000)]
Update.
2002-12-20 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
instead of INLINE_SYSCALL.
Ulrich Drepper [Fri, 20 Dec 2002 18:24:24 +0000 (18:24 +0000)]
Update.
* sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
typo.
Ulrich Drepper [Fri, 20 Dec 2002 10:32:08 +0000 (10:32 +0000)]
Update.
* sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
* sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
Patch by William Lee Irwin <wli@holomorphy.com>.
2002-12-20 Andreas Schwab <schwab@suse.de>
* locale/programs/ld-measurement.c (measurement_output): Fix
index calculation.
2002-12-20 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Fri, 20 Dec 2002 09:33:33 +0000 (09:33 +0000)]
Update.
* include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
Redefine _IO_flockifle and _IO_funlockfile as inlines.
Ulrich Drepper [Fri, 20 Dec 2002 08:49:27 +0000 (08:49 +0000)]
Update.
2002-12-20 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
builds add "tls" in the search path.
* elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
(path_hwcap): Recognize "tls".
* sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
__waitpid instead of waitpid.
Ulrich Drepper [Fri, 20 Dec 2002 07:20:48 +0000 (07:20 +0000)]
Update.
* sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
int $0x80.
* sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
* sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
* sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
Ulrich Drepper [Fri, 20 Dec 2002 07:12:24 +0000 (07:12 +0000)]
Update.
* sysdeps/unix/sysv/linux/i386/pthread_once.S: Use ENTER_KERNEL instead
of int $0x80.
* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise.
* sysdeps/unix/sysv/linux/i386/lowlevellock.h: Add support for using
sysenter.
* sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise.
* sysdeps/i386/tls.h: Unconditionally include <dl-sysdep.h>.
Ulrich Drepper [Thu, 19 Dec 2002 23:05:13 +0000 (23:05 +0000)]
Update.
2002-12-19 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
information for system calls.
* sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
for ld.so.
* elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
Ulrich Drepper [Thu, 19 Dec 2002 22:49:55 +0000 (22:49 +0000)]
(allocate_stack) [NEED_DL_SYSINFO]: Set sysinfo in new TCB.
Roland McGrath [Thu, 19 Dec 2002 22:26:49 +0000 (22:26 +0000)]
* iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
* iconvdata/ibm922.h: Likewise.
* iconvdata/ibm930.h: Likewise.
* iconvdata/ibm932.h: Likewise.
* iconvdata/ibm933.h: Likewise.
* iconvdata/ibm935.h: Likewise.
* iconvdata/ibm937.h: Likewise.
* iconvdata/ibm939.h: Likewise.
* iconvdata/ibm943.h: Likewise.
* iconvdata/isiri-3342.h: Likewise.
Roland McGrath [Thu, 19 Dec 2002 22:25:19 +0000 (22:25 +0000)]
2002-12-19 Roland McGrath <roland@redhat.com>
* iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
* iconvdata/ibm922.h: Likewise.
* iconvdata/ibm930.h: Likewise.
* iconvdata/ibm932.h: Likewise.
* iconvdata/ibm933.h: Likewise.
* iconvdata/ibm935.h: Likewise.
* iconvdata/ibm937.h: Likewise.
* iconvdata/ibm939.h: Likewise.
* iconvdata/ibm943.h: Likewise.
* iconvdata/isiri-3342.h: Likewise.
Ulrich Drepper [Thu, 19 Dec 2002 17:11:28 +0000 (17:11 +0000)]
Update.
* test-skeleton.c (main): Make sure correct value is seen as
argv[0] after adjustment of argv, and argc.
Ulrich Drepper [Thu, 19 Dec 2002 09:57:54 +0000 (09:57 +0000)]
Update.
2002-12-19 Ulrich Drepper <drepper@redhat.com>
* elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
RTLD_CORRECT_DYNAMIC_WEAK is defined.
Ulrich Drepper [Thu, 19 Dec 2002 09:18:01 +0000 (09:18 +0000)]
Update.
2002-12-19 Jakub Jelinek <jakub@redhat.com>
* nscd/connections.c (nscd_run): Shut up warning.
* tst-ungetc.c (assert): Undefined before redefining.
2002-12-19 Ulrich Drepper <drepper@redhat.com>
* posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
is used.
2002-12-17 Art Haas <ahaas@airmail.net>
* iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
* iconvdata/cp775.h: Likewise.
* iconvdata/ibm1046.h: Likewise.
* iconvdata/ibm1124.h: Likewise.
* iconvdata/ibm1129.h: Likewise.
* iconvdata/ibm1132.h: Likewise.
* iconvdata/ibm1133.h: Likewise.
* iconvdata/ibm1160.h: Likewise.
* iconvdata/ibm1161.h: Likewise.
* iconvdata/ibm1162.h: Likewise.
* iconvdata/ibm1163.h: Likewise.
* iconvdata/ibm1164.h: Likewise.
(__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
Ulrich Drepper [Thu, 19 Dec 2002 08:41:52 +0000 (08:41 +0000)]
Update.
2002-12-19 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
__ASSUME_CLONE_THREAD_FLAGS is defined.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >=
2.5.50.
* sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
of asm.
* sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
Ulrich Drepper [Thu, 19 Dec 2002 07:09:42 +0000 (07:09 +0000)]
Update.
2002-12-18 Ulrich Drepper <drepper@redhat.com>
* descr.h (struct pthread) [NEED_DL_SYSINFO]: Add sysinfo member.
* sysdeps/i386/tls.h (tcbhead_t): Add sysinfo member.
Define SYSINFO_OFFSEET if NEED_DL_SYSINFO is defined.
(INIT_SYSINFO): New #define.
(TLS_TP_INIT): Use INIT_SYSINFO.
* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
At test to make sure SYSINFO_OFFSET value is correct.
* sysdeps/unix/sysv/linux/i386/dl-sysdep.h: New file.
Ulrich Drepper [Thu, 19 Dec 2002 00:03:48 +0000 (00:03 +0000)]
Update.
2002-12-18 Ulrich Drepper <drepper@redhat.com>
* elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
_dl_sysinfo.
[DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
code.
* elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
_rtld_global.
[DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
code.
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
Check for AT_SYSINFO and set _dl_sysinfo appropriately.
* sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
Add _dl_sysinfo.
Ulrich Drepper [Wed, 18 Dec 2002 23:29:41 +0000 (23:29 +0000)]
Update
2002-12-18 Jakub Jelinek <jakub@redhat.com>
* sysdeps/pthread/flockfile.c (flockfile): Change into weak alias.
* sysdeps/unix/sysv/linux/raise.c (gsignal): Add weak alias to raise.
* Versions [libc: GLIBC_2.0]: Add pthread_attr_init.
[libpthread: GLIBC_2.1]: Remove __pthread_rwlock_init,
__pthread_rwlock_destroy, __pthread_rwlock_rdlock,
__pthread_rwlock_wrlock, __pthread_rwlock_unlock,
__pthread_rwlock_tryrdlock and __pthread_rwlock_trywrlock.
Ulrich Drepper [Wed, 18 Dec 2002 23:27:15 +0000 (23:27 +0000)]
Update.
2002-12-18 Jakub Jelinek <jakub@redhat.com>
* misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
__libc_writev to...
[libc: GLIBC_PRIVATE]: ...here.
* sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
__libc_msgsnd to...
[libc: GLIBC_PRIVATE]: ...here.
Ulrich Drepper [Wed, 18 Dec 2002 11:56:21 +0000 (11:56 +0000)]
Update.
2002-12-18 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
Use it instead of directly int $0x80.
* sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
* sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
* sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
* sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
* sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
* sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
Ulrich Drepper [Wed, 18 Dec 2002 10:56:40 +0000 (10:56 +0000)]
Update.
2002-12-18 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/bits/stdio-lock.h: New file.
* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevelmutex.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/libc-lowlevelmutex.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/libc-lowlevelmutex.S: New file.
* Makefile (routines): Add libc-lowlevelmutex.
* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Remove
__i686.get_pc_thunk.dx.
Ulrich Drepper [Wed, 18 Dec 2002 07:37:17 +0000 (07:37 +0000)]
Update.
* malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
Ulrich Drepper [Wed, 18 Dec 2002 06:52:10 +0000 (06:52 +0000)]
Update.
2002-12-17 Ulrich Drepper <drepper@redhat.com>
* elf/elf.h (AT_SYSINFO): New define.
* sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
AT_SYSINFO.
Ulrich Drepper [Wed, 18 Dec 2002 01:38:17 +0000 (01:38 +0000)]
Update.
* sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
Make cancelable.
* sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
Ulrich Drepper [Wed, 18 Dec 2002 00:53:21 +0000 (00:53 +0000)]
Update.
2002-12-17 Jakub Jelinek <jakub@redhat.com>
* malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
available, otherwise __libc_maybe_call.
* sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
cancellation handling.
* sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
Ulrich Drepper [Tue, 17 Dec 2002 10:58:04 +0000 (10:58 +0000)]
Update.
2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
* posix/regcomp.c (free_workarea_compile): Free the new member
ORG_INDICES.
(analyze): Initialize ORG_INDICES.
(duplicate_node_closure): Search for a existing node, which is
duplicated from the node ORG_DEST and satisfies the constraint
CONSTRAINT. And use it to avoid inifimite loop.
(search_duplicated_node): New function.
(duplicate_node): Store the index of the original node.
* posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
if needed.
* posix/regex_internal.h (re_dfa_t): Add new members.
Ulrich Drepper [Tue, 17 Dec 2002 10:34:02 +0000 (10:34 +0000)]
Update.
2002-12-17 Ulrich Drepper <drepper@redhat.com>
* stdio-common/tst-fdopen.c: Undefine assert before redefining it.
Ulrich Drepper [Tue, 17 Dec 2002 06:52:45 +0000 (06:52 +0000)]
Update.
* sysdeps/posix/system.c (do_system): Add support for installation
of cancellation handlers.
* sysdeps/unix/sysv/linux/i386/system.c: New file.
* stdlib/Makefile (tests): Add tst-system.
* stdlib/tst-system.c: New file.
Ulrich Drepper [Tue, 17 Dec 2002 03:49:23 +0000 (03:49 +0000)]
Update.
2002-12-16 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
CENABLE]: Don't lose content of %ebx.
Ulrich Drepper [Tue, 17 Dec 2002 02:03:18 +0000 (02:03 +0000)]
Update.
2002-12-17 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
* iconvdata/iso-ir-165.c: Likewise.
* iconvdata/jis0208.c: Likewise.
* iconvdata/jis0212.c: Likewise.
Ulrich Drepper [Tue, 17 Dec 2002 01:16:31 +0000 (01:16 +0000)]
Update.
2002-12-16 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
fails to return a function pointer don't use it.
Ulrich Drepper [Tue, 17 Dec 2002 00:06:01 +0000 (00:06 +0000)]
Update.
2002-12-16 Art Haas <ahaas@airmail.net>
* io/ftw.c: Convert GCC extension initializer syntax to C99.
Ulrich Drepper [Mon, 16 Dec 2002 23:53:33 +0000 (23:53 +0000)]
Update.
* sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
Davide Libenzi <davidel@xmailserver.org>.
* sysdeps/unix/sysv/aix/settimer.c: Likewise.
* sysdeps/unix/sysv/aix/sleep.c: Likewise.
* sysdeps/unix/sysv/aix/usleep.c: Likewise.
Ulrich Drepper [Mon, 16 Dec 2002 23:38:42 +0000 (23:38 +0000)]
Update.
* sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
epoll_ctl, and epoll_wait.
* sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
epoll_create, epoll_ctl, and epoll_wait.
* sysdeps/unix/sysv/linux/sys/epoll.h: New file.
* sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
* sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
Add sys/epoll.h.
2002-12-16 Art Haas <ahaas@airmail.net>
* sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
syntax to C99
* sysdeps/unix/sysv/aix/settimer.c: Same.
* sysdeps/unix/sysv/aix/sleep.c: Same.
* sysdeps/unix/sysv/aix/usleep.c: Same.
2002-12-16 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Mon, 16 Dec 2002 22:17:11 +0000 (22:17 +0000)]
Update.
2002-12-16 Ulrich Drepper <drepper@redhat.com>
* stdio-common/Makefile (routines): Remove lockfile. Add
flockfile, ftrylockfile, and funlockfile.
* sysdeps/generic/lockfile.c: Removed. Each function has its own file.
* sysdeps/generic/flockfile.c: New file.
* sysdeps/generic/ftrylockfile.c: New file.
* sysdeps/generic/funlockfile.c: New file.
Ulrich Drepper [Mon, 16 Dec 2002 20:52:36 +0000 (20:52 +0000)]
Update.
2002-12-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
macros instead of doing the calls directly.
* sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
* Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
targets.
2002-12-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
* sysdeps/ieee754/bits/nan.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
__syscall_wait4, __syscall_ioctl, __syscall_write): Add.
Ulrich Drepper [Mon, 16 Dec 2002 19:32:31 +0000 (19:32 +0000)]
Backout last change.
Roland McGrath [Mon, 16 Dec 2002 10:25:45 +0000 (10:25 +0000)]
* sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
* sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
* sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
* sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
s_putpmsg.
* sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
* sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
* sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
* sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
* sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
* sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
* sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
* sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
Roland McGrath [Mon, 16 Dec 2002 10:25:28 +0000 (10:25 +0000)]
2002-12-16 Roland McGrath <roland@redhat.com>
* sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
* sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
* sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
Ulrich Drepper [Mon, 16 Dec 2002 04:46:58 +0000 (04:46 +0000)]
Update.
* init.c (__pthread_initialize_minimal_internal): Renamed from
__pthread_initialize_minimal. Make old name an alias. This
converts a normal relocation into a relative relocation.
Ulrich Drepper [Mon, 16 Dec 2002 04:46:19 +0000 (04:46 +0000)]
(__pthread_initialize_minimal_internal): Renamed from __pthread_initialize_minimal. Make old name an alias. This converts a normal relocation into a relative relocation.
Roland McGrath [Mon, 16 Dec 2002 02:05:55 +0000 (02:05 +0000)]
* sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
is now u_int, not int.
(struct XDR.x_handy): Now u_int, not int.
* sunrpc/xdr_mem.c: Include <limits.h>.
(xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
x_handy is now unsigned, not signed.
Do not decrement x_handy if no change is made.
(xdrmem_setpos): Check for int overflow.
* sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
(xdr_sizeof): Remove cast that is now unnecessary, now that
x_handy is unsigned.