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:
Gregory Nutt
2017-09-08 10:14:51 -06:00
parent 696e44e6b9
commit e7ce9c4a79
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -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>