diff options
Diffstat (limited to 'lib/libc/gen/sem_destroy.3')
-rw-r--r-- | lib/libc/gen/sem_destroy.3 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/gen/sem_destroy.3 b/lib/libc/gen/sem_destroy.3 index 0d0df30fea866..f488b4efe08d2 100644 --- a/lib/libc/gen/sem_destroy.3 +++ b/lib/libc/gen/sem_destroy.3 @@ -26,6 +26,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD$ +.\" .Dd February 15, 2000 .Dt SEM_DESTROY 3 .Os @@ -47,7 +48,7 @@ After a successful call to .Fn sem_destroy , .Fa sem is unusable until re-initialized by another call to -.Fn sem_init . +.Xr sem_init 3 . .Sh RETURN VALUES .Rv -std sem_destroy .Sh ERRORS @@ -56,7 +57,9 @@ The function will fail if: .Bl -tag -width Er .It Bq Er EINVAL +The .Fa sem +argument points to an invalid semaphore. .It Bq Er EBUSY There are currently threads blocked on the semaphore that @@ -72,11 +75,12 @@ The function conforms to .St -p1003.1-96 . .Pp -POSIX does not define the behavior of +.Tn POSIX +does not define the behavior of .Fn sem_destroy if called while there are threads blocked on .Fa sem , -but this implementation is guaranteed to return -1 and set +but this implementation is guaranteed to return \-1 and set .Va errno to .Er EBUSY |