aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-01-14 21:44:26 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-01-14 21:44:26 +0000
commitec7452f103d56cccf279cec74a22025f980bbda5 (patch)
treeb3a28e39428aba8757379f99bb6e4ede75322ef0 /share
parent5df3ca789cc76dbb60cafd8eaae720e2a915d114 (diff)
Have a single set of POSIX threads man pages. The LIBRARY section
of each manpage lists libraries that have corresponding interfaces implemented. Prodded by: threads Reviewed by: deischen
Notes
Notes: svn path=/head/; revision=124535
Diffstat (limited to 'share')
-rw-r--r--share/man/man3/Makefile107
-rw-r--r--share/man/man3/pthread_attr.31
-rw-r--r--share/man/man3/pthread_attr_get_np.31
-rw-r--r--share/man/man3/pthread_attr_setcreatesuspend_np.31
-rw-r--r--share/man/man3/pthread_cancel.31
-rw-r--r--share/man/man3/pthread_cleanup_pop.31
-rw-r--r--share/man/man3/pthread_cleanup_push.31
-rw-r--r--share/man/man3/pthread_cond_broadcast.31
-rw-r--r--share/man/man3/pthread_cond_destroy.31
-rw-r--r--share/man/man3/pthread_cond_init.31
-rw-r--r--share/man/man3/pthread_cond_signal.31
-rw-r--r--share/man/man3/pthread_cond_timedwait.31
-rw-r--r--share/man/man3/pthread_cond_wait.31
-rw-r--r--share/man/man3/pthread_condattr.31
-rw-r--r--share/man/man3/pthread_create.31
-rw-r--r--share/man/man3/pthread_detach.31
-rw-r--r--share/man/man3/pthread_equal.31
-rw-r--r--share/man/man3/pthread_exit.31
-rw-r--r--share/man/man3/pthread_getconcurrency.31
-rw-r--r--share/man/man3/pthread_getspecific.31
-rw-r--r--share/man/man3/pthread_join.31
-rw-r--r--share/man/man3/pthread_key_create.31
-rw-r--r--share/man/man3/pthread_key_delete.31
-rw-r--r--share/man/man3/pthread_kill.31
-rw-r--r--share/man/man3/pthread_main_np.31
-rw-r--r--share/man/man3/pthread_multi_np.31
-rw-r--r--share/man/man3/pthread_mutex_destroy.31
-rw-r--r--share/man/man3/pthread_mutex_init.31
-rw-r--r--share/man/man3/pthread_mutex_lock.31
-rw-r--r--share/man/man3/pthread_mutex_trylock.31
-rw-r--r--share/man/man3/pthread_mutex_unlock.31
-rw-r--r--share/man/man3/pthread_mutexattr.31
-rw-r--r--share/man/man3/pthread_mutexattr_getkind_np.31
-rw-r--r--share/man/man3/pthread_once.31
-rw-r--r--share/man/man3/pthread_resume_all_np.31
-rw-r--r--share/man/man3/pthread_resume_np.31
-rw-r--r--share/man/man3/pthread_rwlock_destroy.31
-rw-r--r--share/man/man3/pthread_rwlock_init.31
-rw-r--r--share/man/man3/pthread_rwlock_rdlock.31
-rw-r--r--share/man/man3/pthread_rwlock_unlock.31
-rw-r--r--share/man/man3/pthread_rwlock_wrlock.31
-rw-r--r--share/man/man3/pthread_rwlockattr_destroy.31
-rw-r--r--share/man/man3/pthread_rwlockattr_getpshared.31
-rw-r--r--share/man/man3/pthread_rwlockattr_init.31
-rw-r--r--share/man/man3/pthread_rwlockattr_setpshared.31
-rw-r--r--share/man/man3/pthread_schedparam.31
-rw-r--r--share/man/man3/pthread_self.31
-rw-r--r--share/man/man3/pthread_set_name_np.31
-rw-r--r--share/man/man3/pthread_setspecific.31
-rw-r--r--share/man/man3/pthread_sigmask.31
-rw-r--r--share/man/man3/pthread_suspend_all_np.31
-rw-r--r--share/man/man3/pthread_suspend_np.31
-rw-r--r--share/man/man3/pthread_testcancel.31
53 files changed, 154 insertions, 5 deletions
diff --git a/share/man/man3/Makefile b/share/man/man3/Makefile
index eb3b5833b418..8af8e822f344 100644
--- a/share/man/man3/Makefile
+++ b/share/man/man3/Makefile
@@ -1,13 +1,9 @@
# @(#)Makefile 8.2 (Berkeley) 12/13/93
# $FreeBSD$
-MAN= assert.3 bitstring.3 end.3 fpgetround.3 intro.3 pthread.3 queue.3 \
+MAN= assert.3 bitstring.3 end.3 fpgetround.3 intro.3 queue.3 \
stdarg.3 sysexits.3 timeradd.3 tree.3
-.ifndef NOLIBC_R || NOLIBPTHREAD || NOLIBTHR
-MAN+= pthread_mutex_timedlock.3
-.endif
-
MLINKS+=bitstring.3 bit_alloc.3 bitstring.3 bit_clear.3 \
bitstring.3 bit_decl.3 bitstring.3 bit_ffc.3 bitstring.3 bit_ffs.3 \
bitstring.3 bit_nclear.3 bitstring.3 bit_nset.3 bitstring.3 bit_set.3 \
@@ -117,4 +113,105 @@ MLINKS+=tree.3 RB_INIT.3
MLINKS+=tree.3 RB_INSERT.3
MLINKS+=tree.3 RB_REMOVE.3
+.ifndef NOLIBC_R || NOLIBPTHREAD || NOLIBTHR
+
+MAN+= pthread.3 \
+ pthread_attr.3 \
+ pthread_attr_get_np.3 \
+ pthread_attr_setcreatesuspend_np.3 \
+ pthread_cancel.3 \
+ pthread_cleanup_pop.3 \
+ pthread_cleanup_push.3 \
+ pthread_getconcurrency.3 \
+ pthread_condattr.3 \
+ pthread_cond_broadcast.3 \
+ pthread_cond_destroy.3 \
+ pthread_cond_init.3 \
+ pthread_cond_signal.3 \
+ pthread_cond_timedwait.3 \
+ pthread_cond_wait.3 \
+ pthread_create.3 \
+ pthread_detach.3 \
+ pthread_equal.3 \
+ pthread_exit.3 \
+ pthread_getspecific.3 \
+ pthread_join.3 \
+ pthread_key_create.3 \
+ pthread_key_delete.3 \
+ pthread_kill.3 \
+ pthread_main_np.3 \
+ pthread_multi_np.3 \
+ pthread_mutexattr.3 \
+ pthread_mutexattr_getkind_np.3 \
+ pthread_mutex_destroy.3 \
+ pthread_mutex_init.3 \
+ pthread_mutex_lock.3 \
+ pthread_mutex_timedlock.3 \
+ pthread_mutex_trylock.3 \
+ pthread_mutex_unlock.3 \
+ pthread_once.3 \
+ pthread_resume_all_np.3 \
+ pthread_resume_np.3 \
+ pthread_rwlock_destroy.3 \
+ pthread_rwlock_init.3 \
+ pthread_rwlock_rdlock.3 \
+ pthread_rwlock_unlock.3 \
+ pthread_rwlock_wrlock.3 \
+ pthread_rwlockattr_destroy.3 \
+ pthread_rwlockattr_getpshared.3 \
+ pthread_rwlockattr_init.3 \
+ pthread_rwlockattr_setpshared.3 \
+ pthread_schedparam.3 \
+ pthread_self.3 \
+ pthread_set_name_np.3 \
+ pthread_setspecific.3 \
+ pthread_sigmask.3 \
+ pthread_suspend_all_np.3 \
+ pthread_suspend_np.3 \
+ pthread_switch_add_np.3 \
+ pthread_testcancel.3
+
+MLINKS+=pthread_attr.3 pthread_attr_destroy.3 \
+ pthread_attr.3 pthread_attr_getdetachstate.3 \
+ pthread_attr.3 pthread_attr_getguardsize.3 \
+ pthread_attr.3 pthread_attr_getinheritsched.3 \
+ pthread_attr.3 pthread_attr_getschedparam.3 \
+ pthread_attr.3 pthread_attr_getschedpolicy.3 \
+ pthread_attr.3 pthread_attr_getscope.3 \
+ pthread_attr.3 pthread_attr_getstack.3 \
+ pthread_attr.3 pthread_attr_getstackaddr.3 \
+ pthread_attr.3 pthread_attr_getstacksize.3 \
+ pthread_attr.3 pthread_attr_init.3 \
+ pthread_attr.3 pthread_attr_setdetachstate.3 \
+ pthread_attr.3 pthread_attr_setguardsize.3 \
+ pthread_attr.3 pthread_attr_setinheritsched.3 \
+ pthread_attr.3 pthread_attr_setschedparam.3 \
+ pthread_attr.3 pthread_attr_setschedpolicy.3 \
+ pthread_attr.3 pthread_attr_setscope.3 \
+ pthread_attr.3 pthread_attr_setstack.3 \
+ pthread_attr.3 pthread_attr_setstackaddr.3 \
+ pthread_attr.3 pthread_attr_setstacksize.3
+MLINKS+=pthread_getconcurrency.3 pthread_setconcurrency.3
+MLINKS+=pthread_condattr.3 pthread_condattr_init.3 \
+ pthread_condattr.3 pthread_condattr_destroy.3
+MLINKS+=pthread_multi_np.3 pthread_single_np.3
+MLINKS+=pthread_mutexattr.3 pthread_mutexattr_init.3 \
+ pthread_mutexattr.3 pthread_mutexattr_destroy.3 \
+ pthread_mutexattr.3 pthread_mutexattr_getprioceiling.3 \
+ pthread_mutexattr.3 pthread_mutexattr_getprotocol.3 \
+ pthread_mutexattr.3 pthread_mutexattr_gettype.3 \
+ pthread_mutexattr.3 pthread_mutexattr_setprioceiling.3 \
+ pthread_mutexattr.3 pthread_mutexattr_setprotocol.3 \
+ pthread_mutexattr.3 pthread_mutexattr_settype.3
+MLINKS+=pthread_mutexattr_getkind_np.3 pthread_mutexattr_setkind_np.3
+MLINKS+=pthread_rwlock_rdlock.3 pthread_rwlock_tryrdlock.3
+MLINKS+=pthread_rwlock_wrlock.3 pthread_rwlock_trywrlock.3
+MLINKS+=pthread_schedparam.3 pthread_getschedparam.3 \
+ pthread_schedparam.3 pthread_setschedparam.3
+MLINKS+=pthread_switch_add_np.3 pthread_switch_delete_np.3
+MLINKS+=pthread_testcancel.3 pthread_setcancelstate.3 \
+ pthread_testcancel.3 pthread_setcanceltype.3
+
+.endif
+
.include <bsd.prog.mk>
diff --git a/share/man/man3/pthread_attr.3 b/share/man/man3/pthread_attr.3
index 37975421e1ad..be271546ab4e 100644
--- a/share/man/man3/pthread_attr.3
+++ b/share/man/man3/pthread_attr.3
@@ -53,6 +53,7 @@
.Nd thread attribute operations
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_attr_get_np.3 b/share/man/man3/pthread_attr_get_np.3
index 82e106566b02..438299f26d9a 100644
--- a/share/man/man3/pthread_attr_get_np.3
+++ b/share/man/man3/pthread_attr_get_np.3
@@ -32,6 +32,7 @@
.Nd get attributes of existent thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft int
diff --git a/share/man/man3/pthread_attr_setcreatesuspend_np.3 b/share/man/man3/pthread_attr_setcreatesuspend_np.3
index 70599055b574..570a04e6e3ab 100644
--- a/share/man/man3/pthread_attr_setcreatesuspend_np.3
+++ b/share/man/man3/pthread_attr_setcreatesuspend_np.3
@@ -32,6 +32,7 @@
.Nd prepare attribute for creattion of suspended thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft int
diff --git a/share/man/man3/pthread_cancel.3 b/share/man/man3/pthread_cancel.3
index 166dadc0a5c8..42aa2e8e41ed 100644
--- a/share/man/man3/pthread_cancel.3
+++ b/share/man/man3/pthread_cancel.3
@@ -7,6 +7,7 @@
.Nd cancel execution of a thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_cleanup_pop.3 b/share/man/man3/pthread_cleanup_pop.3
index a0cb1b628932..ee0205b03ca0 100644
--- a/share/man/man3/pthread_cleanup_pop.3
+++ b/share/man/man3/pthread_cleanup_pop.3
@@ -35,6 +35,7 @@
.Nd call the first cleanup routine
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft void
diff --git a/share/man/man3/pthread_cleanup_push.3 b/share/man/man3/pthread_cleanup_push.3
index 7d7f98682ad0..019241397166 100644
--- a/share/man/man3/pthread_cleanup_push.3
+++ b/share/man/man3/pthread_cleanup_push.3
@@ -35,6 +35,7 @@
.Nd add a cleanup function for thread exit
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft void
diff --git a/share/man/man3/pthread_cond_broadcast.3 b/share/man/man3/pthread_cond_broadcast.3
index 1c734f3663fe..bf8e0f919adc 100644
--- a/share/man/man3/pthread_cond_broadcast.3
+++ b/share/man/man3/pthread_cond_broadcast.3
@@ -35,6 +35,7 @@
.Nd unblock all threads waiting for a condition variable
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_cond_destroy.3 b/share/man/man3/pthread_cond_destroy.3
index 3b6b45218b3b..61eddf9d9171 100644
--- a/share/man/man3/pthread_cond_destroy.3
+++ b/share/man/man3/pthread_cond_destroy.3
@@ -35,6 +35,7 @@
.Nd destroy a condition variable
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_cond_init.3 b/share/man/man3/pthread_cond_init.3
index 255c039f077e..3ad94d5c4bd8 100644
--- a/share/man/man3/pthread_cond_init.3
+++ b/share/man/man3/pthread_cond_init.3
@@ -35,6 +35,7 @@
.Nd create a condition variable
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_cond_signal.3 b/share/man/man3/pthread_cond_signal.3
index 7c389ec5423c..50b5577ead92 100644
--- a/share/man/man3/pthread_cond_signal.3
+++ b/share/man/man3/pthread_cond_signal.3
@@ -35,6 +35,7 @@
.Nd unblock a thread waiting for a condition variable
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_cond_timedwait.3 b/share/man/man3/pthread_cond_timedwait.3
index dd4479533890..c4f5fac49cd3 100644
--- a/share/man/man3/pthread_cond_timedwait.3
+++ b/share/man/man3/pthread_cond_timedwait.3
@@ -35,6 +35,7 @@
.Nd "wait on a condition variable for a specific amount of time"
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_cond_wait.3 b/share/man/man3/pthread_cond_wait.3
index 02e2f81ab377..502db7feba4a 100644
--- a/share/man/man3/pthread_cond_wait.3
+++ b/share/man/man3/pthread_cond_wait.3
@@ -35,6 +35,7 @@
.Nd wait on a condition variable
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_condattr.3 b/share/man/man3/pthread_condattr.3
index ac5ba5dccb58..2f3b8126226b 100644
--- a/share/man/man3/pthread_condattr.3
+++ b/share/man/man3/pthread_condattr.3
@@ -35,6 +35,7 @@
.Nd condition attribute operations
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_create.3 b/share/man/man3/pthread_create.3
index 32f1875bda70..b33f36096a3c 100644
--- a/share/man/man3/pthread_create.3
+++ b/share/man/man3/pthread_create.3
@@ -38,6 +38,7 @@
.Nd create a new thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_detach.3 b/share/man/man3/pthread_detach.3
index 55dd222ae3c4..f2f08d44167a 100644
--- a/share/man/man3/pthread_detach.3
+++ b/share/man/man3/pthread_detach.3
@@ -38,6 +38,7 @@
.Nd detach a thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_equal.3 b/share/man/man3/pthread_equal.3
index 9b10fad1e936..51912777abc1 100644
--- a/share/man/man3/pthread_equal.3
+++ b/share/man/man3/pthread_equal.3
@@ -38,6 +38,7 @@
.Nd compare thread IDs
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_exit.3 b/share/man/man3/pthread_exit.3
index 13983079bd16..49cf2468bfdb 100644
--- a/share/man/man3/pthread_exit.3
+++ b/share/man/man3/pthread_exit.3
@@ -38,6 +38,7 @@
.Nd terminate the calling thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft void
diff --git a/share/man/man3/pthread_getconcurrency.3 b/share/man/man3/pthread_getconcurrency.3
index d71599a2adf8..b14f82a62505 100644
--- a/share/man/man3/pthread_getconcurrency.3
+++ b/share/man/man3/pthread_getconcurrency.3
@@ -32,6 +32,7 @@
.Nd get or set level of concurrency
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_getspecific.3 b/share/man/man3/pthread_getspecific.3
index a7999e5a3b7e..9493bdf247d8 100644
--- a/share/man/man3/pthread_getspecific.3
+++ b/share/man/man3/pthread_getspecific.3
@@ -38,6 +38,7 @@
.Nd get a thread-specific data value
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft void *
diff --git a/share/man/man3/pthread_join.3 b/share/man/man3/pthread_join.3
index 513e291e1835..cb340021eb20 100644
--- a/share/man/man3/pthread_join.3
+++ b/share/man/man3/pthread_join.3
@@ -38,6 +38,7 @@
.Nd wait for thread termination
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_key_create.3 b/share/man/man3/pthread_key_create.3
index a2b0918bc2e0..b729cd209b54 100644
--- a/share/man/man3/pthread_key_create.3
+++ b/share/man/man3/pthread_key_create.3
@@ -38,6 +38,7 @@
.Nd thread-specific data key creation
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_key_delete.3 b/share/man/man3/pthread_key_delete.3
index c025857e9469..be1b90120e5f 100644
--- a/share/man/man3/pthread_key_delete.3
+++ b/share/man/man3/pthread_key_delete.3
@@ -38,6 +38,7 @@
.Nd delete a thread-specific data key
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_kill.3 b/share/man/man3/pthread_kill.3
index 94434bf13d35..4b0df4e48fa6 100644
--- a/share/man/man3/pthread_kill.3
+++ b/share/man/man3/pthread_kill.3
@@ -34,6 +34,7 @@
.Nd send a signal to a specified thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.In signal.h
diff --git a/share/man/man3/pthread_main_np.3 b/share/man/man3/pthread_main_np.3
index 9065b90c94fa..999868c4f0b7 100644
--- a/share/man/man3/pthread_main_np.3
+++ b/share/man/man3/pthread_main_np.3
@@ -32,6 +32,7 @@
.Nd identify the initial thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft int
diff --git a/share/man/man3/pthread_multi_np.3 b/share/man/man3/pthread_multi_np.3
index 5588c6cb75d7..b47c8ffac92f 100644
--- a/share/man/man3/pthread_multi_np.3
+++ b/share/man/man3/pthread_multi_np.3
@@ -33,6 +33,7 @@
.Nd "switch between multi- and single-threaded scheduling modes"
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft int
diff --git a/share/man/man3/pthread_mutex_destroy.3 b/share/man/man3/pthread_mutex_destroy.3
index 1ae514787956..fc98d73e92e1 100644
--- a/share/man/man3/pthread_mutex_destroy.3
+++ b/share/man/man3/pthread_mutex_destroy.3
@@ -35,6 +35,7 @@
.Nd free resources allocated for a mutex
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_mutex_init.3 b/share/man/man3/pthread_mutex_init.3
index 4f3e918fa37b..987b744ff940 100644
--- a/share/man/man3/pthread_mutex_init.3
+++ b/share/man/man3/pthread_mutex_init.3
@@ -35,6 +35,7 @@
.Nd create a mutex
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_mutex_lock.3 b/share/man/man3/pthread_mutex_lock.3
index 01628c87aa4a..69c40f8297e0 100644
--- a/share/man/man3/pthread_mutex_lock.3
+++ b/share/man/man3/pthread_mutex_lock.3
@@ -35,6 +35,7 @@
.Nd lock a mutex
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_mutex_trylock.3 b/share/man/man3/pthread_mutex_trylock.3
index a40bf970d920..d9e921a12d6e 100644
--- a/share/man/man3/pthread_mutex_trylock.3
+++ b/share/man/man3/pthread_mutex_trylock.3
@@ -35,6 +35,7 @@
.Nd attempt to lock a mutex without blocking
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_mutex_unlock.3 b/share/man/man3/pthread_mutex_unlock.3
index 8e05cce65b9e..6194e1574c56 100644
--- a/share/man/man3/pthread_mutex_unlock.3
+++ b/share/man/man3/pthread_mutex_unlock.3
@@ -35,6 +35,7 @@
.Nd unlock a mutex
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_mutexattr.3 b/share/man/man3/pthread_mutexattr.3
index 91fde140e8bb..df1d85dd579f 100644
--- a/share/man/man3/pthread_mutexattr.3
+++ b/share/man/man3/pthread_mutexattr.3
@@ -41,6 +41,7 @@
.Nd mutex attribute operations
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_mutexattr_getkind_np.3 b/share/man/man3/pthread_mutexattr_getkind_np.3
index 8bb673cd3ec3..d59c752ce97c 100644
--- a/share/man/man3/pthread_mutexattr_getkind_np.3
+++ b/share/man/man3/pthread_mutexattr_getkind_np.3
@@ -33,6 +33,7 @@
.Nd mutex attribute operations (legacy)
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft int
diff --git a/share/man/man3/pthread_once.3 b/share/man/man3/pthread_once.3
index 902f497888c1..180714d3edfb 100644
--- a/share/man/man3/pthread_once.3
+++ b/share/man/man3/pthread_once.3
@@ -38,6 +38,7 @@
.Nd dynamic package initialization
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Pp
diff --git a/share/man/man3/pthread_resume_all_np.3 b/share/man/man3/pthread_resume_all_np.3
index 90b2657090d1..22c549591eb7 100644
--- a/share/man/man3/pthread_resume_all_np.3
+++ b/share/man/man3/pthread_resume_all_np.3
@@ -32,6 +32,7 @@
.Nd resume all suspended threads
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft void
diff --git a/share/man/man3/pthread_resume_np.3 b/share/man/man3/pthread_resume_np.3
index 4a1a077bd7ff..4328af46e9ac 100644
--- a/share/man/man3/pthread_resume_np.3
+++ b/share/man/man3/pthread_resume_np.3
@@ -32,6 +32,7 @@
.Nd resume suspended thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft int
diff --git a/share/man/man3/pthread_rwlock_destroy.3 b/share/man/man3/pthread_rwlock_destroy.3
index b65e0656750a..9dddccdaec0a 100644
--- a/share/man/man3/pthread_rwlock_destroy.3
+++ b/share/man/man3/pthread_rwlock_destroy.3
@@ -32,6 +32,7 @@
.Nd destroy a read/write lock
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlock_init.3 b/share/man/man3/pthread_rwlock_init.3
index 0360987db1e3..5ea9455e22ff 100644
--- a/share/man/man3/pthread_rwlock_init.3
+++ b/share/man/man3/pthread_rwlock_init.3
@@ -32,6 +32,7 @@
.Nd initialize a read/write lock
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlock_rdlock.3 b/share/man/man3/pthread_rwlock_rdlock.3
index 88dbb17fa599..01e84f3acf43 100644
--- a/share/man/man3/pthread_rwlock_rdlock.3
+++ b/share/man/man3/pthread_rwlock_rdlock.3
@@ -33,6 +33,7 @@
.Nd acquire a read/write lock for reading
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlock_unlock.3 b/share/man/man3/pthread_rwlock_unlock.3
index 9391f75df7af..f67bda4296e0 100644
--- a/share/man/man3/pthread_rwlock_unlock.3
+++ b/share/man/man3/pthread_rwlock_unlock.3
@@ -32,6 +32,7 @@
.Nd release a read/write lock
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlock_wrlock.3 b/share/man/man3/pthread_rwlock_wrlock.3
index c74a46653a79..ae5d4b82bf17 100644
--- a/share/man/man3/pthread_rwlock_wrlock.3
+++ b/share/man/man3/pthread_rwlock_wrlock.3
@@ -33,6 +33,7 @@
.Nd acquire a read/write lock for writing
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlockattr_destroy.3 b/share/man/man3/pthread_rwlockattr_destroy.3
index 65c6d3f4317a..79e401385860 100644
--- a/share/man/man3/pthread_rwlockattr_destroy.3
+++ b/share/man/man3/pthread_rwlockattr_destroy.3
@@ -32,6 +32,7 @@
.Nd destroy a read/write lock
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlockattr_getpshared.3 b/share/man/man3/pthread_rwlockattr_getpshared.3
index 227f512906c0..4a17f058fc5e 100644
--- a/share/man/man3/pthread_rwlockattr_getpshared.3
+++ b/share/man/man3/pthread_rwlockattr_getpshared.3
@@ -32,6 +32,7 @@
.Nd get the process shared attribute
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlockattr_init.3 b/share/man/man3/pthread_rwlockattr_init.3
index 4ae4ecfda3e9..8a034359c873 100644
--- a/share/man/man3/pthread_rwlockattr_init.3
+++ b/share/man/man3/pthread_rwlockattr_init.3
@@ -32,6 +32,7 @@
.Nd initialize a read/write lock
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_rwlockattr_setpshared.3 b/share/man/man3/pthread_rwlockattr_setpshared.3
index f04bf9f919f3..830761289872 100644
--- a/share/man/man3/pthread_rwlockattr_setpshared.3
+++ b/share/man/man3/pthread_rwlockattr_setpshared.3
@@ -32,6 +32,7 @@
.Nd set the process shared attribute
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_schedparam.3 b/share/man/man3/pthread_schedparam.3
index ea7208781e84..48d16bb8efc4 100644
--- a/share/man/man3/pthread_schedparam.3
+++ b/share/man/man3/pthread_schedparam.3
@@ -35,6 +35,7 @@
.Nd thread scheduling parameter manipulation
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_self.3 b/share/man/man3/pthread_self.3
index db7dd29d46ec..7bd3977bfb0c 100644
--- a/share/man/man3/pthread_self.3
+++ b/share/man/man3/pthread_self.3
@@ -38,6 +38,7 @@
.Nd get the calling thread's ID
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft pthread_t
diff --git a/share/man/man3/pthread_set_name_np.3 b/share/man/man3/pthread_set_name_np.3
index a768e4c635ea..9f0412d570a0 100644
--- a/share/man/man3/pthread_set_name_np.3
+++ b/share/man/man3/pthread_set_name_np.3
@@ -32,6 +32,7 @@
.Nd set the thread name
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft void
diff --git a/share/man/man3/pthread_setspecific.3 b/share/man/man3/pthread_setspecific.3
index a2c47d0918bb..b3643cca82f5 100644
--- a/share/man/man3/pthread_setspecific.3
+++ b/share/man/man3/pthread_setspecific.3
@@ -38,6 +38,7 @@
.Nd set a thread-specific data value
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int
diff --git a/share/man/man3/pthread_sigmask.3 b/share/man/man3/pthread_sigmask.3
index df97ce1814b9..2047b4b4d3f7 100644
--- a/share/man/man3/pthread_sigmask.3
+++ b/share/man/man3/pthread_sigmask.3
@@ -34,6 +34,7 @@
.Nd examine and/or change a thread's signal mask
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.In signal.h
diff --git a/share/man/man3/pthread_suspend_all_np.3 b/share/man/man3/pthread_suspend_all_np.3
index 56c78f1d0ea7..98e8983daebc 100644
--- a/share/man/man3/pthread_suspend_all_np.3
+++ b/share/man/man3/pthread_suspend_all_np.3
@@ -32,6 +32,7 @@
.Nd suspend all active threads
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft void
diff --git a/share/man/man3/pthread_suspend_np.3 b/share/man/man3/pthread_suspend_np.3
index c8a9c8fc9f0d..2d6b72bce3b4 100644
--- a/share/man/man3/pthread_suspend_np.3
+++ b/share/man/man3/pthread_suspend_np.3
@@ -32,6 +32,7 @@
.Nd suspend a thread
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread_np.h
.Ft int
diff --git a/share/man/man3/pthread_testcancel.3 b/share/man/man3/pthread_testcancel.3
index de692948f75a..047b0e9a4f3d 100644
--- a/share/man/man3/pthread_testcancel.3
+++ b/share/man/man3/pthread_testcancel.3
@@ -9,6 +9,7 @@
.Nd set cancelability state
.Sh LIBRARY
.Lb libc_r
+.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
.Ft int