about summary refs log tree commit diff
path: root/sysdeps/nptl/fork.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename bits/stdio-lock.h to stdio-lock.h (bug 14912).Joseph Myers2015-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | It was noted in <https://sourceware.org/ml/libc-alpha/2012-09/msg00305.html> that the bits/*.h naming scheme should only be used for installed headers. This patch renames bits/stdio-lock.h to plain stdio-lock.h to follow that convention. Tested for x86_64 (testsuite, and that installed stripped shared libraries are unchanged by the patch). [BZ #14912] * bits/stdio-lock.h: Move to ... * sysdeps/generic/stdio-lock.h: ...here. (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H. * sysdeps/nptl/bits/stdio-lock.h: Move to ... * sysdeps/nptl/stdio-lock.h: ...here. (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H. * include/libio.h: Include <stdio-lock.h> instead of <bits/stdio-lock.h>. * sysdeps/nptl/fork.c: Likewise. * sysdeps/pthread/flockfile.c: Likewise. * sysdeps/pthread/ftrylockfile.c: Likewise. * sysdeps/pthread/funlockfile.c: Likewise.
* Add and use new glibc-internal futex API.Torvald Riegel2015-07-101-1/+2
| | | | | | | | | | | | | | | | | | | | This adds new functions for futex operations, starting with wait, abstimed_wait, reltimed_wait, wake. They add documentation and error checking according to the current draft of the Linux kernel futex manpage. Waiting with absolute or relative timeouts is split into separate functions. This allows for removing a few cases of code duplication in pthreads code, which uses absolute timeouts; also, it allows us to put platform-specific code to go from an absolute to a relative timeout into the platform-specific futex abstractions.. Futex operations that can be canceled are also split out into separate functions suffixed by "_cancelable". There are separate versions for both Linux and NaCl; while they currently differ only slightly, my expectation is that the separate versions of lowlevellock-futex.h will eventually be merged into futex-internal.h when we get to move the lll_ functions over to the new futex API.
* Fix wake-up in sysdeps/nptl/fork.c.Torvald Riegel2015-01-131-1/+1
|
* Update copyright dates with scripts/update-copyrights.Joseph Myers2015-01-021-1/+1
|
* NPTL: Move fork state variables to initializer files.Roland McGrath2014-12-171-8/+0
|
* Don't touch user-controlled stdio locks in forked child (bug 12847)Andreas Schwab2014-12-101-1/+2
| | | | | The stdio locks for streams with the _IO_USER_LOCK flag should not be touched by internal code.
* pthread_once: Clean up constants.Torvald Riegel2014-10-201-1/+2
| | | | [BZ #15215] This just gives a name to the integer constants being used.
* NPTL is no longer an add-on!Roland McGrath2014-07-071-1/+1
|
* Get rid of nptl/sysdeps/ entirely!Roland McGrath2014-07-071-0/+238