about summary refs log tree commit diff
path: root/nptl
Commit message (Collapse)AuthorAgeFilesLines
* Update.Ulrich Drepper2004-11-129-9/+1191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-10 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/setreuid.c: Remove sys/syscall.h, sys/types.h, linux/posix_types.h, sysdep.h and pthread-functions.h includes. Include setxid.h. Use INLINE_SETXID_SYSCALL macro instead of INLINE_SYSCALL, kill the HAVE_PTR__NPTL_SETXID guarded snippets. * sysdeps/unix/sysv/linux/setegid.c: Likewise. * sysdeps/unix/sysv/linux/setuid.c: Likewise. * sysdeps/unix/sysv/linux/seteuid.c: Likewise. * sysdeps/unix/sysv/linux/setgid.c: Likewise. * sysdeps/unix/sysv/linux/setresuid.c: Likewise. * sysdeps/unix/sysv/linux/setresgid.c: Likewise. * sysdeps/unix/sysv/linux/setregid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise. * sysdeps/unix/sysv/linux/alpha/setreuid.c: Likewise. Formatting. Change signed int into int. * sysdeps/unix/sysv/linux/alpha/setresuid.c: Likewise. * sysdeps/unix/sysv/linux/alpha/setresgid.c: Likewise. * sysdeps/unix/sysv/linux/alpha/setregid.c: Likewise. * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid): Remove. * sysdeps/unix/setxid.h: New file. * Rules (binaries-static): Add xtests-static. * Makeconfig (run-program-prefix): Filter also xtests-static.
* Update. cvs/fedora-glibc-20041110T0839Ulrich Drepper2004-11-103-1/+87
| | | | | | | 2004-11-10 Jakub Jelinek <jakub@redhat.com> * Makefile (tests): Add tst-exit3. * tst-exit3.c: New test.
* Update.Ulrich Drepper2004-11-092-0/+45
| | | | | | | 2004-11-09 Ulrich Drepper <drepper@redhat.com> * Makefile (tests): Add tst-exit2. * tst-exit2.c: New file.
* (tests): Add tst-exit2.Ulrich Drepper2004-11-091-1/+1
|
* [BZ #530]Roland McGrath2004-11-091-0/+11
| | | | | | | | | | | | 2004-11-09 Roland McGrath <roland@redhat.com> [BZ #530] * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads here, before calling clone. * pthread_create.c (start_thread): Don't do it here. 2004-11-04 Roland McGrath <roland@redhat.com> * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file.
* [BZ #530]Roland McGrath2004-11-092-3/+12
| | | | | | | | 2004-11-09 Roland McGrath <roland@redhat.com> [BZ #530] * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads here, before calling clone. * pthread_create.c (start_thread): Don't do it here.
* * debug/tst-chk1.c (ret): New volatile variable.Roland McGrath2004-11-032-0/+5
| | | | | (CHK_FAIL_END): Remove redundant ret setting. (do_test): Remote ret variable.
* Update.Ulrich Drepper2004-10-291-0/+6
| | | | | | | | 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): Set ETIMEDOUT to errno when time is up. Tweak to avoid assembler warning.
* (sem_timedwait): Set ETIMEDOUT to errno when time is up. Tweak to avoid ↵Ulrich Drepper2004-10-291-4/+6
| | | | assembler warning.
* Update.Ulrich Drepper2004-10-282-2/+9
| | | | | | | 2004-10-28 Jakub Jelinek <jakub@redhat.com> * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks if sched_priority is not between minprio and maxprio.
* Update.Ulrich Drepper2004-10-253-1/+57
| | | | | | | | | | | | | 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/sh/dl-machine.h: Include sysdep.h. (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add CFI directives. (elf_machine_runtime_setup): Add always_inline attribute. (_dl_start_user): Pass the correct environ. (elf_machine_rela): Replace static inline by auto inline, add always_inline attribute. (elf_machine_rela_relative): Likewise. (elf_machine_lazy_rel): Likewise.
* Update.Ulrich Drepper2004-10-242-3/+9
| | | | * resolv/nss_dns/dns-host.c: Avoid using PLTs.
* Update.Ulrich Drepper2004-10-211-0/+7
| | | | | | | | | 2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_timedlock_wait): If woken but cannot get the lock, make sure 2 is stored in the futex and we looked at the old value. Fix a few other problems to return the correct value.
* (__lll_mutex_timedlock_wait): If woken but cannot get the lock, make sure 2 ↵Ulrich Drepper2004-10-211-4/+11
| | | | is stored in the futex and we looked at the old value. Fix a few other problems to return the correct value.
* Pretty printing.Ulrich Drepper2004-10-181-2/+0
|
* * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to ↵Richard Henderson2004-10-152-2/+9
| | | | | | | | | make gcc4 happy. 2004-10-14 Richard Henderson <rth@redhat.com> * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to make gcc4 happy.
* Fix typo in comment.Ulrich Drepper2004-10-081-1/+1
|
* (__libc_current_sigrtmin): Fix typo in comment.Ulrich Drepper2004-10-081-1/+1
|
* Update.Ulrich Drepper2004-10-061-0/+18
| | | | | | | 2004-10-06 Ulrich Drepper <drepper@redhat.com> * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if low 16 bits are zero.
* Update.Ulrich Drepper2004-10-065-7/+13
| | | | | | | * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h. (do_test): Use %p instead of 0x%08X to print a pointer. * malloc/malloc.c: Include stdio-common/_itoa.h.
* Update.Ulrich Drepper2004-10-061-4/+9
| | | | | | | 2004-10-06 Jakub Jelinek <jakub@redhat.com> * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h. (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
* Update. cvs/fedora-glibc-20041006T0900Ulrich Drepper2004-10-062-0/+20
| | | | | | 2004-10-05 Dwayne Grant McConnell <dgm69@us.ibm.com> * pthread.c: Mask restart signal during cancel signal handler.
* Update.Ulrich Drepper2004-10-064-3/+9
| | | | | | | | * tst-clock1.c: Change #ifdef to #if defined. * tst-clock2.c: Likewise. * tst-cond11.c: Likewise. 2004-10-05 Jakub Jelinek <jakub@redhat.com>
* typoRoland McGrath2004-10-051-1/+1
| | | | (__lll_mutex_timedlock_wait): If woken but cannot get the lock,
* Update.Ulrich Drepper2004-10-052-4/+11
| | | | | | | 2004-10-05 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
* Update.Ulrich Drepper2004-10-052-2/+7
| | | | | | | | | | | | | | | | | | | | | | | 2004-10-05 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L for _SC_CPUTIME or _SC_THREAD_CPUTIME. * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus -fpie if building PIE. (CFLAGS-*.c): Use it. * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro. ($(objpfx)nscd): Add $(relro-LDFLAGS). * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h. (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if !HP_TIMING_AVAIL. 2004-10-05 Ulrich Drepper <drepper@redhat.com> * nscd/Makefile (distribute): Remove TODO. * nscd/TODO: Removed.
* Update.Ulrich Drepper2004-10-0419-113/+57
| | | | | | | | | | | | | | | | | | | | | | | | 2004-10-04 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME to zero. * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise. * tst-barrier2.c: Fix testing for POSIX feature. * tst-clock1.c: Likewise. * tst-clock2.c: Likewise. * tst-cond11.c: Likewise. * tst-cond4.c: Likewise. * tst-cond6.c: Likewise. * tst-flock2.c: Likewise. * tst-mutex4.c: Likewise. * tst-mutex9.c: Likewise. * tst-rwlock12.c: Likewise. * tst-rwlock4.c: Likewise. * tst-signal1.c: Likewise. * tst-spin2.c: Likewise. * sysdeps/pthread/posix-timer.h: Likewise. * sysdeps/pthread/timer_create.c: Likewise. * sysdeps/pthread/timer_routines.c: Likewise.
* Update. cvs/fedora-glibc-20041001T2134Ulrich Drepper2004-10-012-1/+4
| | | | | * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the group the caller provided unless there is a real problem.
* [BZ #417] cvs/fedora-glibc-20041001T1134Ulrich Drepper2004-10-011-0/+1
|
* Update.Ulrich Drepper2004-10-013-9/+27
| | | | | | | | | | | 2004-10-01 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S (__lll_mutex_timedlock_wait): I woken but cannot get the lock, make sure 2 is stored in the futex and we looked at the old value. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems which might very well made the code not working at all before.
* Update.Ulrich Drepper2004-09-281-0/+7
| | | | | * sunrpc/Makefile (xtests): Add tst-getmyaddr. * sunrpc/tst-getmyaddr.c: New file.
* Update.Ulrich Drepper2004-09-283-9/+12
| | | | | | | | | * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure SIGSETXID is not blocked. * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise. * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise. * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
* Update.Ulrich Drepper2004-09-289-31/+43
| | | | | | | | | | | | | | 2004-09-28 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t): Add __extension__ to long long types. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
* Update.Ulrich Drepper2004-09-254-8/+26
| | | | | | | | | | | 2004-09-25 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second result declaration. 2004-09-22 Andreas Schwab <schwab@suse.de> * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
* [BZ #405]Ulrich Drepper2004-09-242-3/+20
| | | | | | | | | | Update. * pthread_create.c (__pthread_create_2_1): Remember whether thread is created detached and if yes, do not try to free the stack in case the thread creation failed. * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in case there has been no error. [BZ #405]
* (__pthread_create_2_1): Remember whether thread is created detached and if ↵Ulrich Drepper2004-09-241-1/+7
| | | | yes, do not try to free the stack in case the thread creation failed.
* Update.Ulrich Drepper2004-09-242-5/+16
| | | | | | 2004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
* Update.Ulrich Drepper2004-09-202-5/+1
| | | | | | | | | | | 2004-09-20 Ulrich Drepper <drepper@redhat.com> * nscd/nscd.c (options): Mark S option as hidden. (parse_opt): When S option is used, print warning message. * nscd/grpcache.c (adgrptbyX): Don't handle secure mode. * nscd/hstcache.c (addhstbyX): Don't handle secure mode. * nscd/aicache.c (addhstaiX): Don't handle secure mode. * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
* Update.Ulrich Drepper2004-09-203-35/+11
| | | | | * configure.in: If selinux has not explictly been requested, don't comment on it missing.
* Update.Ulrich Drepper2004-09-2019-9/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call callback to set IDs in all other threads as well. * sysdeps/unix/sysv/linux/seteuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise. * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. * sysdeps/unix/sysv/linux/setuid.c: New file. * sysdeps/unix/sysv/linux/setgid.c: New file. * sysdeps/unix/sysv/linux/setreuid.c: New file. * sysdeps/unix/sysv/linux/setregid.c: New file. * sysdeps/unix/sysv/linux/setresuid.c: New file. * sysdeps/unix/sysv/linux/setresgid.c: New file. * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version. * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid and setresuid. * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid. * nscd/grpcache.c: Likewise. * nscd/hstcache.c: Likewise. * nscd/pwdcache.c: Likewise.
* Update.Ulrich Drepper2004-09-182-4/+12
| | | | | | | 2004-09-18 Ulrich Drepper <drepper@redhat.com> * allocatestack.c (allocate_stack): Return EAGAIN instead of ENOMEM when out of memory.
* * configure.in (--with-headers): Let argument contain a : separatedRoland McGrath2004-09-163-17/+9
| | | | | list of directories to use, not just one. * configure: Regenerated.
* * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.Richard Henderson2004-09-152-1/+5
| | | | | | 2004-09-15 Richard Henderson <rth@redhat.com> * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
* Update.Ulrich Drepper2004-09-136-2/+387
| | | | | | | | | | | | | 2004-09-01 David Mosberger <davidm@hpl.hp.com> * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h (__libc_unwind_longjmp): Delete macro and declare as function. * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for nptl directory. * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file. * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file. * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
* Update.Ulrich Drepper2004-09-121-9/+9
| | | | | | | | | | 2004-09-11 Thorsten Kukuk <kukuk@suse.de> * nis/nss_compat/compat-grp.c: Check that buflen is greater zero before writing data into the buffer with negative offset. * nis/nss_compat/compat-initgroups.c: Likewise. * nis/nss_compat/compat-pwd.c: Likewise. * nis/nss_compat/compat-spwd.c Likewise.
* [BZ #365]Ulrich Drepper2004-09-1210-9/+24
| | | | | | | | | Update. * misc/syslog.c (vsyslog): Fix copying of PID in case of out-of-memory situation. [BZ #365]. * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of __THROW in inline function definitions.
* Update.Ulrich Drepper2004-09-102-8/+142
| | | | | | | | | | 2004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement __nwaiters. If pthread_cond_destroy has been called and this is the last waiter, signal pthread_cond_destroy caller and avoid using the pthread_cond_t structure after unlock. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
* [BZ #375]Ulrich Drepper2004-09-092-8/+33
| | | | | | | | | | | | Update. 2004-09-08 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/pthread.h (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++. (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise. (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise. (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise. [BZ #375]
* Update.Ulrich Drepper2004-09-083-5/+14
| | | | | | | | | | | | | | | | 2004-09-07 Jakub Jelinek <jakub@redhat.com> * sysdeps/powerpc/powerpc64/configure.in: New file. * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add. * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove. * sysdeps/powerpc/powerpc64/sysdep.h: Formatting. (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX, BODY_PREFIX): Define. (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols, USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries. * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h. (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
* Update.Ulrich Drepper2004-09-085-8/+25
| | | | * malloc/malloc.h: Don't define __THROW if it is already defined.