From a39cf49f3a27c9c866cd6a074e94596689d8aafb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 23 Jul 2008 22:32:19 +0000 Subject: 2008-07-23 Joel Sherrill PR 1291/cpukit * posix_users/semaphores.t: Update to reflect absolute time. --- doc/ChangeLog | 5 +++++ doc/posix_users/semaphores.t | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/doc/ChangeLog b/doc/ChangeLog index 2aca1fe4cc..7045e9de49 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-23 Joel Sherrill + + PR 1291/cpukit + * posix_users/semaphores.t: Update to reflect absolute time. + 2008-07-23 Joel Sherrill * shell/Makefile.am, shell/rtems.t: Add pthread command. diff --git a/doc/posix_users/semaphores.t b/doc/posix_users/semaphores.t index f58c1533dc..9ad7f24899 100644 --- a/doc/posix_users/semaphores.t +++ b/doc/posix_users/semaphores.t @@ -463,7 +463,7 @@ Multiprocessing is not supported in this implementation. @example int sem_timedwait( sem_t *sem, - const struct timespec *timeout + const struct timespec *abstime ); @end example @end ifset @@ -484,13 +484,15 @@ The @code{sem} argument does not refewr to a valid semaphore @end table @subheading DESCRIPTION: -This function attemtps to lock a semaphore specified by @code{sem}, and will -wait for the semaphore for an interval specified by @code{timeout}. If the -semaphore is available, then the semaphore is locked (i.e., the semaphore -value is decremented) and the function returns a value of 0. The semaphore -remains locked until released by a @code{sem_post()} call. If the semaphore -is unavailable, then the function will wait for the semaphore to become -available for the amount of time specified by @code{timeout}. + +This function attemtps to lock a semaphore specified by @code{sem}, +and will wait for the semaphore until the absolute time specified by +@code{abstime}. If the semaphore is available, then the semaphore is +locked (i.e., the semaphore value is decremented) and the function +returns a value of 0. The semaphore remains locked until released by +a @code{sem_post()} call. If the semaphore is unavailable, then the +function will wait for the semaphore to become available for the amount +of time specified by @code{timeout}. If the semaphore does not become available within the interval specified by @code{timeout}, then the function returns -1 and sets @code{errno} to EAGAIN. -- cgit v1.2.3