kopensolaris-gnu/glibc.git
13 years agoInclude stdlib.h, list.h, sysdep.h and kernel-features.h.
drepper [Sat, 7 Jul 2007 01:53:19 +0000 (01:53 +0000)]
Include stdlib.h, list.h, sysdep.h and kernel-features.h.

13 years ago.
roland [Thu, 5 Jul 2007 22:03:57 +0000 (22:03 +0000)]
.

13 years ago2007-07-05 Mike Frysinger <vapier@gentoo.org>
roland [Thu, 5 Jul 2007 22:03:47 +0000 (22:03 +0000)]
2007-07-05  Mike Frysinger  <vapier@gentoo.org>

* Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
running awk script.

13 years agowhitespace
roland [Wed, 4 Jul 2007 22:08:03 +0000 (22:08 +0000)]
whitespace

13 years agoFix typo.
drepper [Wed, 4 Jul 2007 21:17:34 +0000 (21:17 +0000)]
Fix typo.

13 years ago.
drepper [Wed, 4 Jul 2007 18:06:39 +0000 (18:06 +0000)]
.

13 years ago(__libc_memalign): Likewise. Handle malloc (0).
drepper [Wed, 4 Jul 2007 18:06:29 +0000 (18:06 +0000)]
(__libc_memalign): Likewise.  Handle malloc (0).
Return NULL if mmap failed instead of asserting it does not.
(calloc): Check for integer overflow.

(__strtoul_internal): Fix parsing of numbers bigger than LONG_MAX / 10.

13 years ago(_dl_important_hwcaps): Add integer overflow check.
drepper [Wed, 4 Jul 2007 18:06:06 +0000 (18:06 +0000)]
(_dl_important_hwcaps): Add integer overflow check.

13 years ago.
drepper [Tue, 3 Jul 2007 14:49:53 +0000 (14:49 +0000)]
.

13 years agoInclude errno.h.
drepper [Tue, 3 Jul 2007 14:49:41 +0000 (14:49 +0000)]
Include errno.h.
(init): Preserve errno.

13 years ago.
drepper [Mon, 2 Jul 2007 18:34:39 +0000 (18:34 +0000)]
.

13 years ago(PF_UNIX): Update comment.
drepper [Mon, 2 Jul 2007 18:34:25 +0000 (18:34 +0000)]
(PF_UNIX): Update comment.

13 years ago.
drepper [Sat, 30 Jun 2007 17:07:48 +0000 (17:07 +0000)]
.

13 years agoAdd PF_IUCV and AF_IUCV.
drepper [Sat, 30 Jun 2007 17:07:31 +0000 (17:07 +0000)]
Add PF_IUCV and AF_IUCV.

Add PF_RXRPC and AF_RXRPC.

13 years ago.
drepper [Sat, 30 Jun 2007 17:03:55 +0000 (17:03 +0000)]
.

13 years agos390 hwcap support.
drepper [Sat, 30 Jun 2007 17:03:49 +0000 (17:03 +0000)]
s390 hwcap support.

13 years ago.
drepper [Sat, 30 Jun 2007 17:01:43 +0000 (17:01 +0000)]
.

13 years ago(process_elf_file): Find .note.ABI-tag notes even in PT_NOTE segments
drepper [Sat, 30 Jun 2007 17:01:28 +0000 (17:01 +0000)]
(process_elf_file): Find .note.ABI-tag notes even in PT_NOTE segments
with multiple notes.

13 years ago(open_verify): Find .note.ABI-tag notes even in PT_NOTE segments with
drepper [Sat, 30 Jun 2007 17:01:07 +0000 (17:01 +0000)]
(open_verify): Find .note.ABI-tag notes even in PT_NOTE segments with
multiple notes.

13 years ago.
roland [Tue, 26 Jun 2007 06:47:56 +0000 (06:47 +0000)]
.

13 years ago2007-05-16 Roland McGrath <roland@redhat.com>
roland [Tue, 26 Jun 2007 06:47:34 +0000 (06:47 +0000)]
2007-05-16  Roland McGrath  <roland@redhat.com>

* td_thr_get_info.c: Fake the results for TH->th_unique == 0.
* td_thr_validate.c: Likewise.
* td_thr_setgregs.c: Likewise.
* td_thr_setfpregs.c: Likewise.
* td_thr_getgregs.c: Likewise.
* td_thr_getfpregs.c: Likewise.
* td_thr_tlsbase.c: Likewise.

13 years ago2007-05-16 Roland McGrath <roland@redhat.com>
roland [Tue, 26 Jun 2007 06:47:32 +0000 (06:47 +0000)]
2007-05-16  Roland McGrath  <roland@redhat.com>

