diff options
| author | Alexander Langer <alex@FreeBSD.org> | 1997-11-23 22:58:26 +0000 |
|---|---|---|
| committer | Alexander Langer <alex@FreeBSD.org> | 1997-11-23 22:58:26 +0000 |
| commit | 666dfc8237d0dbf62c3793963f3e6f637f897f21 (patch) | |
| tree | 3bac6f2e6cd1e7b963ee96c6aaf24702f42d8881 | |
| parent | 6eca7bce6cf4afae7fc29039f989fcc863dac3f0 (diff) | |
Notes
| -rw-r--r-- | lib/libc_r/uthread/uthread_cond.c | 2 | ||||
| -rw-r--r-- | lib/libkse/thread/thr_cond.c | 2 | ||||
| -rw-r--r-- | lib/libpthread/thread/thr_cond.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_cond.c b/lib/libc_r/uthread/uthread_cond.c index 09ebb4ec68e0a..1f95a2ab57967 100644 --- a/lib/libc_r/uthread/uthread_cond.c +++ b/lib/libc_r/uthread/uthread_cond.c @@ -242,7 +242,7 @@ pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, /* Check if the wait timed out: */ else if (_thread_run->timeout) { /* Return a timeout error: */ - errno = EAGAIN; + errno = ETIMEDOUT; rval = -1; } } diff --git a/lib/libkse/thread/thr_cond.c b/lib/libkse/thread/thr_cond.c index 09ebb4ec68e0a..1f95a2ab57967 100644 --- a/lib/libkse/thread/thr_cond.c +++ b/lib/libkse/thread/thr_cond.c @@ -242,7 +242,7 @@ pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, /* Check if the wait timed out: */ else if (_thread_run->timeout) { /* Return a timeout error: */ - errno = EAGAIN; + errno = ETIMEDOUT; rval = -1; } } diff --git a/lib/libpthread/thread/thr_cond.c b/lib/libpthread/thread/thr_cond.c index 09ebb4ec68e0a..1f95a2ab57967 100644 --- a/lib/libpthread/thread/thr_cond.c +++ b/lib/libpthread/thread/thr_cond.c @@ -242,7 +242,7 @@ pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, /* Check if the wait timed out: */ else if (_thread_run->timeout) { /* Return a timeout error: */ - errno = EAGAIN; + errno = ETIMEDOUT; rval = -1; } } |
