about summary refs log tree commit diff
path: root/nptl/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
* Unify source for async cancel handling.Ulrich Drepper2009-05-161-87/+4
| | | | | Unify all three places where we enable async cancellation for syscalls. Optimize a bit.
* * cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_ANDUlrich Drepper2009-04-272-2/+28
| | | | | | | | is available. * libc-cancellation.c (__libc_disable_asynccancel): Likewise. * sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND. * sysdeps/i386/tls.h: Likewise. (tcbhead_t): Add __private_tm member.
* * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):Ulrich Drepper2009-04-261-4/+4
| | | | Avoid warning by using may_alias attribute on ptrhack.
* [BZ #5807]Ulrich Drepper2009-03-151-102/+21
| | | | | | | 2009-03-15 Ulrich Drepper <drepper@redhat.com> [BZ #5807] * string/strlen.c (strlen): Fix omission in the expression to test for NUL bytes.
* * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define cvs/fedora-glibc-20090309T1421Jakub Jelinek2009-03-091-1/+7
| | | | | | | | | | FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY. 2009-03-09 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY.
* * wctype/wctype.h: The *_l functions are in POSIX 2008.Ulrich Drepper2009-02-261-32/+38
| | | | | | | | | | | | | | | | | | | | * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy, wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs, wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l. * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from 200112L to 200809L. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise. * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT entries. * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT. * posix/unistd.h: fexecve is in POSIX 2008. * time/time.h: strftime_l is in POSIX 2008. * io/sys/stat.h: futimens is in POSIX 2008. * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008. * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal, strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008. * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
* * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.Ulrich Drepper2009-02-261-1/+1
| | | | | | | | | | | | | * locale/xlocale.h: Define locale_t type. * locale/locale.h: duplocale, freelocale, newlocale, uselocale are in POSIX 2008. Don't define locale_t here. * stdlib/monetary.h: strfmon_l is in POSIX 2008. * signal/signal.h: Declare psignal and psiginfo for POSIX 2008. * stdio-common/psiginfo.c: New file. * stdio-common/psiginfo-data.h: New file. * stdio-common/psiginfo-define.h: New file. * stdio-common/Makefile (routines): Add psiginfo. * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
* * ctype/ctype.h: The *_l functions are in POSIX 2008.Ulrich Drepper2009-02-261-6/+22
| | | | | | * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in POSIX 2008. /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
* * io/sys/stat.h: The lstat functions have been mandatory since 2001.Ulrich Drepper2009-02-241-4/+4
|
* * sysdeps/unix/sysv/linux/sh/lowlevellock.S: DefineUlrich Drepper2009-02-131-2/+2
| | | | LOAD_FUTEX_WAIT_ABS even if (FUTEX_WAIT == 0).
* * sysdeps/pthread/unwind-forcedunwind.c: Encrypt all functionUlrich Drepper2009-01-291-10/+29
| | | | pointer variables.
* * allocatestack.c (__free_stacks): Renamed from free_stacks.Ulrich Drepper2009-01-291-4/+18
| | | | | | | | | | | | | | | (__free_stack_cache): Removed. Change callers to call __free_stacks. * init.c (nptl_freeres): New function. (pthread_functions): Initialize ptr_freeres to nptl_freeres. * pthreadP.h: Don't declare __free_stack_cache. Declare __free_stacks. * sysdeps/pthread/unwind-forcedunwind.c (libgcc_s_handle): New variable. (pthread_cancel_init): Depend in libgcc_s_handle for decision to load DSO. Assign last. (__unwind_freeres): New function. * allocatestack.c (__reclaim_stacks): Reset in_flight_stack later for better debugging. No need to use stack_list_add here.
* * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):Ulrich Drepper2009-01-282-3/+106
| | | | | Add "t" to clobber list. (INTERNAL_SYSCALL_NCS): Likewise.
* * sysdeps/pthread/list.h (list_add): Initialize new element first.Ulrich Drepper2009-01-081-13/+2
| | | | (list_add_tail): Removed.
* (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_READTIME instead ↵Ulrich Drepper2009-01-031-19/+79
| | | | of computing relative timeout.
* * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argumentUlrich Drepper2009-01-031-2/+2
| | | | handling.
* * init.c (__pthread_initialize_minimal_internal): Check forUlrich Drepper2009-01-031-1/+57
| | | | | | | FUTEX_CLOCK_REALTIME flag. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait): Use FUTEX_WAIT_BITSET|FUTEX_CLOCK_READTIME instead of computing relative timeout.
* * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: DefineUlrich Drepper2009-01-035-6/+21
| | | | | | | | FUTEX_CLOCK_REALTIME and FUTEX_BITSET_MATCH_ANY. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
* * pthread_mutex_lock.c (__pthread_mutex_lock): Handle only theUlrich Drepper2008-12-121-0/+1
| | | | | | | | | | | | | | | fast path here, for robust/PI/PP mutexes call __pthread_mutex_lock_full. Don't use switch, instead use a series of ifs according to their probability. (__pthread_mutex_lock_full): New function. * pthread_mutex_unlock.c: Include assert.h. (__pthread_mutex_unlock_usercnt): Handle only the fast path here, for robust/PI/PP mutexes call __pthread_mutex_unlock_full. Don't use switch, instead use a series of ifs according to their probability. (__pthread_mutex_unlock_full): New function. * sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c (__pthread_mutex_lock_full): Define.
* [BZ #6545]Ulrich Drepper2008-12-091-2/+2
| | | | | * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make available only for __USE_GNU.
* * sysdeps/x86_64/tls.h (tcbhead_t): Add fields reserved for TMUlrich Drepper2008-12-081-1/+9
| | | | | | implementation. Add necessary padding and. * descr.h (struct pthread): Increase padding for tcbhead_t to 24 words.
* * posix/regex_internal.h (build_wcs_upper_buffer):Ulrich Drepper2008-12-061-1/+3
| | | | Return type is reg_error_t.
* * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): RecognizeUlrich Drepper2008-12-035-12/+22
| | | | | | | | | ESRCH return value. (_nss_dns_gethostbyname4_r): Likewise. * resolv/res_init.c (__res_vinit): Initialize nscount to zero. * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use gethostbyname4_r, we don't have a separate IPv6 status, so copy the no_data variable.
* Moved alpha to ports repository.Roland McGrath2008-11-2627-1466/+0
| | | | | | | | | | | 2008-11-25 Roland McGrath <roland@redhat.com> * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha, sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha, sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha, sysdeps/mach/alpha, sysdeps/mach/hurd/alpha: Subdirectories moved to ports repository. * configure.in (base_machine): Remove alpha case.
* * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address, Jakub Jelinek2008-11-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type of the thread variable instead of void *. * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise. * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust __libc_tsd_define arguments. (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust __libc_tsd_address arguments. Remove union hack. * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments. * sunrpc/rpc_thread.c (RPC_VARS): Likewise. (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables): Adjust __libc_tsd_{set,get} arguments. * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust __libc_tsd_define arguments. * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get} arguments. * locale/lc-ctype.c (_nl_postload_ctype): Likewise. * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type. (LOCALE): Adjust __libc_tsd_define arguments. * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get arguments. (LOCALE): Adjust __libc_tsd_define arguments. * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define arguments. (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get} arguments. nptl/ * sysdeps/pthread/malloc-machine.h (MALLOC): Adjust __libc_tsd_define arguments. (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get} arguments. 2008-11-07 Jakub Jelinek <jakub@redhat.com> * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type of the thread variable instead of void *. * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise. * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust __libc_tsd_define arguments. (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust __libc_tsd_address arguments. Remove union hack. * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments. * sunrpc/rpc_thread.c (RPC_VARS): Likewise. (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables): Adjust __libc_tsd_{set,get} arguments. * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust __libc_tsd_define arguments. * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get} arguments. * locale/lc-ctype.c (_nl_postload_ctype): Likewise. * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type. (LOCALE): Adjust __libc_tsd_define arguments. * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get arguments. (LOCALE): Adjust __libc_tsd_define arguments. * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define arguments. (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get} arguments.
* [BZ #6843]Ulrich Drepper2008-11-011-2/+2
| | | | | | | 2008-10-31 Ulrich Drepper <drepper@redhat.com> [BZ #6843] * sysdeps/pthread/gai_misc.h (__gai_create_helper_thread): Increase stack size for helper thread.
* * misc/syslog.c (openlog_internal): Fix __have_sock_cloexecUlrich Drepper2008-10-221-1/+6
| | | | initialization.
* * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrierUlrich Drepper2008-10-061-1/+4
| | | | to force runp->refcntr to be read from memory.
* * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock, Andreas Jaeger2008-09-231-9/+10
| | | | | | | | | | | | lll_robust_lock, lll_cond_lock, lll_robust_cond_lock, lll_timedlock, lll_robust_timedlock, lll_unlock, lll_robust_unlock): Promote private to int. 2008-09-08 Richard Guenther <rguenther@suse.de> * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock, lll_robust_lock, lll_cond_lock, lll_robust_cond_lock, lll_timedlock, lll_robust_timedlock, lll_unlock, lll_robust_unlock): Promote private to int.
* * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.Ulrich Drepper2008-08-151-10/+0
| | | | * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
* * Makeconfig: Define pie-ccflag and PIE-ccflag variables.Ulrich Drepper2008-07-261-1/+1
| | | | | | * elf/Makefile: Use pie-ccflag variable. * nscd/Makefile: Likewise. * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
* * stdio-common/printf_fp.c (___printf_fp): Give wide outout codeUlrich Drepper2008-07-261-0/+2
| | | | the same treatment as narow output code in last patch.
* * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate andUlrich Drepper2008-07-251-3/+26
| | | | | | | | | | | | | | | | __libc_clntudp_bufcreate_internal. * include/sys/socket.h: Declare __have_sock_cloexec. * socket/Makefile (aux): Add have_sock_cloexec. * socket/have_sock_cloexec.c: New file. * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around __libc_clntudp_bufcreate. (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate which takes an additional parameter. Create socket with non-blocking mode and close-on-exec flag set, if wanted. * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE. * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate instead of clntudp_create. The socket has already the close-on-exec flag set if SOCK_CLOEXEC is defined.
* * nscd/grpcache.c (cache_addgr): Correctly compute size of cvs/fedora-glibc-20080612T1619Ulrich Drepper2008-06-121-2/+2
| | | | | | | fixed-size portion of the record. * nscd/servicescache.c (cache_addserv): Likewise. * nscd/pwdcache.c (cache_addpw): Likewise. * nscd/initgrcache.c (addinitgroupsX): Likewise.
* * sysdeps/pthread/pthread.h: Fix typo in comment.Ulrich Drepper2008-05-291-4/+4
|
* (do_clone): Pass accurate length of CPU set to the kernel.Ulrich Drepper2008-05-291-2/+2
|
* Remove useless more "if" tests before "free".Ulrich Drepper2008-05-2711-2/+225
| | | | | | | | | * include/inline-hashtab.h (htab_delete): Likewise. * libio/freopen.c (freopen): Likewise. * libio/freopen64.c (freopen64): Likewise. * locale/programs/ld-collate.c (collate_read): Likewise. * misc/fstab.c (libc_freeres_fn): Likewise. * posix/glob.c (globfree): Likewise.
* * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.Jakub Jelinek2008-05-201-0/+4
| | | | | | 2008-05-19 Jakub Jelinek <jakub@redhat.com> * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
* * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: AccessUlrich Drepper2008-05-115-19/+19
| | | | | | | | | | | | | __pshared correctly. * 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_unlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
* * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c Jakub Jelinek2008-04-151-1/+1
| | | | | | | | (__old_sem_wait): Fix argument to lll_futex_wait(). 2008-04-14 David S. Miller <davem@davemloft.net> * sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c (__old_sem_wait): Fix argument to lll_futex_wait().
* [BZ #6020] cvs/fedora-glibc-20080408T0706Jakub Jelinek2008-04-081-2/+2
| | | | | | | | | | | | * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_wake_unlock): Add private argument to the pre-v9 macro. Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>. 2008-04-08 Jakub Jelinek <jakub@redhat.com> [BZ #6020] * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_wake_unlock): Add private argument to the pre-v9 macro. Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
* * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX ifUlrich Drepper2008-03-275-5/+46
| | | | | | | | | <linux/limits.h> has defined it. * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy ARG_MAX value and prevent ARG_MAX from being defined by the kernel headers. * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use it instead of ARG_MAX.
* * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead Jakub Jelinek2008-03-173-3/+3
| | | | | | | | | | | | of ASSEMBLER. nptl/ * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead of ASSEMBLER. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise. * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise. 2008-03-18 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead of ASSEMBLER.
* Fix typo. cvs/fedora-glibc-20080314T2159Ulrich Drepper2008-03-142-2/+2
|
* * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: DefineUlrich Drepper2008-03-143-3/+30
| | | | | | HAVE_DL_DISCOVER_OSVERSION. * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise. * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
* [BZ #5778]Ulrich Drepper2008-03-081-3/+3
| | | | | | | | | | | | | * sysdeps/unix/sysv/linux/pathconf.h: Declare __statfs_chown_restricted. * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted for _PC_CHOWN_RESTRICTED. * sysdeps/unix/sysv/linux/pathconf.c: Likewise. Implement __statfs_chown_restricted. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change _POSIX_CHOWN_RESTRICTED value to zero. 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
* (sem_post): Avoid unnecessary addr32 prefix.Ulrich Drepper2008-01-301-1/+1
|
* * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.Ulrich Drepper2008-01-225-17/+43
|
* (XADD): Use a scratch register.Ulrich Drepper2008-01-221-5/+7
|
* * pthread-errnos.sym: Add EOVERFLOW.Ulrich Drepper2008-01-104-11/+83
| | | | | | | * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX. * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.