[rtems-docs commit] posix-users: Clarify timed operation errors

Sebastian Huber sebh at rtems.org
Wed Oct 25 05:54:25 UTC 2017


Module:    rtems-docs
Branch:    master
Commit:    c5161ee2f30e124c3190694962d2e1aeea5b102c
Changeset: http://git.rtems.org/rtems-docs/commit/?id=c5161ee2f30e124c3190694962d2e1aeea5b102c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Oct 24 10:50:45 2017 +0200

posix-users: Clarify timed operation errors

Close #3182.

---

 posix-users/condition_variable.rst | 2 ++
 posix-users/semaphore.rst          | 8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/posix-users/condition_variable.rst b/posix-users/condition_variable.rst
index ced9a8a..d92d79f 100644
--- a/posix-users/condition_variable.rst
+++ b/posix-users/condition_variable.rst
@@ -348,6 +348,8 @@ pthread_cond_timedwait - Wait with Timeout a Condition Variable
  :class: rtems-table
 
  * - ``EINVAL``
+   - The nanoseconds field of timeout is invalid.
+ * - ``EINVAL``
    - The specified condition variable or mutex is not initialized OR different
      mutexes were specified for concurrent ``pthread_cond_wait()`` and
      ``pthread_cond_timedwait()`` operations on the same condition variable OR
diff --git a/posix-users/semaphore.rst b/posix-users/semaphore.rst
index 27fdf51..1b1c2b1 100644
--- a/posix-users/semaphore.rst
+++ b/posix-users/semaphore.rst
@@ -434,11 +434,13 @@ sem_timedwait - Wait on a Semaphore for a Specified Time
 .. list-table::
  :class: rtems-table
 
- * - ``EAGAIN``
-   - The semaphore is not available (i.e., the semaphore value is zero), so the
-     semaphore could not be locked.
  * - ``EINVAL``
    - The ``sem`` argument does not refewr to a valid semaphore
+ * - ``EINVAL``
+   - The nanoseconds field of timeout is invalid.
+ * - ``ETIMEDOUT``
+   - The calling thread was unable to get the semaphore within the specified
+     timeout period.
 
 **DESCRIPTION:**
 



More information about the vc mailing list