summaryrefslogtreecommitdiffstats
path: root/regress/lib/libpthread/semaphore
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-03-03 10:02:26 +0000
committerguenther <guenther@openbsd.org>2012-03-03 10:02:26 +0000
commit37ebc96dae665e2e69a41843fc69ae66273ce898 (patch)
treef1be9a6efbf5702df0235969bc113eb4c9fe5c29 /regress/lib/libpthread/semaphore
parentVerify that sem_wait() doesn't return zero without decrementing the (diff)
downloadwireguard-openbsd-37ebc96dae665e2e69a41843fc69ae66273ce898.tar.xz
wireguard-openbsd-37ebc96dae665e2e69a41843fc69ae66273ce898.zip
Add sem_timewait() and fix sem_wait()'s handling of signals, so
that it resumes waiting unless the thread was canceled. As part of this, change the internal _sem_wait() function to return zero on success and an errno value on failure instead of 1 on success and zero on failure.
Diffstat (limited to 'regress/lib/libpthread/semaphore')
0 files changed, 0 insertions, 0 deletions