summaryrefslogtreecommitdiffstats
path: root/lib/librt
Commit message (Collapse)AuthorAgeFilesLines
* Convert this piece of code to use C11 atomics.ed2013-06-301-3/+4
| | | | | | | As mentioned before, we should at least aim to have one piece of code in both user space and kernel space that uses C11 atomics, to get some coverage. This piece of code can be migrated trivially, so it's a good candidate.
* Register signal 33 explicitly as reserved by real-time library, andrmh2012-03-262-7/+5
| | | | | | | use it by its new name (SIGLIBRT) rather than internal definition in librt (SIGSERVICE). Approved by: davidxu, arch
* Free unused allocation on error.kib2011-11-181-0/+2
| | | | | Reported by: slonoman2011 yandex ru MFC after: 1 week
* Fix the 32-bit build stage on amd64 when WITH_CTF is enabled. It seemsdim2011-02-231-1/+1
| | | | | | | | | ctfconvert will corrupt object files that are compiled with -g, if it is not run with -g itself. To fix it, remove -g from CFLAGS in lib/librt/Makefile. If you need to compile this library with debug info, use DEBUG_FLAGS=-g instead, which will work correctly, even when using WITH_CTF.
* To support stack unwinding for cancellation points, add -fexceptions flagdavidxu2010-09-252-14/+12
| | | | | | | for them, two functions _pthread_cancel_enter and _pthread_cancel_leave are added to let thread enter and leave a cancellation point, it also makes it possible that other functions can be cancellation points in libraries without having to be rewritten in libthr.
* Fixed dependencies (make checkdpadd).ru2010-02-251-1/+2
|
* Build lib/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
* Make following functions be cancellation points:davidxu2009-11-181-4/+55
| | | | | | | mq_receive mq_send mq_timereceive mq_timedsend
* link libpthread because the librt really needs it to fully function.davidxu2009-11-181-0/+1
|
* Fix compiler warnings.davidxu2009-11-181-2/+2
|
* atomic_fetchadd_int works on unsigned quantities - changekmacy2008-08-151-1/+1
| | | | | | sigev_generation to be unsigned MFC after: 1 month
* Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.deischen2007-05-131-2/+0
| | | | | | | | | | Warning, after symbol versioning is enabled, going back is not easy (use WITHOUT_SYMVER at your own risk). Change the default thread library to libthr. There most likely still needs to be a version bump for at least the thread libraries. If necessary, this will happen later.
* Don't enable symbol versioning for librt by default just yet.deischen2007-04-291-0/+2
|
* Symbol version librt.deischen2007-04-292-0/+71
|
* Account for recent changes in namespace.h. Use _pthread_createdeischen2006-03-291-4/+4
| | | | instead of pthread_create.
* Implement SIGEV_THREAD notification for aio_fsync.davidxu2006-03-241-18/+55
|
* No need to define NO_MAN here.ru2006-03-151-1/+0
|
* Block all signals in helper threads except those should not be blocked.davidxu2006-03-101-6/+9
|
* Set SNF_SYNC flag for timer, as the timer notification should bedavidxu2006-03-081-0/+1
| | | | serialized.
* Remove stale comments.davidxu2006-03-071-4/+0
|
* 1. Always call user callback function in newly created thread, it seemsdavidxu2006-03-075-412/+170
| | | | | | POSIX implies that the user callback function must be executed in clean environment. 2. Use newly introduced pthread stubs in libc.
* Use a thread pool to process notification if sigev_notify_attributesdavidxu2006-03-045-63/+326
| | | | | | | | is default and caller does not require dedicated thread. timer needs a dedicated thread to maintain overrun count correctly in notification context. mqueue and aio can use thread pool to do notification concurrently, the thread pool has lifecycle control, some threads will exit if they have idled for a while.
* save sigev_node pointer.davidxu2006-03-041-0/+1
|
* 1. Fix a race in aio_return.davidxu2006-03-011-6/+12
| | | | | 2. Save and restore syscall errno correctly. 3. Style fix.
* Style fix.davidxu2006-03-011-1/+2
|
* Fix a mutex lock/unlock mismatch.davidxu2006-03-011-2/+3
|
* Forgot to revert to use weak symbols when I was debugging, fix it!davidxu2006-03-011-22/+15
|
* Add missing parameter mq_attr * for mq_open.davidxu2006-03-011-3/+5
|
* Bring in my initial version of POSIX realtime extension library.davidxu2006-03-016-0/+1112
Current the library implements mqueue, timer and aio with SIGEV_THREAD notification supported. Earlier version reviewed by: deischen
OpenPOWER on IntegriCloud