Ulrich Drepper
06120d793a
Update.
...
2003-06-10 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
from getifaddr calls.
2003-06-10 07:45:18 +00:00
Ulrich Drepper
54c924656e
Update.
...
2003-06-09 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_SETRESGID_SYSCALL): Define.
* sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
instead of __ASSUME_SETRESUID_SYSCALL.
(setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
defined.
* sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
inline syscall if __NR_setresuid32 is defined.
* sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
__ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
* sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
* sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
code handling non-existant setresgid32 syscall with
#if __ASSUME_SETRESGID_SYSCALL == 0.
2003-06-09 Andreas Schwab <schwab@suse.de>
* sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
$(objpfx)rpc-proto.d.
(rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
$(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2003-06-10 02:32:35 +00:00
Ulrich Drepper
5b318f8556
Update.
...
(__pthread_cond_signal): Use correct futex pointer in
__lll_mutex_lock_wait call.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
2003-06-09 22:49:50 +00:00
Ulrich Drepper
b17203463d
Update.
...
2003-06-09 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
(__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
2003-06-09 07:39:03 +00:00
Ulrich Drepper
eae59a5681
Update.
...
* sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
defined drop compatibility code.
* sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
defined drop compatibility code.
* sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
setresuid32 syscall directly if possible.
* sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
setresgid32 syscall directly if possible.
2003-06-08 22:37:53 +00:00
Ulrich Drepper
f0da6a7d5a
Update.
...
* sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
compliant. Don't change sgid.
* sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
compliant. Don't change suid.
2003-06-08 20:24:04 +00:00
Ulrich Drepper
ecf7955d55
Update.
...
* sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
cancelable.
* sysdeps/unix/sysv/linux/s390/sem_timedwait.c (__sem_timedwait):
Likewise.
2003-06-08 16:30:17 +00:00
Ulrich Drepper
3e36c37d35
Update.
...
2003-06-08 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Remove
hand-written CFI generation code. Since ENTRY/END also initiated
CFI frames this caused two CFI sets to be generated.
2003-06-08 08:16:08 +00:00
Ulrich Drepper
bcd5f35667
Update.
...
2003-06-08 Ulrich Drepper <drepper@redhat.com>
* config.h.in: Add have-forced-unwind.
* configure.in: Add AC_SUBST(libc_cv_forced_unwind).
* sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
* sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
* sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
entry sequence and explicit relocs. Add unwind info for sigreturn
and rt_sigreturn.
* configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
* sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
Annotate some parameters.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
* include/libc-symbols.h (symbol_set_declare): Use arrays
of unspecified size.
2003-06-08 07:09:07 +00:00
Ulrich Drepper
7726edc273
Update.
...
2003-06-07 Ulrich Drepper <drepper@redhat.com>
* cleanup_routine.c: New file.
* Versions (libpthread) [GLIBC_2.3.3]: Add __pthread_cleanup_routine.
* sysdeps/pthread/pthread.h: Add support for fully exception-based
cleanup handling.
* Makefile (libpthread-routines): Add cleanup_routine.
Add more CFLAGS variables to compile with exceptions. Add comments
why which file needs unwind tables.
(tests) [have-forced-unwind==yes]: Add tst-cancelx* and tst-cleanupx*
tests.
* tst-cancelx1.c: New file.
* tst-cancelx2.c: New file.
* tst-cancelx3.c: New file.
* tst-cancelx4.c: New file.
* tst-cancelx5.c: New file.
* tst-cancelx6.c: New file.
* tst-cancelx7.c: New file.
* tst-cancelx8.c: New file.
* tst-cancelx9.c: New file.
* tst-cancelx10.c: New file.
* tst-cancelx11.c: New file.
* tst-cancelx12.c: New file.
* tst-cancelx13.c: New file.
* tst-cancelx14.c: New file.
* tst-cancelx15.c: New file.
* tst-cleanupx0.c: New file.
* tst-cleanupx0.expect: New file.
* tst-cleanupx1.c: New file.
* tst-cleanupx2.c: New file.
* tst-cleanupx3.c: New file.
* tst-cleanup0.c: Make standard compliant.
* tst-cleanup1.c: Likewise.
* sysdeps/unix/sysv/linux/sem_timedwait.c: Add cancellation support.
* sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
* sysdeps/i386/tcb-offsets.sym: Add RESULT, CANCELHANDLING, and
CLEANUP_JMP_BUF.
* sysdeps/x86_64/tcb-offsets.sym: Likewise.
* tst-cancel12.c: New file.
* tst-cancel13.c: New file.
* tst-cancel14.c: New file.
* tst-cancel15.c: New file.
* Makefile (tests): Add tst-cancel12, tst-cancel13, tst-cancel14,
and tst-cancel15.
* tst-cancel1.c: Add some comments.
* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Compute relative
timeout correctly.
2003-06-08 05:28:14 +00:00
Ulrich Drepper
ede0f73aea
Update.
...
* test-skeleton.c (main): If EXPECTED_STATUS is defined check that
returned status from child matches.
2003-06-07 23:24:07 +00:00
Ulrich Drepper
e1d8e1b7c5
Update.
...
2003-06-07 Ulrich Drepper <drepper@redhat.com>
* Makeconfig (gnulib): Add -lgcc_eh once again.
2003-06-07 09:40:26 +00:00
Ulrich Drepper
5385447635
Update.
...
* test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2003-06-07 00:40:13 +00:00
Ulrich Drepper
b1bfeac00b
Update.
2003-06-07 00:19:38 +00:00
Ulrich Drepper
c3f90e26a5
Update.
...
* sysdeps/unix/sysv/linux/sleep.c (__sleep): Use nanosleep syscall
directly to avoid cancellation in the regular nanosleep
implementation.
2003-06-06 17:34:54 +00:00
Ulrich Drepper
3a370de88f
Update.
...
2003-06-06 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
%edx for first parameter. This means no pushl and therefore the
unwind info isn't screwed up.
2003-06-06 09:02:20 +00:00
Ulrich Drepper
7a8a8e21cd
Update.
...
2003-06-06 Ulrich Drepper <drepper@redhat.com>
* Makefile (CFLAGS-pthread_cancel.c): Define.
2003-06-06 07:53:15 +00:00
Ulrich Drepper
8d74bceb3e
(CFLAGS-pthread_cancel.c): Define.
2003-06-06 07:51:02 +00:00
Richard Henderson
f212e8dcf8
* sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace. * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise. * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation. * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp entry sequence and explicit relocs. Add unwind info for sigreturn and rt_sigreturn. * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state. * configure: Regenerate.
...
* sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
* sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
* sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
entry sequence and explicit relocs. Add unwind info for sigreturn
and rt_sigreturn.
* configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
* configure: Regenerate.
2003-06-06 05:54:15 +00:00
Richard Henderson
a56e4568df
* sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New. Annotate some parameters. * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
...
* sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
Annotate some parameters.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2003-06-06 05:52:52 +00:00
Richard Henderson
44c7664f80
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
...
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2003-06-06 05:51:53 +00:00
Richard Henderson
63e1f70d4d
* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use and require CFI assembler directives. * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
...
2003-06-05 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Use
and require CFI assembler directives.
* sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
2003-06-06 05:51:03 +00:00
Richard Henderson
6f1e513dbb
* include/libc-symbols.h (symbol_set_declare): Use arrays of unspecified size.
...
2003-06-04 Richard Henderson <rth@redhat.com>
* include/libc-symbols.h (symbol_set_declare): Use arrays
of unspecified size.
2003-06-06 05:43:57 +00:00
Ulrich Drepper
cc7ee40876
Update.
...
2003-06-04 Jakub Jelinek <jakub@redhat.com>
* config.make.in (ASFLAGS-config): New.
* Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
* configure.in (libc_cv_as_noexecstack): New check.
(ASFLAGS_config): Substitute.
2003-06-04 Jakub Jelinek <jakub@redhat.com>
* sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
hypot, logb): Protect with #ifdef __FAST_MATH__.
2003-06-04 Thorsten Kukuk <kukuk@suse.de>
* sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
#ifdef __FAST_MATH__.
_POSIX_ prefix.
2003-06-06 02:24:30 +00:00
Ulrich Drepper
4ad0bbf4fa
Update.
...
2003-06-05 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_rwlock_t):
Change type of __writer element to int.
* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
* sysdeps/i386/tcb-offsets.sym: Replace SELF entry with TID entry.
* sysdeps/x86_64/tcb-offsets.sym: Likewise.
* pthread_rwlock_trywrlock.c: Store TID not self pointer in __writer.
Compare with TID to determine deadlocks.
* sysdeps/pthread/pthread_rwlock_rdlock.c: Likewise.
* sysdeps/pthread/pthread_rwlock_timedrdlock.c: Likewise.
* sysdeps/pthread/pthread_rwlock_timedwrlock.: Likewise.
* sysdeps/pthread/pthread_rwlock_wrlock.c: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
* Makefile (tests): Add tst-rwlock12.
* tst-rwlock12.c: New file.
2003-06-05 19:31:57 +00:00
Ulrich Drepper
b558fd3ab7
Test for inter-process rwlocks.
2003-06-05 19:20:54 +00:00
Jakub Jelinek
332faa9627
* sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
...
__lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
Remove bogus hidden_proto.
* sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
Likewise.
* sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
* sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
___lll_mutex_timedlock): Likewise.
2003-06-05 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait,
__lll_timedlock_wait, lll_unlock_wake_cb, __lll_timedwait_tid):
Remove bogus hidden_proto.
* sysdeps/unix/sysv/linux/s390/libc-lowlevellock.c (___lll_lock):
Likewise.
* sysdeps/unix/sysv/linux/s390/lowlevellock.c (___lll_lock,
lll_unlock_wake_cb, ___lll_timedwait_tid): Likewise.
* sysdeps/unix/sysv/linux/s390/lowlevelmutex.c (___lll_mutex_lock,
___lll_mutex_timedlock): Likewise.
2003-06-05 08:12:11 +00:00
Ulrich Drepper
35915ec87b
Regenerated.
2003-06-04 21:41:25 +00:00
Ulrich Drepper
29d9e2fd2c
Update.
...
2003-06-04 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
(__pthread_cond_signal): Add some code to eventually handle
cond_lock!=0.
2003-06-04 19:48:29 +00:00
Ulrich Drepper
1fb2614ae5
Update.
...
2003-06-03 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
* posix/globtest.sh: Adjust for this change.
2003-06-04 05:12:46 +00:00
Ulrich Drepper
332afd9ecd
Update.
...
* sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
to get the actual PID value used in the records passed up.
(getifaddrs): Don't initialize nh.pid here.
2003-06-02 Ulrich Drepper <drepper@redhat.com>
2003-06-03 23:07:39 +00:00
Ulrich Drepper
7aebf8554c
Update.
...
* sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
optimization.
2003-06-03 05:46:37 +00:00
Ulrich Drepper
63ae67a9d9
Update.
...
* po/zh_CN.po: Update from translation team.
2003-06-03 03:23:17 +00:00
Ulrich Drepper
bb958f59aa
Update.
...
2003-06-02 Ulrich Drepper <drepper@redhat.com>
* posix/getconf.c (main): Also recognize names without the
__POSIX_ prefix.
* elf/Makefile (CFLAGS-dl-lookup.c): Define.
2003-06-02 22:44:59 +00:00
Ulrich Drepper
051ed63dd9
Update.
...
2003-06-02 Bernd Schmidt <bernds@redhat.com>
* sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
ldexpf, ldexpl): Only define if __FAST_MATH__.
2003-06-02 22:41:06 +00:00
Ulrich Drepper
dfb87dc812
(sqrt, __sqrtl, ldexp, ldexpf, ldexpl): Only define if __FAST_MATH__.
2003-06-02 22:39:19 +00:00
Roland McGrath
0f501b7f2a
Replace hard-coded offsets into struct sigcontext with generated file.
...
* sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
* sysdeps/unix/sysv/linux/ia64/Makefile
[$(subdir) = stdlib] (gen-as-const-headers): Add it.
* sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
defining SC_* macros here.
2003-06-02 19:56:35 +00:00
Roland McGrath
4a5f21e441
* sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2003-06-02 18:32:20 +00:00
Roland McGrath
32c1ba12ec
* sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2003-06-02 18:20:33 +00:00
Roland McGrath
7b09d09d7a
2003-06-01 Jakub Jelinek <jakub@redhat.com>
...
* sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2003-06-02 18:20:22 +00:00
Ulrich Drepper
6f1acb30c1
Update.
...
* test-skeleton.c (main): Request getopt to not reorder the
command line.
2003-06-01 18:07:34 +00:00
Ulrich Drepper
80b5421740
Update.
...
2003-06-01 Ulrich Drepper <drepper@redhat.com>
* elf/Makefile (CFLAGS-dl-runtime.c): Define.
* wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
stpncpy.
2003-06-01 08:52:38 +00:00
Ulrich Drepper
31195be25b
Update.
...
2003-05-31 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2003-06-01 04:09:55 +00:00
Ulrich Drepper
06e2e0a747
Update.
...
2003-05-31 Jakub Jelinek <jakub@redhat.com>
* sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
New function.
(elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
* sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
CFI directives.
* csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2003-06-01 01:32:04 +00:00
Ulrich Drepper
b6da933bfb
Update.
...
* csu/Makefile: Fix Makefile warnings regarding Scrt1.
* sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2003-05-31 23:36:18 +00:00
Ulrich Drepper
dcfc822431
Update.
...
* Makefile (tests): Add tst-sem8 and tst-sem9.
* tst-sem8.c: New file.
* tst-sem9.c: New file.
* sem_open.c: Fix creation of in_use record if the file exists but
no internal record.
2003-05-31 19:58:46 +00:00
Ulrich Drepper
49b650430e
Update.
...
2003-05-31 Ulrich Drepper <drepper@redhat.com>
* libio/fileops.c (_IO_file_open): Don't mark as inline.
* sysdeps/ia64/elf/initfini.c ((gmon_initializer): Mark with
attribute used.
2003-05-31 07:50:12 +00:00
Ulrich Drepper
5d4f57bd93
Update.
...
2003-05-30 Ulrich Drepper <drepper@redhat.com>
* scripts/config.guess: Update from master copy.
* scripts/config.sub: Likewise.
2003-05-31 06:30:37 +00:00
Ulrich Drepper
7ab7ea333d
Update.
...
* tst-rwlock6.c (do_test): Use correct format specifier.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S
(__lll_mutex_lock_wait): Replace one memory operation with one
register operation.
* sysdeps/unix/sysv/linux/x86_64/lowlevelmutex.S
(__lll_mutex_lock_wait): Likewise.
2003-05-30 17:50:29 +00:00
Ulrich Drepper
a14c918ddd
(__lll_mutex_lock_wait): Replace one memory operation with one register operation.
2003-05-30 17:49:37 +00:00