]> git.ipfire.org Git - thirdparty/glibc.git/log
thirdparty/glibc.git
21 years ago* sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
Roland McGrath [Tue, 3 Dec 2002 02:50:58 +0000 (02:50 +0000)] 
* sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both

bits of RM are cleared.

21 years ago* elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
Roland McGrath [Tue, 3 Dec 2002 01:51:07 +0000 (01:51 +0000)] 
* elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy

TLS setup is required.
* elf/tst-tls5.c: Likewise.
* elf/tst-tls6.c: Likewise.
* elf/tst-tls7.c: Likewise.
* elf/tst-tls8.c: Likewise.
* elf/tst-tls9.c: Likewise.

* elf/rtld.c (dl_main): Remove [! SHARED] conditional from
`if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
* elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
for being null before calling free_slotinfo.
* elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.

21 years agoAdd some items, tweak another.
Roland McGrath [Tue, 3 Dec 2002 00:54:55 +0000 (00:54 +0000)] 
Add some items, tweak another.

21 years agoUpdate.
Ulrich Drepper [Mon, 2 Dec 2002 22:39:58 +0000 (22:39 +0000)] 
Update.

2002-11-30  Bruno Haible  <bruno@clisp.org>

* iconv/gconv.h (__gconv_btowc_fct): New typedef.
(struct __gconv_step): New field __btowc_fct.
* wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
* iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
__BUILTIN_TRANS.
(__gconv_btwoc_ascii): New declaration.
* iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
(__gconv_btwoc_ascii): New function.
* iconv/gconv_builtin.h: Add BtowcFct argument to all
BUILTIN_TRANSFORMATION invocations.
* iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
* iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
* iconv/gconv_builtin.c (map): New field btowc_fct.
(BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
btowc_fct field.
(__gconv_get_builtin_trans): Initialize __btowc_fct field.
* iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
* iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
* wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
* iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
(gconv_init): Initialize __btowc_fct field.
Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
* iconv/loop.c: Document ONEBYTE_BODY.
(gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
Undefine ONEBYTE_BODY at the end.
* iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
* iconvdata/8bit-gap.c (NONNUL): New macro.
(BODY for FROM_LOOP): Use it.
(ONEBYTE_BODY): New macro.
* iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
(NONNUL): New macro.
* iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
* iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
* iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
* iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
* iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
* iconvdata/big5.c (ONEBYTE_BODY): New macro.
* iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
* iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
* iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
* iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
* iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
* iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
* iconvdata/gbk.c (ONEBYTE_BODY): New macro.
* iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
* iconvdata/ibm932.c: Include <stdbool.h>.
(TRUE, FALSE): Remove macros.
(BODY for FROM_LOOP): Remove unused variable rp1.
(ONEBYTE_BODY): New macro.
(BODY for TO_LOOP): Use bool.
* iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
* iconvdata/ibm943.c: Include <stdbool.h>.
(TRUE, FALSE): Remove macros.
(BODY for FROM_LOOP): Remove unused variable rp1.
(ONEBYTE_BODY): New macro.
(BODY for TO_LOOP): Use bool.
* iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
* iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
* iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
* iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
* iconvdata/johab.c (ONEBYTE_BODY): New macro.
* iconvdata/sjis.c (ONEBYTE_BODY): New macro.
* iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
* iconvdata/t.61.c (ONEBYTE_BODY): New macro.
* iconvdata/uhc.c (ONEBYTE_BODY): New macro.
* iconvdata/gbbig5.c: Tweak comment.

21 years ago(__gconv_btowc_fct): New typedef. (struct __gconv_step): New field __btowc_fct.
Ulrich Drepper [Mon, 2 Dec 2002 21:44:26 +0000 (21:44 +0000)] 
(__gconv_btowc_fct): New typedef. (struct __gconv_step): New field __btowc_fct.

21 years ago* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
Roland McGrath [Mon, 2 Dec 2002 21:21:32 +0000 (21:21 +0000)] 
* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition

testing getdents64 return value.

21 years ago2002-12-01 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 2 Dec 2002 21:01:50 +0000 (21:01 +0000)] 
2002-12-01  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
testing getdents64 return value.

21 years agoUpdate.
Ulrich Drepper [Mon, 2 Dec 2002 19:19:37 +0000 (19:19 +0000)] 
Update.

* pthread_cond_timedwait.c: Include <stdlib.h>.

21 years agoUpdate.
Ulrich Drepper [Mon, 2 Dec 2002 18:14:24 +0000 (18:14 +0000)] 
Update.

2002-12-02  Ulrich Drepper  <drepper@redhat.com>

* po/fi.po: Update from translation team.

21 years agoUpdate.
Ulrich Drepper [Mon, 2 Dec 2002 09:06:27 +0000 (09:06 +0000)] 
Update.

2002-12-02  Ulrich Drepper  <drepper@redhat.com>

* Makefile (tests): Add tst-fork2 and tst-fork3.
* tst-fork2.c: New file.
* tst-fork3.c: New file.

21 years agoTests for getppid in MT applications.
Ulrich Drepper [Mon, 2 Dec 2002 08:07:18 +0000 (08:07 +0000)] 
Tests for getppid in MT applications.

21 years ago* scripts/versions.awk: Don't pass -n flag to sort command.
Roland McGrath [Mon, 2 Dec 2002 06:31:28 +0000 (06:31 +0000)] 
* scripts/versions.awk: Don't pass -n flag to sort command.

21 years ago* posix/bug-regex13.c: Include <string.h>.
Roland McGrath [Sun, 1 Dec 2002 23:17:11 +0000 (23:17 +0000)] 
* posix/bug-regex13.c: Include <string.h>.

21 years ago* sysdeps/generic/libc-start.c (__libc_start_main): Do
Roland McGrath [Sun, 1 Dec 2002 22:14:57 +0000 (22:14 +0000)] 
* sysdeps/generic/libc-start.c (__libc_start_main): Do

DL_SYSDEP_OSCHECK here.
* sysdeps/unix/sysv/linux/init-first.c (init): Not here.
* sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.

* sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.

* sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.

* include/link.h: Comment typo fix.

2002-12-01  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
(_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
_POSIX_MEMORY_PROTECTION): Likewise.
(_POSIX_POLL, _POSIX_SELECT): Removed.

21 years ago2002-12-01 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 1 Dec 2002 22:13:42 +0000 (22:13 +0000)] 
2002-12-01  Roland McGrath  <roland@redhat.com>

* include/link.h: Comment typo fix.

21 years agoUpdate.
Ulrich Drepper [Fri, 29 Nov 2002 02:17:58 +0000 (02:17 +0000)] 
Update.

2002-11-28  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.

21 years agoDefine macros which require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
Ulrich Drepper [Fri, 29 Nov 2002 01:45:10 +0000 (01:45 +0000)] 
Define macros which require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.

21 years agoAdd autom4te.cache.
Andreas Schwab [Fri, 29 Nov 2002 00:38:06 +0000 (00:38 +0000)] 
Add autom4te.cache.

21 years agoDefine HAVE_CMOV.
Ulrich Drepper [Thu, 28 Nov 2002 23:52:24 +0000 (23:52 +0000)] 
Define HAVE_CMOV.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 23:01:45 +0000 (23:01 +0000)] 
Update.

2002-11-28  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
USE___THREAD.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
"=v" constraints.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 10:11:51 +0000 (10:11 +0000)] 
Update.

* sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 10:08:49 +0000 (10:08 +0000)] 
Update.

2002-11-28  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file.

* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file.

* sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 08:32:24 +0000 (08:32 +0000)] 
Update.

2002-11-28  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
branch prediction buffers by using unpaired call/ret.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 05:23:05 +0000 (05:23 +0000)] 
Update.

2002-11-27  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
first parameters constraint string.
(ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 01:50:27 +0000 (01:50 +0000)] 
Update.

* sysdeps/x86_64/bits/atomic.h: New file.

* sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and
16-bit operations.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 00:56:18 +0000 (00:56 +0000)] 
Update.

* sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
possible since gettid cannot fail.

21 years agoUpdate.
Ulrich Drepper [Thu, 28 Nov 2002 00:53:12 +0000 (00:53 +0000)] 
Update.

* sysdeps/x86_64/pthreaddef.h: New file.

* sysdeps/i386/pthreaddef.h (gettid): Removed.

* sysdeps/x86_64/pthread_spin_init.c: New file.
* sysdeps/x86_64/pthread_spin_lock.c: New file.
* sysdeps/x86_64/pthread_spin_trylock.c: New file.
* sysdeps/x86_64/pthread_spin_unlock.c: New file.

* sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock):
Add missing lock prefix.  Minute optimization.

* tst-spin2.c (main): Also check successful trylock call.

* sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct
syscall.  Fix typo in case INTERNAL_SYSCALL is not used.

* sysdeps/i386/pthread_spin_destroy.c: Moved to...
* sysdeps/pthread/pthread_spin_destroy.c: ...here.  New file.

* sysdeps/i386/pthread_sigmask.c: Removed.  Use the generic code.
* sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct
value in case of an error.  Add support for INTERNAL_SYSCALL.

21 years agoUpdate.
Ulrich Drepper [Wed, 27 Nov 2002 23:00:16 +0000 (23:00 +0000)] 
Update.

2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>

* posix/regcomp.c (parse_expression): Set the bit since the back
reference is used in the regular expression.
* posix/regex_internal.c (re_node_set_init_1): Make it clean in case
of malloc failure.
(re_node_set_init_copy): Likewise.
* posix/regex_internal.h (state_array_t): New structure.
(re_sub_match_last_t): Likewise.
(re_sub_match_top_t): Likewise.
(re_match_context_t): Add new members.
(re_dfa_t): Likewise.
* posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
to check the matching is really correct, and retry if failed.
Move the routin pruning the impossible nodes from here, ...
(prune_impossible_nodes): To this function.
(check_matching): Invoke check_subexp_matching_top, and replace
redundant checking with transit_state_bkref invocation.
(proceed_next_node): Replace strncmp with memcmp.  Reported by
Paolo Bonzini  <bonzini@gnu.org>.
(update_cur_sifted_state): Remove search_subexp invocation.
(search_subexp): Remove this function.
(check_dst_limits_calc_pos): Use search_cur_bkref_entry for
optimization.
(sift_states_bkref): Use search_cur_bkref_entry for optimization.
Remove unused invocation of match_ctx_add_entry.
(transit_state): Invoke check_subexp_matching_top.
(check_subexp_matching_top): New function.
(transit_state_bkref): Remove unused array.
Merge transit_state_bkref_loop.
(transit_state_bkref_loop): Use get_subexp instead of
sift_states_backward.  Use search_cur_bkref_entry for optimization.
Merge this function to transit_state_bkref.
(get_subexp): New function.
(get_subexp_sub): Likewise.
(find_subexp_node): Likewise.
(check_arrival): Likewise.
(check_arrival_expand_ecl): Likewise.
(check_arrival_expand_ecl_sub): Likewise.
(expand_bkref_cache): Likewise.
(match_ctx_init): Initialize new members.
(match_ctx_clean): New function.
(match_ctx_free): Release new members.
(match_ctx_free_subtops): New function.
(match_ctx_add_entry): Fix indent.
(search_cur_bkref_entry): New function.
(match_ctx_add_subtop): Likewise.
(match_ctx_add_sublast): Likewise.

21 years agoUpdate.
Ulrich Drepper [Wed, 27 Nov 2002 19:58:24 +0000 (19:58 +0000)] 
Update.

* sysdeps/x86_64/pthread_sigmask.c: New file.

* sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
value in case of an error.

21 years agoUpdate.
Ulrich Drepper [Wed, 27 Nov 2002 08:55:35 +0000 (08:55 +0000)] 
Update.

2002-11-27  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/x86_64/tls.h: New file.

21 years agoUpdate.
Ulrich Drepper [Wed, 27 Nov 2002 07:09:18 +0000 (07:09 +0000)] 
Update.

* sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface.  It now
takes the array member name and the index as parameters.
(THREAD_SETMEM_NC): Likewise.
* pthread_getspecific.c: Use new THREAD_GETMEM_NC interface.
* pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC
interfaces.

* sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element
to decide which code to use.
(THREAD_SETMEM_NC): Likewise.

21 years agoInitial revision cvs/initial
Ulrich Drepper [Tue, 26 Nov 2002 22:50:54 +0000 (22:50 +0000)] 
Initial revision

2002-11-26  Ulrich Drepper  <drepper@redhat.com>
* allocatestack.c (queue_stack): Don't remove stack from list here.
Do it in the caller.  Correct condition to prematurely terminate
loop to free stacks.
(__deallocate_stack): Remove stack from list here.
2002-11-26  Ulrich Drepper  <drepper@redhat.com>
* Makefile (tests): Add tst-stack1.
* tst-stack1.c: New file.
* allocatestack.c (allocate_stack): Initialize the TCB on a user
provided stack.
* pthread_attr_getstack.c: Return bottom of the thread area.
2002-11-25  Ulrich Drepper  <drepper@redhat.com>
* Makefile (libpthread-routines): Add pt-allocrtsig and
pthread_kill_other_threads.
* pt-allocrtsig.c: New file.
* pthread_kill_other_threads.c: New file.
* sysdeps/unix/sysv/linux/allocrtsig.c: Add additional aliases for
all three functions.
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
allocrtsig.
* sysdeps/unix/sysv/linux/Versions (libc:GLIBC_PRIVATE): Export
__libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
and __libc_allocate_rtsig_private.
* Versions (libpthread): Export pthread_kill_other_threads_np,
__libc_current_sigrtmin, and __libc_current_sigrtmax.
2002-11-24  Ulrich Drepper  <drepper@redhat.com>

* allocatestack.c (allocate_stack): stackaddr in attribute points to
the end of the stack.  Adjust computations.
When mprotect call fails dequeue stack and free it.
* pthread_attr_setstack.c: Store top of the stack in stackaddr
attribute.
* pthread_getattr_np.c: Likewise.

* descr.h (IS_DETACHED): Add some more parenthesis to prevent
surprises.

2002-11-23  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/pthread/pthread.h (pthread_self): __THROW must come before
attribute definitions.  Patch by Luca Barbieri <ldb@ldb.ods.org>.

2002-11-22  Ulrich Drepper  <drepper@redhat.com>

* pthread_getspecific.c: Optimize access to first 2nd-level array.
* pthread_setspecific.c: Likewise.

2002-11-21  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/createthread.c: Remove CLONE_ flags
definitions.  Get them from the official place.
* sysdeps/unix/sysv/linux/i386/fork.c: Likewise.

* sysdeps/unix/sysv/linux/i386/createthread.c: Update CLONE_* flags.
Use new CLONE_ flags in clone() calls.

* sysdeps/unix/sysv/linux/fork.c: Use ARCH_FORK to actually fork.
* sysdeps/unix/sysv/linux/i386/fork.c: New file.

* Versions: Add pthread_* functions for libc.
* forward.c: New file.

* sysdeps/pthread/Makefile (libpthread-sysdeps_routines): Add
errno-loc.
* herrno.c: New file.
* res.c: New file.

* Makefile (libpthread-routines): Remove sem_post, sem_wait,
sem_trywait, and sem_timedwait.  Add herrno and res.
* sem_init.c: Don't initialize lock and waiters members.
* sem_open.c: Likewise.
* sem_post.c: Removed.
* sem_wait.c: Removed.
* sem_trywait.c: Removed.
* sem_timedwait.c: Removed.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Complete rewrite.
Includes full implementations of sem_post, sem_wait, sem_trywait,
and sem_timedwait.
* sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Adjust
for new implementation.
* sysdeps/unix/sysv/linux/internaltypes.h (struct sem): Remove lock
and waiters fields.

* tst-sem3.c: Improve error message.
* tst-signal3.c: Likewise.

* init.c (__pthread_initialize_minimal): Use set_tid_address syscall
to tell the kernel about the termination futex and to initialize tid
member.  Don't initialize main_thread.
* descr.h (struct pthread): Remove main_thread member.
* cancelllation.c (__do_cancel): Remove code handling main thread.
The main thread is not special anymore.

* allocatestack.c (__reclaim_stacks): Mark stacks as unused.  Add
size of the stacks to stack_cache_actsize.

* pt-readv.c: Add missing "defined".
* pt-sigwait.c: Likewise.
* pt-writev.c: Likewise.

2002-11-09  Ulrich Drepper  <drepper@redhat.com>

* Versions: Export __connect from libpthread.
Patch by Luca Barbieri <ldb@ldb.ods.org>.

* Makefile (libpthread-routines): Add pt-raise.
* sysdeps/unix/sysv/linux/raise.c: New file.
* sysdeps/unix/sysv/linux/pt-raise.c: New file.
* sysdeps/generic/pt-raise.c: New file.

* pthread_cond_init.c: Initialize all data elements of the condvar
structure.  Patch by Luca Barbieri <ldb@ldb.ods.org>.

* pthread_attr_init.c: Actually implement 2.0 compatibility version.
* pthread_create.c: Likewise.

* Makefile (tests): Add tst-key1, tst-key2, tst-key3.
* tst-key1.c: New file.
* tst-key2.c: New file.
* tst-key3.c: New file.

* Versions: Export pthread_detach for version GLIBC_2.0.
Reported by Saurabh Desai <sdesai@austin.ibm.com>.

2002-11-08  Ulrich Drepper  <drepper@redhat.com>

* pthread_key_create.c: Terminate search after an unused key was found.
Patch by Luca Barbieri <ldb@ldb.ods.org>.

* sysdeps/unix/sysv/linux/i386/pthread_once.S: Return zero.
Patch by Luca Barbieri <ldb@ldb.ods.org>.

2002-10-10  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Use slow generic
dynamic lookup for errno in PIC.

* allocatestack.c (get_cached_stack): Rearrange code slightly to
release the stack lock as soon as possible.
Call _dl_allocate_tls_init for TCB from the cache to re-initialize
the static TLS block.
(allocate_stack): Call _dl_allocate_tls_init for user-provided stack.

* cancellation.c: Renamed from cancelation.c.
* Makefile: Adjust accordingly.
* pthreadP.h (CANCELLATION_P): Renamed from CANCELATION_P.
* cleanup_defer.c: Use CANCELLATION_P.
* pthread_testcancel.c: Likewise.
* descr.h: Fix spelling in comments.
* init.c: Likewise.
* pthread_getattr_np.c: Likewise.
* pthread_getschedparam.c: Likewise.
* pthread_setschedparam.c: Likewise.
* Versions: Likewise.

* pt-pselect.c: New file.
* Makefile (libpthread-routines): Add pt-pselect.
* Versions: Add pselect.

* tst-cancel4.c: New file.
* Makefile (tests): Add tst-cancel4.

2002-10-09  Ulrich Drepper  <drepper@redhat.com>

* pthread_mutex_lock.c: Always record lock ownership.
* pthread_mutex_timedlock.c: Likewise.
* pthread_mutex_trylock.c: Likewise.

* pt-readv.c: New file.
* pt-writev.c: New file.
* pt-creat.c: New file.
* pt-msgrcv.c: New file.
* pt-msgsnd.c: New file.
* pt-poll.c: New file.
* pt-select.c: New file.
* pt-sigpause.c: New file.
* pt-sigsuspend.c: New file.
* pt-sigwait.c: New file.
* pt-sigwaitinfo.c: New file.
* pt-waitid.c: New file.
* Makefile (libpthread-routines): Add pt-readv, pt-writev, pt-creat,
pt-msgrcv, pt-msgsnd, pt-poll, pt-select, pt-sigpause, pt-sigsuspend,
pt-sigwait, pt-sigwaitinfo, and pt-waitid.
* Versions: Add all the new functions.

* tst-exit1.c: New file.
* Makefile (tests): Add tst-exit1.

* sem_timedwait.c: Minor optimization for more optimal fastpath.

2002-10-08  Ulrich Drepper  <drepper@redhat.com>

* pt-fcntl.c: Only enable asynchronous cancellation for F_SETLKW.

* pthread_join.c: Enable asynchronous cancellation around lll_wait_tid
call.  pthread_join is an official cancellation point.
* pthread_timedjoin.c: Likewise.

* pthread_cond_wait.c: Revert order in which internal lock are dropped
and the condvar's mutex are retrieved.
* pthread_cond_timedwait.c: Likewise.
Reported by dice@saros.East.Sun.COM.

2002-10-07  Ulrich Drepper  <drepper@redhat.com>

* pthreadP.h: Cut out all type definitions and move them...
* sysdeps/unix/sysv/linux/internaltypes.h: ...here.  New file.
* pthreadP.h: Include <internaltypes.h>.

* sysdeps/unix/sysv/linux/i386/lowlevelsem.h (lll_sem_post): Little
performance tweaks.

* sem_trywait.c: Shuffle #includes around to get right order.
* sem_timedwait.c: Likewise.
* sem_post.c: Likewise.
* sem_wait.c: Likewise.

* nptl 0.3 released.

* Makefile (tests): Add tst-signal3.
* tst-signal3.c: New file.

2002-10-05  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Tell the compiler that
the asms modify the sem object.
(__lll_sem_timedwait): Now takes struct sem* as first parameter.

* sysdeps/unix/sysv/linux/i386/bits/semaphore.h (sem_t): Don't expose
the actual members.
* pthreadP.h (struct sem): New type.  Actual semaphore type.
* semaphoreP.h: Include pthreadP.h.
* sem_getvalue.c: Adjust to sem_t change.
* sem_init.c: Likewise.
* sem_open.c: Likewise.
* sem_post.c: Likewise.
* sem_timedwait.c: Likewise.
* sem_trywait.c: Likewise.
* sem_wait.c: Likewise.

2002-10-04  Ulrich Drepper  <drepper@redhat.com>

* Makefile (tests): Add tst-basic2, tst-exec1, tst-exec3, tst-exec3.
* tst-basic2.c: New file.
* tst-exec1.c: New file.
* tst-exec2.c: New file.
* tst-exec3.c: New file.

* tst-fork1.c: Remove extra */.

* nptl 0.2 released.  The API for IA-32 is complete.

21 years ago* inet/test-ifaddrs.c (main: addr_string): Handle null SA.
Roland McGrath [Tue, 26 Nov 2002 03:29:06 +0000 (03:29 +0000)] 
* inet/test-ifaddrs.c (main: addr_string): Handle null SA.

Grok AF_LINK if defined.
From Momchil Velikov <velco@fadata.bg>.

* sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
brdaddr, or dstaddr, just set those pointers to null and don't fail.
Reported by Momchil Velikov <velco@fadata.bg>.

* sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
is > sizeof IFR->ifa_addr, advance past the whole longer length.
(__ifreq): Count up NIFS that way too.
Reported by Momchil Velikov <velco@fadata.bg>.

* sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.

21 years ago2002-11-25 Roland McGrath <roland@frob.com>
Roland McGrath [Tue, 26 Nov 2002 03:20:30 +0000 (03:20 +0000)] 
2002-11-25  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.

21 years agoUpdate.
Ulrich Drepper [Tue, 26 Nov 2002 02:22:06 +0000 (02:22 +0000)] 
Update.

2002-11-25  Ulrich Drepper  <drepper@redhat.com>

* iconv/Makefile (tests): Remove tst-iconv4.c
* iconv/tst-iconv4.c: Moved to...
* iconvdata/tst-iconv4.c: ...here.  New file.
* iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.

21 years ago(tests): Remove tst-iconv4.c
Ulrich Drepper [Tue, 26 Nov 2002 02:17:06 +0000 (02:17 +0000)] 
(tests): Remove tst-iconv4.c

21 years ago* sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
Roland McGrath [Tue, 26 Nov 2002 01:56:36 +0000 (01:56 +0000)] 
* sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>

and <fpu_control.h>.

21 years ago2002-11-25 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 26 Nov 2002 01:56:30 +0000 (01:56 +0000)] 
2002-11-25  Roland McGrath  <roland@redhat.com>

* sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
and <fpu_control.h>.

21 years agoUpdate.
Ulrich Drepper [Mon, 25 Nov 2002 01:53:29 +0000 (01:53 +0000)] 
Update.

2002-11-24  Ulrich Drepper  <drepper@redhat.com>

* elf/elf.h (EM_ST19): Fix typo.

21 years ago(EM_ST19): Fix typo.
Ulrich Drepper [Mon, 25 Nov 2002 01:47:15 +0000 (01:47 +0000)] 
(EM_ST19): Fix typo.

21 years ago* include/errno.h (__set_errno): Define as errno = val
Roland McGrath [Mon, 25 Nov 2002 00:14:23 +0000 (00:14 +0000)] 
* include/errno.h (__set_errno): Define as errno = val

unconditionally.

21 years ago* sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
Roland McGrath [Sun, 24 Nov 2002 23:56:47 +0000 (23:56 +0000)] 
* sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.

* sysdeps/posix/writev.c: Likewise.
From Momchil Velikov <velco@fadata.bg>.

* elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
calling *GL(dl_error_catch_tsd) for a thread-local location.
* elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
(dl_main): Same for GL(dl_error_catch_tsd) initialization.
* elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].

* libio/iofflush.c: Add libc_hidden_def.
* libio/iofwrite.c: Likewise.
* sysdeps/generic/sigtimedwait.c: Likewise.
* sysdeps/generic/sigwaitinfo.c: Likewise.
* sysdeps/posix/sigwait.c: Likewise.
Reported by Momchil Velikov <velco@fadata.bg>.

* inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
to match <arpa/inet.h> declaration.
* inet/inet_netof.c (inet_netof): Likewise.
* inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
Reported by Momchil Velikov <velco@fadata.bg>.

21 years ago* configure.in: Skip AUTOCONF check under --without-cvs.
Roland McGrath [Sun, 24 Nov 2002 23:11:32 +0000 (23:11 +0000)] 
* configure.in: Skip AUTOCONF check under --without-cvs.

* configure: Regenerated.

* posix/Makefile (headers): Add bits/pthreadtypes.h.
* sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
* sysdeps/unix/sysv/linux/Dist: Remove it from the list.

21 years ago2002-11-24 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 24 Nov 2002 23:11:14 +0000 (23:11 +0000)] 
2002-11-24  Roland McGrath  <roland@redhat.com>

* configure.in: Skip AUTOCONF check under --without-cvs.
* configure: Regenerated.

21 years ago* sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
Andreas Schwab [Sun, 24 Nov 2002 19:41:50 +0000 (19:41 +0000)] 
* sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall

with six arguments.

21 years agoSupport inline syscall with six arguments.
Andreas Schwab [Sun, 24 Nov 2002 19:41:42 +0000 (19:41 +0000)] 
Support inline syscall with six arguments.

21 years agoUpdate.
Ulrich Drepper [Sun, 24 Nov 2002 18:41:22 +0000 (18:41 +0000)] 
Update.

2002-11-19  Jim Meyering  <jim@meyering.net>

* time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
as `static'.
* time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.

