Loading...
pthreads/pthread_rwlock_wrlock.3 Libc-583 Libc-391.2.3
--- Libc/Libc-583/pthreads/pthread_rwlock_wrlock.3
+++ Libc/Libc-391.2.3/pthreads/pthread_rwlock_wrlock.3
@@ -28,24 +28,20 @@
 .Dt PTHREAD_RWLOCK_WRLOCK 3
 .Os
 .Sh NAME
-.Nm pthread_rwlock_trywrlock ,
-.Nm pthread_rwlock_wrlock
+.Nm pthread_rwlock_wrlock ,
+.Nm pthread_rwlock_trywrlock
 .Nd acquire a read/write lock for writing
 .Sh SYNOPSIS
 .In pthread.h
 .Ft int
-.Fo pthread_rwlock_trywrlock
-.Fa "pthread_rwlock_t *rwlock"
-.Fc
+.Fn pthread_rwlock_wrlock "pthread_rwlock_t *lock"
 .Ft int
-.Fo pthread_rwlock_wrlock
-.Fa "pthread_rwlock_t *rwlock"
-.Fc
+.Fn pthread_rwlock_trywrlock "pthread_rwlock_t *lock"
 .Sh DESCRIPTION
 The
 .Fn pthread_rwlock_wrlock
 function blocks until a write lock can be acquired against
-.Fa rwlock .
+.Fa lock .
 The
 .Fn pthread_rwlock_trywrlock
 function performs the same action, but does not block if the lock
@@ -60,8 +56,8 @@
 .Fn pthread_rwlock_wrlock
 and
 .Fn pthread_rwlock_trywrlock
-functions will return zero.
-Otherwise, an error number will be returned  to indicate the error.
+functions will return zero.  Otherwise an error number will be returned
+to indicate the error.
 .Sh SEE ALSO
 .Xr pthread_rwlock_trywrlock 3 ,
 .Xr pthread_rwlock_unlock 3 ,
@@ -93,7 +89,7 @@
 or writing).
 .It Bq Er EINVAL
 The value specified by
-.Fa rwlock
+.Fa lock
 is invalid.
 .It Bq Er ENOMEM
 Insufficient memory exists to initialize the lock (applies to