Loading...
--- Libc/Libc-583/pthreads/pthread_mutex_unlock.3
+++ Libc/Libc-262.3.2/pthreads/pthread_mutex_unlock.3
@@ -36,9 +36,7 @@
.Sh SYNOPSIS
.Fd #include <pthread.h>
.Ft int
-.Fo pthread_mutex_unlock
-.Fa "pthread_mutex_t *mutex"
-.Fc
+.Fn pthread_mutex_unlock "pthread_mutex_t *mutex"
.Sh DESCRIPTION
If the current thread holds the lock on
.Fa mutex ,
@@ -46,20 +44,13 @@
.Fn pthread_mutex_unlock
function unlocks
.Fa mutex .
-.Pp
-Calling
-.Fn pthread_mutex_unlock
-with a
-.Fa mutex
-that the calling thread does not hold will result
-in undefined behavior.
.Sh RETURN VALUES
If successful,
.Fn pthread_mutex_unlock
-will return zero.
-Otherwise, an error number will be returned to indicate the error.
+will return zero, otherwise an error number will be returned to
+indicate the error.
.Sh ERRORS
-.Fn pthread_mutex_unlock
+.Fn pthread_mutex_trylock
will fail if:
.Bl -tag -width Er
.It Bq Er EINVAL