21 years ago(__mon_yday, __mktime_internal) [!_LIBC]: Declare as `static'.
Ulrich Drepper [Sun, 24 Nov 2002 18:37:56 +0000 (18:37 +0000)] 
(__mon_yday, __mktime_internal) [!_LIBC]: Declare as `static'.

21 years agoRegenerated: autoconf sysdeps/generic/configure.in
Andreas Schwab [Sun, 24 Nov 2002 17:39:51 +0000 (17:39 +0000)] 
Regenerated: autoconf  sysdeps/generic/configure.in

21 years agoRegenerated: autoconf sysdeps/unix/configure.in
Andreas Schwab [Sun, 24 Nov 2002 17:39:46 +0000 (17:39 +0000)] 
Regenerated: autoconf  sysdeps/unix/configure.in

21 years ago* scripts/abilist.awk: Avoid strtonum function, not there in mawk.
Roland McGrath [Sun, 24 Nov 2002 01:54:06 +0000 (01:54 +0000)] 
* scripts/abilist.awk: Avoid strtonum function, not there in mawk.

Just produce hex output for datum sizes.

21 years ago* elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
Roland McGrath [Sat, 23 Nov 2002 21:34:23 +0000 (21:34 +0000)] 
* elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.

Reported by Luca Barbieri <ldb@ldb.ods.org>.