* td_ta_map_lwp2thr.c (__td_ta_lookup_th_unique): New function, broken
out of ...
(td_ta_map_lwp2thr): ... here, call it.  But don't before __stack_user
is initialized, then fake a handle with th_unique=0.
* thread_dbP.h: Declare it.

13 years ago2007-05-16 Roland McGrath <roland@redhat.com>
roland [Tue, 26 Jun 2007 06:47:29 +0000 (06:47 +0000)]
2007-05-16  Roland McGrath  <roland@redhat.com>

* structs.def: Add DB_VARIABLE (__nptl_initial_report_events).
* db_info.c: Add necessary declaration.
* td_thr_event_enable.c: Set __nptl_initial_report_events too.

13 years ago2007-05-16 Roland McGrath <roland@redhat.com>
roland [Tue, 26 Jun 2007 06:47:27 +0000 (06:47 +0000)]
2007-05-16  Roland McGrath  <roland@redhat.com>

* td_ta_thr_iter.c (iterate_thread_list): Make FAKE_EMPTY bool.
Use th_unique=0 in fake descriptor before initialization.

13 years ago2007-05-16 Roland McGrath <roland@redhat.com>
roland [Tue, 26 Jun 2007 06:47:07 +0000 (06:47 +0000)]
2007-05-16  Roland McGrath  <roland@redhat.com>

* init.c (__nptl_initial_report_events): New variable.
(__pthread_initialize_minimal_internal): Initialize pd->report_events
to that.

13 years ago(pthread_getattr_np): Clear cpuset and cpusetsize if
drepper [Fri, 22 Jun 2007 22:13:52 +0000 (22:13 +0000)]
(pthread_getattr_np): Clear cpuset and cpusetsize if
pthread_getaffinity_np failed with ENOSYS.

13 years ago.
drepper [Fri, 22 Jun 2007 22:13:38 +0000 (22:13 +0000)]
.

13 years ago.
drepper [Fri, 22 Jun 2007 17:01:29 +0000 (17:01 +0000)]
.

13 years ago(__nis_domain_of): Make the code a bit more ISO C compliant.
drepper [Fri, 22 Jun 2007 17:00:49 +0000 (17:00 +0000)]
(__nis_domain_of): Make the code a bit more ISO C compliant.

13 years ago.
drepper [Wed, 20 Jun 2007 03:19:13 +0000 (03:19 +0000)]
.

13 years agoRemove mrlock implementation.
drepper [Wed, 20 Jun 2007 03:18:59 +0000 (03:18 +0000)]
Remove mrlock implementation.

13 years ago.
drepper [Wed, 20 Jun 2007 03:18:48 +0000 (03:18 +0000)]
.

13 years ago (_dl_new_object): Don't use __rtld_mrlock_initialize.
drepper [Wed, 20 Jun 2007 03:18:40 +0000 (03:18 +0000)]
 (_dl_new_object): Don't use __rtld_mrlock_initialize.

