You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/17 08:48:45 UTC

[incubator-nuttx] branch master updated (e855a1b -> 28e55ab)

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.


    from e855a1b  doc: Update a few wiki references
     new 781bf68  doc: Fix semaphore related function names
     new 28e55ab  doc: sem_timedwait: No need to include time.h

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Documentation/NuttxUserGuide.html | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)


[incubator-nuttx] 02/02: doc: sem_timedwait: No need to include time.h

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 28e55ab0b1fff8598bc59b87058709ab1db5168b
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Apr 17 16:09:01 2020 +0900

    doc: sem_timedwait: No need to include time.h
    
    It isn't required by the standard or NuttX implementation.
---
 Documentation/NuttxUserGuide.html | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html
index ee4f1c7..27604c4 100644
--- a/Documentation/NuttxUserGuide.html
+++ b/Documentation/NuttxUserGuide.html
@@ -3919,7 +3919,6 @@ interface of the same name.
 <b>Function Prototype:</b>
 <pre>
     #include &lt;semaphore.h&gt;
-    #include &lt;time.h&gt;
     int sem_timedwait(sem_t *sem, const struct timespec *abstime);
 </pre>
 


[incubator-nuttx] 01/02: doc: Fix semaphore related function names

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 781bf68b5c6f7613310ce39fbe6eac40674594fd
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Apr 17 16:08:07 2020 +0900

    doc: Fix semaphore related function names
---
 Documentation/NuttxUserGuide.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html
index e88017d..ee4f1c7 100644
--- a/Documentation/NuttxUserGuide.html
+++ b/Documentation/NuttxUserGuide.html
@@ -3920,7 +3920,7 @@ interface of the same name.
 <pre>
     #include &lt;semaphore.h&gt;
     #include &lt;time.h&gt;
-    int sem_wait(sem_t *sem, const struct timespec *abstime);
+    int sem_timedwait(sem_t *sem, const struct timespec *abstime);
 </pre>
 
 <p>
@@ -3948,7 +3948,7 @@ interface of the same name.
 <li>0 (<code>OK</code>), or -1 (<code>ERROR</code>) is unsuccessful
 </ul>
 <p>
-If <code>sem_wait</code> returns -1 (<code>ERROR</code>) then the cause of the failure
+If <code>sem_timedwait</code> returns -1 (<code>ERROR</code>) then the cause of the failure
 will be indicated by the thread-specific <a href="#ErrnoAccess"><code>errno</code></a>.
 The following lists the possible values for <a href="#ErrnoAccess"><code>errno</code></a>:
 <p>
@@ -4006,7 +4006,7 @@ returns without blocking.
 <ul>
 <li>0 (<code>OK</code>) or -1 (<code>ERROR</code>) if unsuccessful
 </ul>
-If <code>sem_wait</code> returns -1 (<code>ERROR</code>) then the cause of the failure
+If <code>sem_trywait</code> returns -1 (<code>ERROR</code>) then the cause of the failure
 will be indicated by the thread-specific <a href="#ErrnoAccess"><code>errno</code></a>.
 The following lists the possible values for <a href="#ErrnoAccess"><code>errno</code></a>:
 <p>
@@ -4165,7 +4165,7 @@ Otherwise, an -1 (<code>ERROR</code>) will be returned and the <code>errno</code
 <b>Returned Value:</b>
 </p>
 <p>
-If successful, the <code>sem_getprotocol()</code> function will return zero (<code>OK</code>).
+If successful, the <code>sem_setprotocol()</code> function will return zero (<code>OK</code>).
 Otherwise, an -1 (<code>ERROR</code>) will be returned and the <code>errno</code> value will be set to indicate the nature of the error.
 </p>
 <p>