21 years ago2002-11-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 23 Nov 2002 21:34:16 +0000 (21:34 +0000)] 
2002-11-23  Roland McGrath  <roland@redhat.com>

* elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
Reported by Luca Barbieri <ldb@ldb.ods.org>.

21 years ago__unused3, and __unused4 fields.
Andreas Schwab [Fri, 22 Nov 2002 16:16:26 +0000 (16:16 +0000)] 
__unused3, and __unused4 fields.

21 years ago* sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
Roland McGrath [Fri, 22 Nov 2002 05:23:51 +0000 (05:23 +0000)] 
* sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)

[__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
and __unused3 fields.
* sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
[__WORDSIZE == 32]: Only PPC32 requires __unused1
and __unused2 fields.
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
[__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
__unused3,\ 3and __unused4 fields.

21 years ago2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
Roland McGrath [Fri, 22 Nov 2002 05:05:02 +0000 (05:05 +0000)] 
2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>

* csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
obtain lowest address for profiling in __monstartup call.
* sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
$(calls) $(calls:=f) $(long-c-$(long-double-fcts)).

2002-11-21  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
__libc_multiple_libcs here.  Call __setfpucw.

21 years ago* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
Roland McGrath [Fri, 22 Nov 2002 04:23:05 +0000 (04:23 +0000)] 
* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set

__libc_multiple_libcs here.  Call __setfpucw.

* locale/localeinfo.h (struct locale_data): Revert last change.

21 years ago* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
Roland McGrath [Fri, 22 Nov 2002 01:27:01 +0000 (01:27 +0000)] 
* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.

From Ian Wienand <ianw@gelato.unsw.edu.au>.

* sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
__NR_pread64 if not defined.
(__NR_pwrite): Define to __NR_pwrite64 if not defined.
From Ian Wienand <ianw@gelato.unsw.edu.au>.

21 years ago2002-11-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 22 Nov 2002 01:26:53 +0000 (01:26 +0000)] 
2002-11-21  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
From Ian Wienand <ianw@gelato.unsw.edu.au>.

21 years agoUpdate.
Ulrich Drepper [Fri, 22 Nov 2002 00:41:16 +0000 (00:41 +0000)] 
Update.

* elf/Makefile (tests): Don't run test-arrayX tests for now.

21 years agoUpdate.
Ulrich Drepper [Fri, 22 Nov 2002 00:09:11 +0000 (00:09 +0000)] 
Update.

2002-11-21  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
* sysdeps/unix/sysv/linux/i386/clone.S: Add support for
CLONE_CHILD_*TID flags.

21 years agoAdd support for CLONE_CHILD_*TID flags.
Ulrich Drepper [Fri, 22 Nov 2002 00:01:03 +0000 (00:01 +0000)] 
Add support for CLONE_CHILD_*TID flags.

21 years ago* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
Andreas Jaeger [Thu, 21 Nov 2002 11:09:39 +0000 (11:09 +0000)] 
* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):

