mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
sem_open() should return SEM_FAILED on any failures. This is change change in the POSIX specification since the original sem_open() was written so many years ago.
This commit is contained in:
@@ -3697,7 +3697,7 @@ semaphores must be less than or equal to <code>SEM_VALUE_MAX</code> (defined in
|
||||
<p>
|
||||
<b>Returned Value:</b>
|
||||
<ul>
|
||||
<li>A pointer to sem_t or -1 (<code>ERROR</code>) if unsuccessful.
|
||||
<li>A pointer to sem_t or <code>SEM_FAILED</code> if unsuccessful.
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user