kopensolaris-gnu/glibc.git
17 years agoUpdate from tzdata2002d.
drepper [Tue, 15 Oct 2002 18:25:06 +0000 (18:25 +0000)]
Update from tzdata2002d.

17 years ago.
roland [Tue, 15 Oct 2002 08:38:53 +0000 (08:38 +0000)]
.

17 years ago2002-10-15 Roland McGrath <roland@redhat.com>
roland [Tue, 15 Oct 2002 08:38:43 +0000 (08:38 +0000)]
2002-10-15  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
Adjust TCB pointer before calling free, so we get the whole block.

17 years ago2002-10-14 Roland McGrath <roland@redhat.com>
roland [Tue, 15 Oct 2002 08:38:41 +0000 (08:38 +0000)]
2002-10-14  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/sigaction.c
[HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
extern using attribute_hidden instead of static, avoids warning.

17 years agoUpdate.
aj [Tue, 15 Oct 2002 07:37:36 +0000 (07:37 +0000)]
Update.

17 years agoUse */lib64 for s390x too.
aj [Tue, 15 Oct 2002 07:37:22 +0000 (07:37 +0000)]
Use */lib64 for s390x too.

17 years agoUpdate.
drepper [Mon, 14 Oct 2002 20:04:25 +0000 (20:04 +0000)]
Update.

17 years agoUpdate from translation team.
drepper [Mon, 14 Oct 2002 20:04:11 +0000 (20:04 +0000)]
Update from translation team.

17 years agoUpdate.
drepper [Mon, 14 Oct 2002 18:10:15 +0000 (18:10 +0000)]
Update.

17 years agoPROCQUIT): New.
drepper [Mon, 14 Oct 2002 18:08:02 +0000 (18:08 +0000)]
PROCQUIT): New.
(struct rpc_arg): New.
(dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
(test_one_call): Take struct rpc_arg * instead of CLIENT *c.
(thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
(main): Modified for struct rpc_arg *.

17 years ago(SCANDIR): Rearrange code a bit to reduce binary size.
drepper [Mon, 14 Oct 2002 18:02:58 +0000 (18:02 +0000)]
(SCANDIR): Rearrange code a bit to reduce binary size.

17 years agoInclude tls.h.
drepper [Mon, 14 Oct 2002 17:29:44 +0000 (17:29 +0000)]
Include tls.h.
(SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
in ld.so even if __thread is supported.

17 years ago(profil_counter): Add hack to prevent the compiler from clobbering the signal
drepper [Mon, 14 Oct 2002 17:26:13 +0000 (17:26 +0000)]
(profil_counter): Add hack to prevent the compiler from clobbering the signal
context.

17 years ago.
aj [Mon, 14 Oct 2002 08:59:13 +0000 (08:59 +0000)]
.

17 years agoRegenerated.
aj [Mon, 14 Oct 2002 08:59:01 +0000 (08:59 +0000)]
Regenerated.

17 years agoUpdate.
drepper [Mon, 14 Oct 2002 08:29:45 +0000 (08:29 +0000)]
Update.

17 years agoUpdate from translation team.
drepper [Mon, 14 Oct 2002 08:29:35 +0000 (08:29 +0000)]
Update from translation team.

17 years ago2002-10-05 Roland McGrath <roland@redhat.com>
roland [Mon, 14 Oct 2002 08:03:18 +0000 (08:03 +0000)]
2002-10-05  Roland McGrath  <roland@redhat.com>

* include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
* Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
Use that file's contents instead of literal echo's for the prologue.
* include/features.h: Include <gnu/stubs.h> unconditionally.
* include/gnu/stubs.h: New file.

17 years agomention $LIB
roland [Mon, 14 Oct 2002 01:08:26 +0000 (01:08 +0000)]
mention $LIB

17 years ago.
roland [Mon, 14 Oct 2002 01:06:59 +0000 (01:06 +0000)]
.

17 years ago2002-09-26 Roland McGrath <roland@redhat.com>
roland [Mon, 14 Oct 2002 01:06:56 +0000 (01:06 +0000)]
2002-09-26  Roland McGrath  <roland@redhat.com>

* elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
dynamic string tag.
* elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
DL_DST_LIB based on $(slibdir).

17 years ago.
roland [Mon, 14 Oct 2002 01:03:16 +0000 (01:03 +0000)]
.

17 years ago2002-10-13 Roland McGrath <roland@frob.com>
roland [Mon, 14 Oct 2002 01:03:11 +0000 (01:03 +0000)]
2002-10-13  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/getresuid.c: New file.
* sysdeps/mach/hurd/getresgid.c: New file.
* sysdeps/mach/hurd/setresuid.c: New file.
* sysdeps/mach/hurd/setresgid.c: New file.

17 years ago2002-10-13 Roland McGrath <roland@frob.com>
roland [Mon, 14 Oct 2002 01:03:09 +0000 (01:03 +0000)]
2002-10-13  Roland McGrath  <roland@frob.com>

* hurd/errno.c: Renamed to ...
* hurd/errno-loc.c: ... this.
* hurd/Makefile (routines): errno -> errno-loc

17 years ago2002-10-13 Roland McGrath <roland@frob.com>
roland [Mon, 14 Oct 2002 01:03:07 +0000 (01:03 +0000)]
2002-10-13  Roland McGrath  <roland@frob.com>

* sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
(sysdep_routines): Add setfsuid and setfsgid here.
* sysdeps/unix/sysv/linux/arm/Makefile: Not here.
* sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
* sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.

17 years ago2002-10-13 Roland McGrath <roland@frob.com>
roland [Mon, 14 Oct 2002 01:03:05 +0000 (01:03 +0000)]
2002-10-13  Roland McGrath  <roland@frob.com>

* elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.

17 years ago2002-10-13 Roland McGrath <roland@frob.com>
roland [Mon, 14 Oct 2002 01:03:00 +0000 (01:03 +0000)]
2002-10-13  Roland McGrath  <roland@frob.com>

* posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
setresgid): Declare them.
* NEWS: Mention it.
* include/unistd.h
(__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
add libc_hidden_proto.
* posix/Versions (libc: GLIBC_2.3.2): New set.  Add
getresuid, getresgid, setresuid, setresgid here.
* Versions.def (libc): Define GLIBC_2.3.2 set.
* sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
Add libc_hidden_def.
* sysdeps/generic/getresgid.c (__getresgid): Likewise.
* sysdeps/generic/setresgid.c: New file.
* sysdeps/generic/setresuid.c: New file.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
(sysdep_routines): Don't add getresuid and getresgid here.
* sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
(sysdep_routines): Don't add setresuid and setresgid here.
* sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
* sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
* posix/Makefile (routines): Add them all here instead.
* sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
__getresuid.  Add libc_hidden_def for that, and weak alias to old name.
* sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
__getresgid.  Add libc_hidden_def for that, and weak alias to old name.
* sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
[! __NR_setresuid]: Include generic file.
* sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
__setresgid.  Add libc_hidden_def for that, and weak alias to old name.
[! __NR_setresuid]: Include generic file.
* sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
Caller is - now, not EXTRA.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
(setresuid, setresgid, getresuid, getresgid): Likewise.
* sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
Add these calls here.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
* sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.

17 years ago2002-10-13 Roland McGrath <roland@frob.com>
roland [Mon, 14 Oct 2002 01:02:52 +0000 (01:02 +0000)]
2002-10-13  Roland McGrath  <roland@frob.com>

* posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
setresgid): Declare them.
* NEWS: Mention it.
* include/unistd.h
(__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
add libc_hidden_proto.
* posix/Versions (libc: GLIBC_2.3.2): New set.  Add
getresuid, getresgid, setresuid, setresgid here.
* Versions.def (libc): Define GLIBC_2.3.2 set.
* sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
Add libc_hidden_def.
* sysdeps/generic/getresgid.c (__getresgid): Likewise.
* sysdeps/generic/setresgid.c: New file.
* sysdeps/generic/setresuid.c: New file.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
(sysdep_routines): Don't add getresuid and getresgid here.
* sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
(sysdep_routines): Don't add setresuid and setresgid here.
* sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
* sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
* posix/Makefile (routines): Add them all here instead.
* sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
__getresuid.  Add libc_hidden_def for that, and weak alias to old name.
* sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
__getresgid.  Add libc_hidden_def for that, and weak alias to old name.
* sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
[! __NR_setresuid]: Include generic file.
* sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
__setresgid.  Add libc_hidden_def for that, and weak alias to old name.
[! __NR_setresuid]: Include generic file.
* sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
Caller is - now, not EXTRA.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
(setresuid, setresgid, getresuid, getresgid): Likewise.
* sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
Add these calls here.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
* sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
(sysdep_routines): Add setfsuid and setfsgid here.
* sysdeps/unix/sysv/linux/arm/Makefile: Not here.
* sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
* sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
* sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
* sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.

17 years agoRemove invalid translations found by xgettext.
drepper [Mon, 14 Oct 2002 00:32:20 +0000 (00:32 +0000)]
Remove invalid translations found by xgettext.

17 years agoUpdate from translation team.
drepper [Sun, 13 Oct 2002 19:43:37 +0000 (19:43 +0000)]
Update from translation team.

17 years agoUpdate.
drepper [Sun, 13 Oct 2002 17:02:27 +0000 (17:02 +0000)]
Update.

17 years agoUpdate from translation team.
drepper [Sun, 13 Oct 2002 17:02:00 +0000 (17:02 +0000)]
Update from translation team.

17 years agoUpdate.
drepper [Sun, 13 Oct 2002 08:42:30 +0000 (08:42 +0000)]
Update.

17 years agoAdd -E flag to xgettext runs.
drepper [Sun, 13 Oct 2002 08:42:04 +0000 (08:42 +0000)]
Add -E flag to xgettext runs.

17 years agoUpdate.
drepper [Sun, 13 Oct 2002 02:06:44 +0000 (02:06 +0000)]
Update.

17 years agoUpdate from translation team.
drepper [Sun, 13 Oct 2002 02:02:24 +0000 (02:02 +0000)]
Update from translation team.

17 years agoUpdate.
drepper [Sat, 12 Oct 2002 20:24:52 +0000 (20:24 +0000)]
Update.

17 years agoRemove support for old and buggy SCO systems.
drepper [Sat, 12 Oct 2002 20:24:30 +0000 (20:24 +0000)]
Remove support for old and buggy SCO systems.
Optimize a bit for use in glibc.

17 years ago.
roland [Sat, 12 Oct 2002 18:45:29 +0000 (18:45 +0000)]
.

17 years ago2002-10-12 Roland McGrath <roland@redhat.com>
roland [Sat, 12 Oct 2002 18:45:26 +0000 (18:45 +0000)]
2002-10-12  Roland McGrath  <roland@redhat.com>

* stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.

17 years agoUpdate.
drepper [Sat, 12 Oct 2002 16:30:18 +0000 (16:30 +0000)]
Update.

17 years agoUpdate from translation team.
drepper [Sat, 12 Oct 2002 16:29:43 +0000 (16:29 +0000)]
Update from translation team.

17 years agoUpdate.
drepper [Sat, 12 Oct 2002 08:34:26 +0000 (08:34 +0000)]
Update.

17 years ago(check_matching): Remove the handling OP_CONTEXT_NODE.
drepper [Sat, 12 Oct 2002 08:34:17 +0000 (08:34 +0000)]
(check_matching): Remove the handling OP_CONTEXT_NODE.
(check_halt_node_context): Likewise.
(proceed_next_node): Likewise.
(pop_fail_stack): Fix the memory leak.
(set_regs): Likewise.
(free_fail_stack_return): New function.
(sift_states_backward): Fix the memory leak.  Remove the handling
OP_CONTEXT_NODE.
(update_cur_sifted_state): Append some if clause to avoid redundant call.
(sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a back reference.
(check_dst_limits): Remove the handling OP_CONTEXT_NODE.
(check_subexp_limits): Likewise.
(search_subexp): Likewise.
(sift_states_bkref): Likewise.
(transit_state_mb): Likewise.
(transit_state_bkref_loop): Likewise.
(transit_state_bkref_loop): Likewise.
(group_nodes_into_DFAstates): Likewise.
(check_node_accept): Likewise.
(sift_ctx_init): Add initializing.

17 years ago(re_token_type_t): Remove the obsolete type.
drepper [Sat, 12 Oct 2002 08:33:30 +0000 (08:33 +0000)]
(re_token_type_t): Remove the obsolete type.
(re_token_t): Likewise.
(re_dfa_t): Likewise.
(re_node_set_remove): New macro.

17 years ago(re_dfa_add_node): Remove the substitutions which became useless.
drepper [Sat, 12 Oct 2002 08:33:12 +0000 (08:33 +0000)]
(re_dfa_add_node): Remove the substitutions which became useless.
(create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
(create_cd_newstate): Likewise.

17 years ago(re_compile_fastmap_iter): Remove the handling OP_CONTEXT_NODE.
drepper [Sat, 12 Oct 2002 08:32:40 +0000 (08:32 +0000)]
(re_compile_fastmap_iter): Remove the handling OP_CONTEXT_NODE.
(regfree): Likewise.
(create_initial_state): Likewise.
(analyze): Remove the substitutions which became useless.
(calc_first): Likewise.
(calc_epsdest): Use edests of OP_BACK_REF in case that it has
epsilon destination.
(duplicate_node_closure): New function.
(duplicate_node): Remove the handling OP_CONTEXT_NODE.
(calc_inveclosure): Likewise.
(calc_eclosure): Likewise.
(calc_eclosure_iter): Invoke duplicate_node_closure instead of
direct invocation of duplicate_node.
(parse): Don't use comma operator in the return to avoid compiler
warning.
(parse_reg_exp): Likewise.
(parse_branch): Likewise.
(parse_expression): Likewise.
(parse_sub_exp): Likewise.
(parse_dup_op): Likewise.

17 years ago(INLINE_SYSCALL): Use __builtin_expect.
drepper [Sat, 12 Oct 2002 08:31:30 +0000 (08:31 +0000)]
(INLINE_SYSCALL): Use __builtin_expect.

17 years agoUpdate.
drepper [Sat, 12 Oct 2002 06:34:56 +0000 (06:34 +0000)]
Update.

17 years ago(_dl_map_object_from_fd): Remove unnecessarily duplicated variable c.
drepper [Sat, 12 Oct 2002 06:34:23 +0000 (06:34 +0000)]
(_dl_map_object_from_fd): Remove unnecessarily duplicated variable c.

17 years ago(INTERNAL_SYSCALL_ERROR_P): Add cast for safety.
drepper [Sat, 12 Oct 2002 02:07:29 +0000 (02:07 +0000)]
(INTERNAL_SYSCALL_ERROR_P): Add cast for safety.

17 years agoUpdate.
drepper [Sat, 12 Oct 2002 00:49:44 +0000 (00:49 +0000)]
Update.

17 years ago(__sigwait): Use INTERNAL_SYSCALL is possible.
drepper [Sat, 12 Oct 2002 00:49:15 +0000 (00:49 +0000)]
(__sigwait): Use INTERNAL_SYSCALL is possible.

17 years ago(INTERNAL_SYSCALL_ERROR_P): New define.
drepper [Sat, 12 Oct 2002 00:48:39 +0000 (00:48 +0000)]
(INTERNAL_SYSCALL_ERROR_P): New define.
(INTERNAL_SYSCALL_ERRNO): Likewise.

17 years agoUpdate.
drepper [Fri, 11 Oct 2002 19:00:09 +0000 (19:00 +0000)]
Update.

17 years ago(profil_counter): Add hack to prevent the compiler from clobbering the
drepper [Fri, 11 Oct 2002 18:56:32 +0000 (18:56 +0000)]
(profil_counter): Add hack to prevent the compiler from clobbering the
signal context.

17 years ago.
roland [Fri, 11 Oct 2002 12:54:53 +0000 (12:54 +0000)]
.

17 years ago2002-10-11 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 12:54:41 +0000 (12:54 +0000)]
2002-10-11  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
Fix typos.

17 years ago.
roland [Fri, 11 Oct 2002 12:19:55 +0000 (12:19 +0000)]
.

17 years ago2002-10-11 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 12:19:49 +0000 (12:19 +0000)]
2002-10-11  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
* sysdeps/sh/dl-lookupcfg.h: File removed.
* sysdeps/i386/dl-lookupcfg.h: File removed.

17 years ago.
roland [Fri, 11 Oct 2002 12:03:29 +0000 (12:03 +0000)]
.

17 years ago2002-10-11 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 12:03:16 +0000 (12:03 +0000)]
2002-10-11  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
missing labels and ; from last change.

17 years ago.
roland [Fri, 11 Oct 2002 10:55:33 +0000 (10:55 +0000)]
.

17 years ago2002-10-11 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:55:27 +0000 (10:55 +0000)]
2002-10-11  Roland McGrath  <roland@redhat.com>

* stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
number literals, so they are doubles instead of ints.

17 years ago.
roland [Fri, 11 Oct 2002 10:53:34 +0000 (10:53 +0000)]
.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:53:17 +0000 (10:53 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
Under [__PIC__], call the function via the pointer fetched for
comparison rather than a call by name that uses the PLT.
(__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
(__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
(__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
(__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
(__libc_key_create, __libc_getspecific, __libc_setspecific)
(__libc_atfork): Use it.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:53:15 +0000 (10:53 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* pthread.c [SHARED] (__libc_dl_error_tsd): New function.
(pthread_initialize) [SHARED]: Set _dl_error_catch_tsd to that.
* Versions (libc: GLIBC_PRIVATE): Add __libc_dl_error_tsd.
(ld: GLIBC_PRIVATE): Set removed.

17 years ago.
roland [Fri, 11 Oct 2002 10:52:20 +0000 (10:52 +0000)]
.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:52:12 +0000 (10:52 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-sysdep.h: New file.
* sysdeps/mach/hurd/dl-sysdep.h: New file.
* sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
* include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
[RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
access it directly.
* elf/dl-minimal.c (__errno_location): Removed.
* sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
Use GOTOFF access for errno.
* sysdeps/unix/sysv/linux/i386/sysdep.h
[RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:52:10 +0000 (10:52 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
changed from [USE_TLS && HAVE___THREAD].

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:52:09 +0000 (10:52 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* include/link.h (struct link_map): Remove member l_tls_tp_initialized.
* elf/rtld.c (_dl_start_final, dl_main): Don't use it.
(_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
* sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
_dl_error_catch_tsd.
* elf/rtld.c (startup_error_tsd): New function.
(dl_main): Point _dl_error_catch_tsd at that.
* elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
use new function pointer instead.
* elf/dl-tsd.c: New file.
* elf/Makefile (routines): Add it.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:52:06 +0000 (10:52 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
_dl_error_catch_tsd.
* elf/rtld.c (startup_error_tsd): New function.
(dl_main): Point _dl_error_catch_tsd at that.
* elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
use new function pointer instead.
* elf/dl-tsd.c: New file.
* elf/Makefile (routines): Add it.
2002-10-05  Roland McGrath  <roland@redhat.com>

* elf/dl-fxstat64.c: File removed.
* elf/dl-xstat64.c: File removed.
* elf/Makefile (rtld-routines): Remove them.
* sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
Instead, use strong_alias instead of versioned_symbol in the
!SHLIB_COMPAT case.
* sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
* sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
* include/shlib-compat.h
(SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
[! NOT_IN_libc] (IS_IN_libc): Define it.
* cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
* elf/Makefile (CPPFLAGS-.os): Likewise.
2002-09-30  Roland McGrath  <roland@redhat.com>

* elf/rtld-Rules: New file.
* elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
$(objpfx)rtld-libc.a): New targets.
(generated): Add them.
(reloc-link): Remove -o $@ from the variable.
($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
(distribute): Add rtld-Rules.
(CPPFLAGS-.os): Define this instead of CFLAGS-.os.
* Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
(common-mostlyclean, common-clean): Clean up rtld-* files.
* sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:52:03 +0000 (10:52 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
Use PC-relative access for errno.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h
[RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
* include/tls.h: New file.
(USE___THREAD): New macro.
Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
libc or libpthread.
* sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
changed from [USE_TLS && HAVE___THREAD].
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/i386/sysdep.S: Likewise.
* sysdeps/unix/x86_64/sysdep.S: Likewise.
* include/errno.h: Likewise.
* include/netdb.h: Likewise.
* include/resolv.h: Likewise.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:52:01 +0000 (10:52 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* include/tls.h: New file.
(USE___THREAD): New macro.
Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
libc or libpthread.
* sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
changed from [USE_TLS && HAVE___THREAD].
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/i386/sysdep.S: Likewise.
* sysdeps/unix/x86_64/sysdep.S: Likewise.
* include/errno.h: Likewise.
* include/netdb.h: Likewise.
* include/resolv.h: Likewise.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:59 +0000 (10:51 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
(INLINE_SYSCALL): Use that.
* sysdeps/generic/dl-sysdep.h: New file.
* sysdeps/mach/hurd/dl-sysdep.h: New file.
* sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
* include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
[RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
access it directly.
* elf/dl-minimal.c (__errno_location): Removed.
* sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
Use GOTOFF access for errno.
* sysdeps/unix/sysv/linux/i386/sysdep.h
[RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
* include/tls.h: New file.
(USE___THREAD): New macro.
Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
libc or libpthread.
* sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
changed from [USE_TLS && HAVE___THREAD].
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/i386/sysdep.S: Likewise.
* sysdeps/unix/x86_64/sysdep.S: Likewise.
* include/errno.h: Likewise.
* include/netdb.h: Likewise.
* include/resolv.h: Likewise.

17 years ago2002-10-05 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:57 +0000 (10:51 +0000)]
2002-10-05  Roland McGrath  <roland@redhat.com>

* sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
Return the status instead of calling exit.

17 years ago2002-10-05 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:55 +0000 (10:51 +0000)]
2002-10-05  Roland McGrath  <roland@redhat.com>

* include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
* Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
Use that file's contents instead of literal echo's for the prologue.
* include/features.h: Include <gnu/stubs.h> unconditionally.
* include/gnu/stubs.h: New file.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:53 +0000 (10:51 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
_dl_error_catch_tsd.
* elf/rtld.c (startup_error_tsd): New function.
(dl_main): Point _dl_error_catch_tsd at that.
* elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
use new function pointer instead.
* elf/dl-tsd.c: New file.
* elf/Makefile (routines): Add it.
2002-10-07  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-sysdep.h: New file.
* sysdeps/mach/hurd/dl-sysdep.h: New file.
* sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
* include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
[RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
access it directly.
* elf/dl-minimal.c (__errno_location): Removed.
* sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
Use GOTOFF access for errno.
* sysdeps/unix/sysv/linux/i386/sysdep.h
[RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:50 +0000 (10:51 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* include/link.h (struct link_map): Remove member l_tls_tp_initialized.
* elf/rtld.c (_dl_start_final, dl_main): Don't use it.
(_dl_start): Conditionalize PT_TLS check on [USE___THREAD].

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:47 +0000 (10:51 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
* sysdeps/x86_64/dl-machine.h
(elf_machine_type_class, elf_machine_rela): Likewise.
* sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
Likewise.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:43 +0000 (10:51 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-sysdep.h: New file.
* sysdeps/mach/hurd/dl-sysdep.h: New file.
* sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
* include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
[RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
access it directly.
* elf/dl-minimal.c (__errno_location): Removed.
* sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
Use GOTOFF access for errno.
* sysdeps/unix/sysv/linux/i386/sysdep.h
[RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
* include/tls.h: New file.
(USE___THREAD): New macro.
Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
libc or libpthread.
* sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
changed from [USE_TLS && HAVE___THREAD].
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/i386/sysdep.S: Likewise.
* sysdeps/unix/x86_64/sysdep.S: Likewise.
* include/errno.h: Likewise.
* include/netdb.h: Likewise.
* include/resolv.h: Likewise.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:40 +0000 (10:51 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
take _dl_load_lock around calling __writev.

17 years ago2002-10-05 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:37 +0000 (10:51 +0000)]
2002-10-05  Roland McGrath  <roland@redhat.com>

* Makeconfig (CFLAGS): Prepend -std=gnu99.
* Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
Remove superfluous rm command, whose @ plus make bugs hid
all these commands from the make output.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:12 +0000 (10:51 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/errno.c: New file.
* csu/Makefile (aux): New variable, list errno.
* sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
* sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
* sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
* sysdeps/unix/alpha/sysdep.S: Likewise.
* sysdeps/generic/start.c: Likewise.
* sysdeps/unix/start.c: Likewise.
* sysdeps/unix/arm/start.c: Likewise.
* sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
* sysdeps/unix/sparc/start.c: Likewise.
* sysdeps/unix/sysv/irix4/start.c: Likewise.
* sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:05 +0000 (10:51 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
_dl_error_catch_tsd.
* elf/rtld.c (startup_error_tsd): New function.
(dl_main): Point _dl_error_catch_tsd at that.
* elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
use new function pointer instead.
* elf/dl-tsd.c: New file.
* elf/Makefile (routines): Add it.

17 years ago2002-09-30 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:51:01 +0000 (10:51 +0000)]
2002-09-30  Roland McGrath  <roland@redhat.com>

* elf/rtld-Rules: New file.
* elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
$(objpfx)rtld-libc.a): New targets.
(generated): Add them.
(reloc-link): Remove -o $@ from the variable.
($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
(distribute): Add rtld-Rules.
(CPPFLAGS-.os): Define this instead of CFLAGS-.os.
* Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
(common-mostlyclean, common-clean): Clean up rtld-* files.
* sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.

17 years ago2002-10-05 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:50:58 +0000 (10:50 +0000)]
2002-10-05  Roland McGrath  <roland@redhat.com>

* elf/dl-fxstat64.c: File removed.
* elf/dl-xstat64.c: File removed.
* elf/Makefile (rtld-routines): Remove them.
* sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
Instead, use strong_alias instead of versioned_symbol in the
!SHLIB_COMPAT case.
* sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
* sysdeps/unix/sysv/linux/lxstat64.c: Likewise.

17 years ago2002-10-09 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:50:56 +0000 (10:50 +0000)]
2002-10-09  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
instead of ___tls_get_addr.
(___tls_get_addr_internal): Add attribute_hidden to decl.

17 years ago2002-10-07 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:50:55 +0000 (10:50 +0000)]
2002-10-07  Roland McGrath  <roland@redhat.com>

* manual/search.texi (Tree Search Function, Hash Search Function):
Mention search.h clearly.

17 years ago2002-10-05 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:50:52 +0000 (10:50 +0000)]
2002-10-05  Roland McGrath  <roland@redhat.com>

* include/shlib-compat.h
(SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
[! NOT_IN_libc] (IS_IN_libc): Define it.
* cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
* elf/Makefile (CPPFLAGS-.os): Likewise.

17 years ago2002-10-05 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 10:50:51 +0000 (10:50 +0000)]
2002-10-05  Roland McGrath  <roland@redhat.com>

* Makeconfig (CFLAGS): Prepend -std=gnu99.
* Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
Remove superfluous rm command, whose @ plus make bugs hid
all these commands from the make output.
2002-09-30  Roland McGrath  <roland@redhat.com>

* elf/rtld-Rules: New file.
* elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
$(objpfx)rtld-libc.a): New targets.
(generated): Add them.
(reloc-link): Remove -o $@ from the variable.
($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
(distribute): Add rtld-Rules.
(CPPFLAGS-.os): Define this instead of CFLAGS-.os.
* Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
(common-mostlyclean, common-clean): Clean up rtld-* files.
* sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.

17 years agoUpdate.
drepper [Fri, 11 Oct 2002 10:01:36 +0000 (10:01 +0000)]
Update.

17 years ago.
roland [Fri, 11 Oct 2002 09:18:04 +0000 (09:18 +0000)]
.

17 years ago2002-10-11 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 09:17:53 +0000 (09:17 +0000)]
2002-10-11  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.

17 years ago2002-10-11 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 09:17:51 +0000 (09:17 +0000)]
2002-10-11  Roland McGrath  <roland@redhat.com>

* elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.

17 years ago2002-10-11 Roland McGrath <roland@redhat.com>
roland [Fri, 11 Oct 2002 09:17:49 +0000 (09:17 +0000)]
2002-10-11  Roland McGrath  <roland@redhat.com>

* elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
proper set of no-op insn prefixes.

17 years agoDon't try calling __pthread_kill_other_threads_np.
drepper [Fri, 11 Oct 2002 07:59:08 +0000 (07:59 +0000)]
Don't try calling __pthread_kill_other_threads_np.

17 years agoUpdate.
drepper [Fri, 11 Oct 2002 07:58:32 +0000 (07:58 +0000)]
Update.

17 years agoexecve implementation for Linux w/ linuxthreads.
drepper [Fri, 11 Oct 2002 07:57:13 +0000 (07:57 +0000)]
execve implementation for Linux w/ linuxthreads.

17 years agoUpdate.
drepper [Fri, 11 Oct 2002 07:38:19 +0000 (07:38 +0000)]
Update.