We pass struct ucontext on x86-64.
(GET_PC): Adjust.
(GET_FRAME): Adjust.
(GET_STACK): Adjust.

21 years ago* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
Andreas Jaeger [Thu, 21 Nov 2002 11:09:28 +0000 (11:09 +0000)] 
* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):

We pass struct ucontext on x86-64.
(GET_PC): Adjust.
(GET_FRAME): Adjust.
(GET_STACK): Adjust.

21 years agoImprove error message.
Ulrich Drepper [Thu, 21 Nov 2002 04:41:14 +0000 (04:41 +0000)] 
Improve error message.

21 years ago* sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
Roland McGrath [Thu, 21 Nov 2002 04:10:59 +0000 (04:10 +0000)] 
* sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further

conditionalize [! DO_VERSIONING] #error.

21 years ago* scripts/abilist.awk: Grok function descriptor symbols.
Roland McGrath [Thu, 21 Nov 2002 03:41:31 +0000 (03:41 +0000)] 
* scripts/abilist.awk: Grok function descriptor symbols.

* intl/tst-gettext.c (main): Check return values from setlocale.
Add necessary unsetenv's to make LANG=existing-locale check work.

* intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
so aborted prior runs don't confuse things.

* locale/localeinfo.h (struct locale_data: union locale_data_value):
Use uintptr_t instead of unsigned int for `word' member.
(_NL_CURRENT_WORD): Cast to uint32_t.

* posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
value.

21 years ago2002-11-20 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 21 Nov 2002 03:41:16 +0000 (03:41 +0000)] 
2002-11-20  Roland McGrath  <roland@redhat.com>

* intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
so aborted prior runs don't confuse things.

21 years agoUpdate.
Ulrich Drepper [Thu, 21 Nov 2002 03:06:21 +0000 (03:06 +0000)] 
Update.

* elf/tls-macros.h: Add IA-64 definitions.
Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.

21 years agoUpdate.
Ulrich Drepper [Thu, 21 Nov 2002 00:23:18 +0000 (00:23 +0000)] 
Update.

* iconv/Makefile (tests): Add tst-iconv4.
* iconv/tst-iconv4.c: New file.

21 years agoUpdate.
Ulrich Drepper [Wed, 20 Nov 2002 23:42:04 +0000 (23:42 +0000)] 
Update.

* iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
__GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
__GCONV_INCOMPLETE_INPUT.
(ucs4le_internal_loop): Likewise.
(ucs4le_internal_loop_unaligned): Likewise.
* iconvdata/unicode.c (PREPARE_LOOP): Likewise.
* iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
* iconvdata/utf-32.c (PREPARE_LOOP): Likewise.

* iconv/loop.c (LOOPFCT): First test for empty input then for full
output buffer.

21 years agoUpdate.
Ulrich Drepper [Wed, 20 Nov 2002 19:48:07 +0000 (19:48 +0000)] 
Update.

2002-11-20  Ulrich Drepper  <drepper@redhat.com>

* inet/getnameinfo.c: Use extend_alloca where appropriate.
* sysdeps/posix/getaddrinfo.c: Likewise.

* include/alloca.h (extend_alloca): New define.  Based on stack
direction it'll try to append to the previouls allocated buffer.

2002-11-07  Thorsten Kukuk  <kukuk@suse.de>

* sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
use the same service for AF_INET and AF_INET6.

2002-11-19  Ulrich Drepper  <drepper@redhat.com>

* intl/localealias.c (read_alias_file): Use only about 400 bytes
of stack space instead of 16k.

21 years ago(extend_alloca): New define. Based on stack direction it'll try to append to the...
Ulrich Drepper [Wed, 20 Nov 2002 19:42:37 +0000 (19:42 +0000)] 
(extend_alloca): New define.  Based on stack direction it'll try to append to the previouls allocated buffer.

21 years ago* malloc/arena.c
Roland McGrath [Wed, 20 Nov 2002 09:41:01 +0000 (09:41 +0000)] 
* malloc/arena.c

(ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
nothing if not initialized.  Bug report from Marcus Brinkmann
<Marcus.Brinkmann@ruhr-uni-bochum.de>.

21 years ago2002-11-18 Wolfram Gloger <wg@malloc.de>
Roland McGrath [Wed, 20 Nov 2002 09:40:55 +0000 (09:40 +0000)] 
2002-11-18  Wolfram Gloger  <wg@malloc.de>

* malloc/arena.c
(ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
nothing if not initialized.  Bug report from Marcus Brinkmann
<Marcus.Brinkmann@ruhr-uni-bochum.de>.

21 years ago(read_alias_file): Use only about 400 bytes of stack space instead of 16k.
Ulrich Drepper [Wed, 20 Nov 2002 04:19:45 +0000 (04:19 +0000)] 
(read_alias_file): Use only about 400 bytes of stack space instead of 16k.

21 years agoUpdate.
Ulrich Drepper [Wed, 20 Nov 2002 01:25:19 +0000 (01:25 +0000)] 
Update.

2002-11-19  Ulrich Drepper  <drepper@redhat.com>

* Versions (libc:GLIBC_2.0): Remove names of functions which are
not defined in libc.
* Makefile (shared-only-routines): Add weaks.
* weaks.c: Remove functions which are not exported from libc.so.

21 years agoRemove functions which are not exported from libc.so.
Ulrich Drepper [Wed, 20 Nov 2002 01:22:19 +0000 (01:22 +0000)] 
Remove functions which are not exported from libc.so.

21 years ago* posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
Roland McGrath [Wed, 20 Nov 2002 01:05:35 +0000 (01:05 +0000)] 
* posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and

sched_setaffinity.

21 years ago* configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
Roland McGrath [Tue, 19 Nov 2002 22:15:00 +0000 (22:15 +0000)] 
* configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries

`-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
* configure: Regenerated.

