Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>

*** 61,71 **** .nf \fBint\fR \fBpthread_rwlock_tryrdlock\fR(\fBpthread_rwlock_t\fR \fI*rwlock\fR); .fi .SH DESCRIPTION - .sp .LP The \fBpthread_rwlock_rdlock()\fR function applies a read lock to the read-write lock referenced by \fIrwlock\fR. The calling thread acquires the read lock if a writer does not hold the lock and there are no writers blocked on the lock. --- 61,70 ----
*** 91,101 **** .LP The \fBpthread_rwlock_tryrdlock()\fR function applies a read lock like the \fBpthread_rwlock_rdlock()\fR function, with the exception that the function fails if the equivalent \fBpthread_rwlock_rdlock()\fR call would have blocked the calling thread. In no case will the \fBpthread_rwlock_tryrdlock()\fR ! function ever bloc. It always either acquires the lock or fails and returns immediately. .sp .LP Results are undefined if any of these functions are called with an uninitialized read-write lock. --- 90,100 ---- .LP The \fBpthread_rwlock_tryrdlock()\fR function applies a read lock like the \fBpthread_rwlock_rdlock()\fR function, with the exception that the function fails if the equivalent \fBpthread_rwlock_rdlock()\fR call would have blocked the calling thread. In no case will the \fBpthread_rwlock_tryrdlock()\fR ! function ever block. It always either acquires the lock or fails and returns immediately. .sp .LP Results are undefined if any of these functions are called with an uninitialized read-write lock.
*** 103,123 **** .LP If a signal is delivered to a thread waiting for a read-write lock for reading, upon return from the signal handler the thread resumes waiting for the read-write lock for reading as if it was not interrupted. .SH RETURN VALUES - .sp .LP If successful, the \fBpthread_rwlock_rdlock()\fR function returns \fB0\fR. Otherwise, an error number is returned to indicate the error. .sp .LP The \fBpthread_rwlock_tryrdlock()\fR function returns \fB0\fR if the lock for reading on the read-write lock object referenced by \fIrwlock\fR is acquired. Otherwise an error number is returned to indicate the error. .SH ERRORS - .sp .LP The \fBpthread_rwlock_rdlock()\fR and \fBpthread_rwlock_tryrdlock()\fR functions will fail if: .sp .ne 2 --- 102,120 ----
*** 153,163 **** The read-write lock could not be acquired for reading because a writer holds the lock or a writer with the appropriate priority was blocked on it. .RE .SH ATTRIBUTES - .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp --- 150,159 ----
*** 171,180 **** _ MT-Level MT-Safe .TE .SH SEE ALSO - .sp .LP \fBpthread_rwlock_init\fR(3C), \fBpthread_rwlock_wrlock\fR(3C), \fBpthread_rwlockattr_init\fR(3C), \fBpthread_rwlock_unlock\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) --- 167,175 ----