aboutsummaryrefslogtreecommitdiff
path: root/nptl/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2013-06-15New API to set default thread attributesSiddhesh Poyarekar1-2/+3
This patch introduces two new convenience functions to set the default thread attributes used for creating threads. This allows a programmer to set the default thread attributes just once in a process and then run pthread_create without additional attributes.
2013-06-14Avoid access beyond memory bounds in pthread_attr_getaffinity_npSiddhesh Poyarekar1-0/+1
Resolves BZ #15618. pthread_attr_getaffinity_np may write beyond bounds of the input cpuset buffer if the size of the input buffer is smaller than the buffer present in the input pthread attributes. Fix is to copy to the extent of the minimum of the source and the destination.
2013-05-31Link extra-libs consistently with libc and ld.so.Joseph Myers1-8/+0
2013-03-01Revert GLIBC_PTHREAD_DEFAULT_STACKSIZE changes.Carlos O'Donell1-4/+1
This reverts the change that allows the POSIX Thread default stack size to be changed by the environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE. It has been requested that more discussion happen before this change goes into 2.18.
2013-03-01Set default stack size from program environmentSiddhesh Poyarekar1-1/+4
New environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE to do this.
2013-01-11Add --enable-hardcoded-path-in-tests configure optionH.J. Lu1-6/+6
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers1-1/+1
2012-12-03Remove unneeded linking in nptl testsuiteAllan McRae1-3/+0
2012-11-14Adding missing -fexception CFLAGSMarcus Shawcroft1-0/+5
2012-10-30Fix nptl/tst-cancel7 for non-bash shells.Aurelien Jarno1-1/+1
2012-10-25Use bash to run nptl/tst-tls6.sh.Joseph Myers1-1/+1
2012-10-24Support cross-testing.Joseph Myers1-1/+1
2012-10-24BZ#14743: Move clock_* symbols from librt to libc.Roland McGrath1-20/+7
2012-10-24Don't set resource limits in tst-oddstacklimit-ENV.Joseph Myers1-5/+8
2012-10-24Define and use $(run-built-tests).Joseph Myers1-3/+3
2012-10-23Add and use $(host-built-program-cmd).Jim Blandy1-3/+3
2012-10-21Use $(NM) not nm in tst-cancel-wrappers.Jim Blandy1-1/+2
2012-10-10Take lock in pthread_cond_wait cleanup handler only when neededSiddhesh Poyarekar1-1/+2
[BZ #14652] When a thread waiting in pthread_cond_wait with a PI mutex is cancelled after it has returned successfully from the futex syscall but just before async cancellation is disabled, it enters its cancellation handler with the mutex held and simply calling a mutex_lock again will result in a deadlock. Hence, it is necessary to see if the thread owns the lock and try to lock it only if it doesn't.
2012-10-05Add test cases for BZ #14557H.J. Lu1-2/+7
2012-10-05Unlock mutex before going back to waiting for PI mutexesSiddhesh Poyarekar1-1/+3
[BZ #14417] A futex call with FUTEX_WAIT_REQUEUE_PI returns with the mutex locked on success. If such a successful thread is pipped to the cond_lock by another spuriously woken waiter, it could be sent back to wait on the futex with the mutex lock held, thus causing a deadlock. So it is necessary that the thread relinquishes the mutex before going back to sleep.
2012-10-01Fix exception table for i386 pthread_cond_waitSiddhesh Poyarekar1-1/+1
[BZ #14477] Add an additional entry in the exception table to jump to __condvar_w_cleanup2 instead of __condvar_w_cleanup for PI mutexes when %ebx contains the address of the futex instead of the condition variable.
2012-09-25Set "fail on error" mode directly in testsuite shell scriptsDmitry V. Levin1-2/+2
2012-09-07Rename LDFLAGS-XXX to LDLIBS-XXX for -lstdc++H.J. Lu1-1/+1
2012-09-06Add tst-cancel21-static.cH.J. Lu1-2/+3
2012-08-31Fix sem_post race (bug 14532).Joseph Myers1-1/+1
2012-08-17Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO.Roland McGrath1-3/+3
2012-06-20Account for the extra stack size when rlimit is small enoughSiddhesh Poyarekar1-1/+1
When rlimit is small enough to be used as the stacksize to be returned in pthread_getattr_np, cases where a stack is made executable due to a DSO load get stack size that is larger than what the kernel allows. This is because in such a case the stack size does not account for the pages that have auxv and program arguments. Additionally, the stacksize for the process derived from this should be truncated to align to page size to avoid going beyond rlimit.
2012-05-15Allow a single-threaded program to cancel itselfSiddhesh Poyarekar1-0/+2
There is nothing in the POSIX specification to disallow a single-threaded program from cancelling itself, so we forcibly enable multiple_threads to allow the next available cancellation point in the thread to run. Also added additional tests to cover various cancellation scenarios.
2012-05-02Fix test-suite failues with -Wl,--as-neededAllan McRae1-1/+2
Signed-off-by: Allan McRae <allan@archlinux.org>
2012-04-28Don't run tests when cross-compilingAndreas Schwab1-0/+4
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-2/+0
2012-02-21Remove old initfini mechanism.Joseph Myers1-48/+1
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert1-3/+2
2012-02-08Add missing dependency for pt-crti.oAndreas Schwab1-0/+2
2012-02-08Support crti.S and crtn.S provided directly by architectures.Joseph Myers1-0/+19
2012-01-08Static linking is always neededUlrich Drepper1-2/+1
2012-01-07Remove non-ELF supportUlrich Drepper1-2/+2
2011-08-20Fix typo in tst-cleanup0.out rule.David S. Miller1-1/+1
2011-01-16Fix missing dependencies and ensure correct CPPFLAGS.Andreas Schwab1-1/+1
2010-07-01Work around kernel rejecting valid absolute timestampsAndreas Schwab1-0/+1
2010-07-01Fix build with newer linker.Ulrich Drepper1-1/+2
2010-04-09Implement interfaces to set and get names of threads.Ulrich Drepper1-2/+4
At least the Linux kernel provides field where the kernel originally stores the command which is executed by the thread. The value can subsequently be overwritten. The added functions allow to do that for threads, providing and abstraction around the syscalls or /proc file system accesses needed.
2009-11-24New NPTL POSIX semaphore test.Ulrich Drepper1-1/+1
2009-07-18Add more sem_timedwait tests.Ulrich Drepper1-0/+2
2009-06-12Implement pthread_sigqueue.Ulrich Drepper1-1/+1
The kernel from 2.3.31 on supports the rt_tgsigqueueinfo syscall. Use it to implement the non-standard extension which, like sigqueue, can pass additional data to the receiving thread.
2009-05-16libc-cancellation.c cleanup.Ulrich Drepper1-3/+3
The unrelated function __libc_cleanup_routine should not be in this file. Move it into its own file.
2009-05-16Rename nptl/init.c to nptl/nptl-init.c.Ulrich Drepper1-3/+3
Needed to allow overwriting architectures init.c in csu and nptl individually. Fixes BZ #9924.
2008-11-12[BZ #7009]cvs/fedora-glibc-20081112T2008Ulrich Drepper1-1/+1
2008-05-31(tests): Add tst-rwlock2a.Ulrich Drepper1-3/+3
2008-02-01* Makeconfig (sysd-rules-targets): New variable.Roland McGrath1-4/+2
* sysdeps/unix/make-syscalls.sh: Use it in the rules emitted. * sysdeps/unix/Makefile (omit-deps): Append variants for each target.