libpthread: Add sem_timedwait().
commit775923a8d67ea35ff5fb2fc616d36ae4acd5e4ff
authorSascha Wildner <saw@online.de>
Tue, 25 Dec 2012 19:37:29 +0000 (25 20:37 +0100)
committerSascha Wildner <saw@online.de>
Tue, 25 Dec 2012 19:37:29 +0000 (25 20:37 +0100)
treee91161299cefeec0840729a2b38783ea5667df0f
parenteb0d1630eca6940f3a1bc5ea2a12b2db84179a5c
libpthread: Add sem_timedwait().

It was commented out and I'm not sure why.

It needed a bit of adjustment to properly check the nanoseconds field but
with that, it passes all eleven tests of the Open POSIX Test Suite. Other
people (thesjg, vsrinivas) have tested and used it too in the past.

While here, also add a manual page (taken from FreeBSD).

In-discussion-with: vsrinivas
lib/libc/gen/_pthread_stubs.c
lib/libpthread/Makefile
lib/libpthread/sem_timedwait.3 [new file with mode: 0644]
lib/libthread_xu/thread/thr_sem.c
sys/sys/semaphore.h