-.\" $OpenBSD: pthread_mutex_init.3,v 1.12 2013/06/05 03:44:50 tedu Exp $
+.\" $OpenBSD: pthread_mutex_init.3,v 1.13 2014/01/03 15:35:23 tedu Exp $
.\"
.\" Copyright (c) 1997 Brian Cully <shmit@kublai.com>
.\" All rights reserved.
.\"
.\" $FreeBSD: pthread_mutex_init.3,v 1.6 1999/08/28 00:03:07 peter Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: January 3 2014 $
.Dt PTHREAD_MUTEX_INIT 3
.Os
.Sh NAME
.Fa attr
is
.Dv NULL
-the default attributes are used.
+the default attributes are used, otherwise
+.Fa attr
+should be initialized by calling
+.Xr pthread_mutexattr_init 3 .
+.Pp
+A mutex may also be initialized by assignment with the macro
+PTHREAD_MUTEX_INITIALIZER.
.Sh RETURN VALUES
If successful,
.Fn pthread_mutex_init
The process cannot allocate enough memory to create another mutex.
.El
.Sh SEE ALSO
+.Xr pthread_mutexattr_init 3 ,
.Xr pthread_mutex_destroy 3 ,
.Xr pthread_mutex_lock 3 ,
.Xr pthread_mutex_unlock 3