21 years ago2002-11-19 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 19 Nov 2002 22:14:48 +0000 (22:14 +0000)] 
2002-11-19  Roland McGrath  <roland@redhat.com>

* configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
`-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
* configure: Regenerated.

21 years agoUpdate.
Ulrich Drepper [Tue, 19 Nov 2002 19:30:55 +0000 (19:30 +0000)] 
Update.

2002-11-19  Ulrich Drepper  <drepper@redhat.com>

* include/dlfcn.h: __libc_dlopen is now a macro calling
__libc_dlopen_mode with the extra parameter RTLD_LAZY.
(__libc_dlopen_mode): New prototype.
* elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
new parameter.  Store new parameter in mode field of structure passed
to do_dlopen.
(struct do_dlopen_args): Add new field mode.
(do_dlopen): Pass mode from parameter structure to _dl_open.

* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
Define mcontext_t as a sigcontext.
* manual/crypt.texi (Cryptographic Functions): Mention that
the MD5 one-way algorithm is compatible with BSD's.

21 years ago__libc_dlopen is now a macro calling __libc_dlopen_mode with the extra parameter...
Ulrich Drepper [Tue, 19 Nov 2002 19:27:17 +0000 (19:27 +0000)] 
__libc_dlopen is now a macro calling __libc_dlopen_mode with the extra parameter RTLD_LAZY. (__libc_dlopen_mode): New prototype.

21 years ago* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
Roland McGrath [Tue, 19 Nov 2002 09:27:04 +0000 (09:27 +0000)] 
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]

(F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
* sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.

21 years ago* sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
Roland McGrath [Tue, 19 Nov 2002 06:41:14 +0000 (06:41 +0000)] 
* sysdeps/hppa/fpu/libm-test-ulps: New file (generated).

* sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
Set -mdisable-fpregs for this file.

2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>

* sysdeps/unix/sysv/linux/configure.in:
Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
from gcc-3.0 era for backwards compatibility.
* sysdeps/unix/sysv/linux/configure: Regenerate.

        * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
        Define mcontext_t as a sigcontext.

* dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
Free memory in `last_result' if it was used.

* resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
Do the parsing inline instead of copying strings and calling
inet_network, and properly skip all alias names not matching the form.

21 years ago* manual/pattern.texi (Variable Substitution): Fix # and ## examples.
Roland McGrath [Mon, 18 Nov 2002 20:33:23 +0000 (20:33 +0000)] 
* manual/pattern.texi (Variable Substitution): Fix # and ## examples.

* manual/pattern.texi (Wordexp Example): Fix sample code.

2002-11-14  Paul Eggert  <eggert@twinsun.com>

21 years ago2002-11-18 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 18 Nov 2002 20:31:41 +0000 (20:31 +0000)] 
2002-11-18  Roland McGrath  <roland@redhat.com>

* manual/pattern.texi (Variable Substitution): Fix # and ## examples.

21 years ago(Wordexp Example): Fix three bugs in the example code, all related to the options...
Ulrich Drepper [Mon, 18 Nov 2002 20:25:07 +0000 (20:25 +0000)] 
(Wordexp Example): Fix three bugs in the example code, all related to the options parameter.

21 years agoUpdate.
Ulrich Drepper [Mon, 18 Nov 2002 07:41:51 +0000 (07:41 +0000)] 
Update.

2002-11-17  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
childs stack which will be loaded into the %esi register.

* resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
overflow when skipping the question part and when unpacking aliases.

