]> git.saurik.com Git - apple/libpthread.git/blobdiff - man/pthread_mutex_destroy.3
libpthread-218.1.3.tar.gz
[apple/libpthread.git] / man / pthread_mutex_destroy.3
index 17207f32e0cf3c9c5dcb479ddce72467b7c0216b..4a560c213482c734a7e8d05d26f7fce9f407aa7a 100644 (file)
@@ -25,7 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc_r/man/pthread_mutex_destroy.3,v 1.5.2.4 2001/08/17 15:42:51 ru Exp $
+.\" $FreeBSD$
 .\"
 .Dd July 29, 1998
 .Dt PTHREAD_MUTEX_DESTROY 3
 .\"
 .Dd July 29, 1998
 .Dt PTHREAD_MUTEX_DESTROY 3
 .Nm pthread_mutex_destroy
 .Nd free resources allocated for a mutex
 .Sh SYNOPSIS
 .Nm pthread_mutex_destroy
 .Nd free resources allocated for a mutex
 .Sh SYNOPSIS
-.Fd #include <pthread.h>
+.In pthread.h
 .Ft int
 .Ft int
-.Fo pthread_mutex_destroy
-.Fa "pthread_mutex_t *mutex"
-.Fc
+.Fn pthread_mutex_destroy "pthread_mutex_t *mutex"
 .Sh DESCRIPTION
 The
 .Fn pthread_mutex_destroy
 .Sh DESCRIPTION
 The
 .Fn pthread_mutex_destroy
@@ -47,19 +45,20 @@ function frees the resources allocated for
 .Sh RETURN VALUES
 If successful,
 .Fn pthread_mutex_destroy
 .Sh RETURN VALUES
 If successful,
 .Fn pthread_mutex_destroy
-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
 .Sh ERRORS
+The
 .Fn pthread_mutex_destroy
 .Fn pthread_mutex_destroy
-will fail if:
+function will fail if:
 .Bl -tag -width Er
 .Bl -tag -width Er
-.It Bq Er EBUSY
-.Fa Mutex
-is locked by a thread.
 .It Bq Er EINVAL
 The value specified by
 .Fa mutex
 is invalid.
 .It Bq Er EINVAL
 The value specified by
 .Fa mutex
 is invalid.
+.It Bq Er EBUSY
+.Fa Mutex
+is locked by another thread.
 .El
 .Sh SEE ALSO
 .Xr pthread_mutex_init 3 ,
 .El
 .Sh SEE ALSO
 .Xr pthread_mutex_init 3 ,
@@ -67,6 +66,7 @@ is invalid.
 .Xr pthread_mutex_trylock 3 ,
 .Xr pthread_mutex_unlock 3
 .Sh STANDARDS
 .Xr pthread_mutex_trylock 3 ,
 .Xr pthread_mutex_unlock 3
 .Sh STANDARDS
+The
 .Fn pthread_mutex_destroy
 .Fn pthread_mutex_destroy
-conforms to
+function conforms to
 .St -p1003.1-96 .
 .St -p1003.1-96 .