13 years ago(add_dependency): Remove flags argument.
drepper [Wed, 20 Jun 2007 03:18:30 +0000 (03:18 +0000)]
(add_dependency): Remove flags argument.
Remove DL_LOOKUP_SCOPE_LOCK handling.
(_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
handling.

13 years ago(_dl_scope_free_list): New variable.
drepper [Wed, 20 Jun 2007 03:18:16 +0000 (03:18 +0000)]
(_dl_scope_free_list): New variable.

13 years ago(_dl_scope_free): New function.
drepper [Wed, 20 Jun 2007 03:18:04 +0000 (03:18 +0000)]
(_dl_scope_free): New function.
(dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.

13 years ago(_dl_close_worker): Don't use
drepper [Wed, 20 Jun 2007 03:17:42 +0000 (03:17 +0000)]
(_dl_close_worker): Don't use
__rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
scopes were queued or if l_scope_mem has been abandoned.

(free_mem): Free _dl_scope_free_list.

13 years ago(do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
drepper [Wed, 20 Jun 2007 03:17:23 +0000 (03:17 +0000)]
(do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
THREAD_GSCOPE_RESET_FLAG around it.

13 years ago(_dl_fixup): Don't use __rtld_mrlock_*lock.
drepper [Wed, 20 Jun 2007 03:16:38 +0000 (03:16 +0000)]
(_dl_fixup): Don't use __rtld_mrlock_*lock.
Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
(_dl_profile_fixup): Likewise.

13 years agoDon't include rtld-lowlevel.h.
drepper [Wed, 20 Jun 2007 03:16:24 +0000 (03:16 +0000)]
Don't include rtld-lowlevel.h.
(_dl_scope_free_list): New field (variable) in _rtld_global.
(DL_LOOKUP_SCOPE_LOCK): Remove.
(_dl_scope_free): New prototype.

13 years agoDon't include rtld-lowlevel.h.
drepper [Wed, 20 Jun 2007 03:16:06 +0000 (03:16 +0000)]
Don't include rtld-lowlevel.h.
(struct link_map): Remove l_scope_lock.

13 years ago.
drepper [Tue, 19 Jun 2007 22:59:48 +0000 (22:59 +0000)]
.

13 years ago(_dl_addr_inside_object): New prototype.
drepper [Tue, 19 Jun 2007 22:59:32 +0000 (22:59 +0000)]
(_dl_addr_inside_object): New prototype.

(rtld_global): Reorder some elements to fill in holes
(rtld_global_ro): Likewise.

13 years ago(dlinfo_doit): If not l_contiguous, call _dl_addr_inside_object.
drepper [Tue, 19 Jun 2007 22:56:18 +0000 (22:56 +0000)]
(dlinfo_doit): If not l_contiguous, call _dl_addr_inside_object.

13 years ago(struct link_map): Add l_contiguous field.
drepper [Tue, 19 Jun 2007 22:55:55 +0000 (22:55 +0000)]
(struct link_map): Add l_contiguous field.

13 years ago(_dl_map_object_from_fd): Set l_contiguous if no holes are present or
drepper [Tue, 19 Jun 2007 22:55:42 +0000 (22:55 +0000)]
(_dl_map_object_from_fd): Set l_contiguous if no holes are present or
are PROT_NONE protected.

13 years ago(dl_open_worker): If not l_contiguous, call _dl_addr_inside_object.
drepper [Tue, 19 Jun 2007 22:54:55 +0000 (22:54 +0000)]
(dl_open_worker): If not l_contiguous, call _dl_addr_inside_object.
(_dl_addr_inside_object): New function if IS_IN_rtld.

13 years ago(__dl_iterate_phdr): If not l_contiguous, call _dl_addr_inside_object.
drepper [Tue, 19 Jun 2007 22:54:28 +0000 (22:54 +0000)]
(__dl_iterate_phdr): If not l_contiguous, call _dl_addr_inside_object.

13 years ago(_dl_addr): Skip PT_LOAD checking if l_contiguous.
drepper [Tue, 19 Jun 2007 22:54:07 +0000 (22:54 +0000)]
(_dl_addr): Skip PT_LOAD checking if l_contiguous.
Move PT_LOAD checking to...
(_dl_addr_inside_object): ... here, new function.

13 years ago(do_sym): If not l_contiguous, call _dl_addr_inside_object.
drepper [Tue, 19 Jun 2007 22:53:50 +0000 (22:53 +0000)]
(do_sym): If not l_contiguous, call _dl_addr_inside_object.

13 years ago.
drepper [Mon, 18 Jun 2007 22:22:57 +0000 (22:22 +0000)]
.

13 years agoUse PTHREAD_MUTEX_TYPE.
drepper [Mon, 18 Jun 2007 22:22:44 +0000 (22:22 +0000)]
Use PTHREAD_MUTEX_TYPE.

13 years agoDefine PTHREAD_MUTEX_TYPE.
drepper [Mon, 18 Jun 2007 22:22:31 +0000 (22:22 +0000)]
Define PTHREAD_MUTEX_TYPE.

13 years ago.
drepper [Mon, 18 Jun 2007 22:02:04 +0000 (22:02 +0000)]
.

13 years ago(send_dg): Remove socket_pf. Use ipv6_unavail member in __res_state,
drepper [Mon, 18 Jun 2007 22:01:57 +0000 (22:01 +0000)]
(send_dg): Remove socket_pf.  Use ipv6_unavail member in __res_state,
only convaddr4to6 if nssocks[ns] is a PF_INET6 socket.

13 years ago(__res_state): Add ipv6_unavail member. Make unused member a bitmap.
drepper [Mon, 18 Jun 2007 22:01:45 +0000 (22:01 +0000)]
(__res_state): Add ipv6_unavail member.  Make unused member a bitmap.

13 years ago(__res_vinit): Reset ipv6_unavail if IPv6 servers are configured.
drepper [Mon, 18 Jun 2007 22:01:34 +0000 (22:01 +0000)]
(__res_vinit): Reset ipv6_unavail if IPv6 servers are configured.

13 years ago.
drepper [Mon, 18 Jun 2007 20:50:49 +0000 (20:50 +0000)]
.

13 years ago(dl_main): Don't call init_tls more than once.
drepper [Mon, 18 Jun 2007 20:50:34 +0000 (20:50 +0000)]
(dl_main): Don't call init_tls more than once.

13 years ago.
drepper [Sun, 17 Jun 2007 18:03:08 +0000 (18:03 +0000)]
.

13 years agoTell gcc about the nonstandard sections.
drepper [Sun, 17 Jun 2007 18:02:40 +0000 (18:02 +0000)]
Tell gcc about the nonstandard sections.

13 years ago.
drepper [Sun, 17 Jun 2007 18:02:08 +0000 (18:02 +0000)]
.

13 years agoTell gcc about the nonstandard sections.
drepper [Sun, 17 Jun 2007 18:02:01 +0000 (18:02 +0000)]
Tell gcc about the nonstandard sections.

13 years ago [BZ #4125]
aj [Sun, 17 Jun 2007 17:29:46 +0000 (17:29 +0000)]
[BZ #4125]
* sysdeps/unix/sysv/linux/sys/ptrace.h
(PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
Define.
* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
* sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.

13 years ago.
drepper [Sun, 17 Jun 2007 16:43:57 +0000 (16:43 +0000)]
.

13 years ago(allocate_stack): Make code compile if __ASSUME_PRIVATE_FUTEX is set.
drepper [Sun, 17 Jun 2007 16:43:48 +0000 (16:43 +0000)]
(allocate_stack): Make code compile if __ASSUME_PRIVATE_FUTEX is set.

13 years ago.
drepper [Sun, 17 Jun 2007 16:42:55 +0000 (16:42 +0000)]
.

13 years agoDon't use non SH-3/4 instruction.
drepper [Sun, 17 Jun 2007 16:42:40 +0000 (16:42 +0000)]
Don't use non SH-3/4 instruction.

13 years agoAdd private futex support. Indicate that there are waiters. Remove
drepper [Sun, 17 Jun 2007 16:41:49 +0000 (16:41 +0000)]
Add private futex support.  Indicate that there are waiters.  Remove
unnecessary extra cancellation test.

13 years agoAdd private futex support. Indicate that there are waiters. Remove
drepper [Sun, 17 Jun 2007 16:41:36 +0000 (16:41 +0000)]
Add private futex support.  Indicate that there are waiters.  Remove
unnecessary extra cancellation test.
Removed left-over duplication of __sem_wait_cleanup.

13 years agoAdd private futex support. Wake only when there are waiters.
drepper [Sun, 17 Jun 2007 16:41:08 +0000 (16:41 +0000)]
Add private futex support.  Wake only when there are waiters.

13 years agoUse private futexes if they are available.
drepper [Sun, 17 Jun 2007 16:40:41 +0000 (16:40 +0000)]
Use private futexes if they are available.

13 years agoUse private futexes if they are available.
drepper [Sun, 17 Jun 2007 16:40:25 +0000 (16:40 +0000)]
Use private futexes if they are available.

13 years agoUse private futexes if they are available. Remove clear_once_control.
drepper [Sun, 17 Jun 2007 16:40:14 +0000 (16:40 +0000)]
Use private futexes if they are available.  Remove clear_once_control.

13 years agoUse COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
drepper [Sun, 17 Jun 2007 16:40:06 +0000 (16:40 +0000)]
Use COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.

13 years agoUse COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.
drepper [Sun, 17 Jun 2007 16:39:57 +0000 (16:39 +0000)]
Use COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS.

13 years agoUse private field in futex command setup.
drepper [Sun, 17 Jun 2007 16:39:45 +0000 (16:39 +0000)]
Use private field in futex command setup.

13 years agoDefine FUTEX_PRIVATE_FLAG. Add additional parameter to lll_futex_wait,
drepper [Sun, 17 Jun 2007 16:39:30 +0000 (16:39 +0000)]
Define FUTEX_PRIVATE_FLAG.  Add additional parameter to lll_futex_wait,
lll_futex_timed_wait and lll_futex_wake.  Change lll_futex_wait
to call lll_futex_timed_wait.  Add lll_private_futex_wait,
lll_private_futex_timed_wait and lll_private_futex_wake.
(lll_robust_mutex_unlock): Fix typo.

13 years agoAdjust so that change in libc-lowlevellock.S allow using private futexes.
drepper [Sun, 17 Jun 2007 16:39:12 +0000 (16:39 +0000)]
Adjust so that change in libc-lowlevellock.S allow using private futexes.

13 years agoUse private futexes if they are available.
drepper [Sun, 17 Jun 2007 16:38:57 +0000 (16:38 +0000)]
Use private futexes if they are available.

13 years agoInclude endian.h.
drepper [Sun, 17 Jun 2007 16:38:46 +0000 (16:38 +0000)]
Include endian.h.
Split __flags into __flags, __shared, __pad1 and __pad2.

13 years agoAdd PRIVATE_FUTEX.
drepper [Sun, 17 Jun 2007 16:38:27 +0000 (16:38 +0000)]
Add PRIVATE_FUTEX.

13 years ago.
drepper [Sat, 16 Jun 2007 16:55:38 +0000 (16:55 +0000)]
.

13 years ago(make_request): When determining whether there are IPv4/IPv6
drepper [Sat, 16 Jun 2007 16:54:40 +0000 (16:54 +0000)]
(make_request): When determining whether there are IPv4/IPv6
addresses, ignore loopback addresses.

13 years ago * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
jakub [Thu, 14 Jun 2007 19:21:33 +0000 (19:21 +0000)]
* soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
* soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
as the return type.  Change type of "r" variable to CMPtype.
* soft-fp/eqsf2.c (__eqsf2): Likewise.
* soft-fp/eqtf2.c (__eqtf2): Likewise.
* soft-fp/gedf2.c (__gedf2): Likewise.
* soft-fp/gesf2.c (__gesf2): Likewise.
* soft-fp/getf2.c (__getf2): Likewise.
* soft-fp/ledf2.c (__ledf2): Likewise.
* soft-fp/lesf2.c (__lesf2): Likewise.
* soft-fp/letf2.c (__letf2): Likewise.
* soft-fp/unorddf2 (__unorddf2): Likewise.
* soft-fp/unordsf2 (__unordsf2): Likewise.
* soft-fp/unordtf2 (__unordtf2): Likewise.

13 years ago.
drepper [Sat, 9 Jun 2007 19:45:57 +0000 (19:45 +0000)]
.

13 years ago(do_lookup_x): Read r_nlist before r_list and make sure gcc doesn't
drepper [Sat, 9 Jun 2007 19:45:46 +0000 (19:45 +0000)]
(do_lookup_x): Read r_nlist before r_list and make sure gcc doesn't
mess around with this.

13 years ago.
drepper [Sat, 9 Jun 2007 02:19:12 +0000 (02:19 +0000)]
.

13 years ago(_dl_lookup_symbol_x): Remove use of r_nlist.
drepper [Sat, 9 Jun 2007 02:18:19 +0000 (02:18 +0000)]
(_dl_lookup_symbol_x): Remove use of r_nlist.

13 years ago.
drepper [Sat, 9 Jun 2007 02:13:06 +0000 (02:13 +0000)]
.

13 years ago(_dl_close_worker): Remove all to be removed
drepper [Sat, 9 Jun 2007 02:12:53 +0000 (02:12 +0000)]
(_dl_close_worker): Remove all to be removed
libraries from the global scope at once and call THREAD_GSCOPE_WAIT
at most once per _dl_close_worker.

13 years ago.
drepper [Fri, 8 Jun 2007 19:25:07 +0000 (19:25 +0000)]
.

13 years agoMake second parameter of __sched_cpucount as const.
drepper [Fri, 8 Jun 2007 19:24:46 +0000 (19:24 +0000)]
Make second parameter of __sched_cpucount as const.

13 years ago.
drepper [Fri, 8 Jun 2007 19:23:19 +0000 (19:23 +0000)]
.

13 years agox86-64-specific version of sched_cpucount.
drepper [Fri, 8 Jun 2007 19:23:13 +0000 (19:23 +0000)]
x86-64-specific version of sched_cpucount.

13 years ago(__sched_cpucount): Minor optimizations.
drepper [Fri, 8 Jun 2007 19:22:28 +0000 (19:22 +0000)]
(__sched_cpucount): Minor optimizations.

13 years ago(__sched_cpucount): Let specialization decide whether it wants to
drepper [Fri, 8 Jun 2007 19:08:02 +0000 (19:08 +0000)]
(__sched_cpucount): Let specialization decide whether it wants to
short-cut l==0.

13 years ago(__sched_cpucount): Allow using special instruction for counting bits.
drepper [Fri, 8 Jun 2007 18:29:24 +0000 (18:29 +0000)]
(__sched_cpucount): Allow using special instruction for counting bits.

13 years ago.
jakub [Fri, 8 Jun 2007 07:36:00 +0000 (07:36 +0000)]
.

13 years ago.
drepper [Fri, 8 Jun 2007 05:28:54 +0000 (05:28 +0000)]
.