21 years agoInitialize word in the childs stack which will be loaded into the %esi register.
Ulrich Drepper [Mon, 18 Nov 2002 07:41:00 +0000 (07:41 +0000)] 
Initialize word in the childs stack which will be loaded into the %esi register.

21 years ago2002-11-14 Paul Eggert <eggert@twionsun.com>
Roland McGrath [Mon, 18 Nov 2002 04:10:15 +0000 (04:10 +0000)] 
2002-11-14  Paul Eggert  <eggert@twionsun.com>

        * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
        overflow when skipping the question part and when unpacking
        aliases.

21 years ago* math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
Roland McGrath [Fri, 15 Nov 2002 23:50:05 +0000 (23:50 +0000)] 
* math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,

s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
Instead add $(calls:s_%=m_%) to get m_* versions of them all.

21 years ago* sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
Roland McGrath [Fri, 15 Nov 2002 22:51:30 +0000 (22:51 +0000)] 
* sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.

* sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.

2002-11-15  Roland McGrath  <roland@redhat.com>

* math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
* Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
(+make-include-of-dep): New canned sequence.

* stdlib/canonicalize.c (__realpath): Check for malloc failure.
From Dmitry V. Levin <ldv@altlinux.org>.

21 years ago* sysdeps/generic/errno.c (__libc_errno): Remove alias.
Roland McGrath [Fri, 15 Nov 2002 03:37:24 +0000 (03:37 +0000)] 
* sysdeps/generic/errno.c (__libc_errno): Remove alias.

