rwlock(3c): Formatting issues and typos
The first occurrence of "rwlock_init()" in the following paragraph in the rwlock(3c) man page is strange:
Additionally, readers/writer locks must be initialized prior to use. rwlock_init() The readers/writer lock pointed to by rwlp is initialized by rwlock_init(). A readers/writer lock is capable of having several types of behavior, which is specified by type. arg is currently not used, although a future type may define new behavior parameters by way of arg.
In addition, "type" is sometimes italicized and sometimes bold in the man page. It should be always italic.
Updated by Marcel Telka almost 6 years ago
Extra space before "arg" should be removed here:
int rwlock_init(rwlock_t *rwlp, int type, void * arg);
rw_tryrdlock() trys to get a read lock on the readers/writer lock pointed to by rwlp. If the readers/writer lock is locked for writing, it returns an error; otherwise, the read lock is acquired. ... rw_trywrlock() trys to get a write lock on the readers/writer lock pointed to by rwlp. If the readers/writer lock is currently locked for reading or writ- ing, it returns an error.