diff options
author | 2012-03-03 10:02:26 +0000 | |
---|---|---|
committer | 2012-03-03 10:02:26 +0000 | |
commit | 37ebc96dae665e2e69a41843fc69ae66273ce898 (patch) | |
tree | f1be9a6efbf5702df0235969bc113eb4c9fe5c29 /regress/lib/libpthread/semaphore | |
parent | Verify that sem_wait() doesn't return zero without decrementing the (diff) | |
download | wireguard-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