* inet/herrno.c (__libc_h_errno): Likewise.
* resolv/res_libc.c (__libc_res): Likewise.
[USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
(__res_state) [! USE___THREAD]: Don't define as weak.
* csu/Versions: Revert last change.
* resolv/Versions: Revert last change.

* Makerules ($(common-objpfx)%.make): New pattern rule.
* tls.make.c: New file.
* Makefile (distribute): Add it.

21 years ago2002-11-14 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 15 Nov 2002 03:36:52 +0000 (03:36 +0000)] 
2002-11-14  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/errno.c (__libc_errno): Remove alias.
* inet/herrno.c (__libc_h_errno): Likewise.
* resolv/res_libc.c (__libc_res): Likewise.
[USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
(__res_state) [! USE___THREAD]: Don't define as weak.
* csu/Versions: Revert last change.
* resolv/Versions: Revert last change.

21 years agoRegenerated: autoconf sysdeps/unix/common/configure.in
Ulrich Drepper [Fri, 15 Nov 2002 00:01:53 +0000 (00:01 +0000)] 
Regenerated: autoconf  sysdeps/unix/common/configure.in

21 years agoRegenerated: autoconf sysdeps/unix/sysv/linux/configure.in
Ulrich Drepper [Fri, 15 Nov 2002 00:01:40 +0000 (00:01 +0000)] 
Regenerated: autoconf  sysdeps/unix/sysv/linux/configure.in

21 years ago* sysdeps/generic/errno.c [! USE___THREAD]
Roland McGrath [Thu, 14 Nov 2002 21:23:12 +0000 (21:23 +0000)] 
* sysdeps/generic/errno.c [! USE___THREAD]

[HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
with compat_symbol so they are not link-time visible.
[! USE___THREAD] (__libc_errno): New alias for errno.
* csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
Add __libc_errno here.
* inet/herrno.c [USE___THREAD]: Use this conditional
in place of [USE_TLS && HAVE___THREAD].
[! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
(h_errno, _h_errno): Declare these with compat_symbol so they are not
link-time visible.
[! USE___THREAD] (__libc_h_errno): New alias for h_errno.
* resolv/res_libc.c [! USE___THREAD]
[HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
(_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
(__libc_res): Define as alias for _res.
* resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
Add __libc_h_errno and __libc_res here.

2002-11-14  Jakub Jelinek  <jakub@redhat.com>

* csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
* resolv/Versions (h_errno, _res): Likewise.

2002-11-14  Roland McGrath  <roland@redhat.com>

21 years ago* Makerules (%.dynsym): Remove $(objpfx) from target and dep.
Roland McGrath [Thu, 14 Nov 2002 20:26:56 +0000 (20:26 +0000)] 
* Makerules (%.dynsym): Remove $(objpfx) from target and dep.

(%.symlist): Likewise.

21 years ago2002-11-14 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 14 Nov 2002 20:25:45 +0000 (20:25 +0000)] 
2002-11-14  Roland McGrath  <roland@redhat.com>

* Makerules (%.dynsym): Remove $(objpfx) from target and dep.