From 631e4e3abeab9e3586a0a4d6cd21e8e6c8025fd8 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 31 May 2016 21:16:34 +0000 Subject: [PATCH] Remove mentions that PTHREAD_PROCESS_SHARED is not supported from man pages. Also add support for process-shared synchronization objects to the HISTORY sections where they already exist. --- share/man/man3/pthread_barrierattr.3 | 17 +++-------------- share/man/man3/pthread_condattr.3 | 14 +------------- share/man/man3/pthread_rwlock_init.3 | 4 +--- share/man/man3/pthread_rwlockattr_setpshared.3 | 8 +++----- share/man/man3/pthread_spin_init.3 | 17 +++-------------- 5 files changed, 11 insertions(+), 49 deletions(-) diff --git a/share/man/man3/pthread_barrierattr.3 b/share/man/man3/pthread_barrierattr.3 index 2920f67e3910..bbf37d90cad5 100644 --- a/share/man/man3/pthread_barrierattr.3 +++ b/share/man/man3/pthread_barrierattr.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 19, 2004 +.Dd May 31, 2016 .Dt PTHREAD_BARRIERATTR 3 .Os .Sh NAME @@ -131,16 +131,5 @@ and in .Lb libthr in .Fx 5.3 . -.Sh BUGS -The implementation of -barriers -does not fully conform to -.St -p1003.2 -because the process-shared attribute is ignored in -.Lb libthr ; -if any value other than -.Dv PTHREAD_PROCESS_PRIVATE -is specified in a call to -.Fn pthread_barrierattr_setpshared , -it will return -.Er EINVAL . +Support for process-shared barriers appeared in +.Fx 11.0 . diff --git a/share/man/man3/pthread_condattr.3 b/share/man/man3/pthread_condattr.3 index a26b6ec7b722..f72fd25f68e5 100644 --- a/share/man/man3/pthread_condattr.3 +++ b/share/man/man3/pthread_condattr.3 @@ -26,7 +26,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD$ -.Dd May 9, 2010 +.Dd May 31, 2016 .Dt PTHREAD_CONDATTR 3 .Os .Sh NAME @@ -160,15 +160,3 @@ and .Fn pthread_condattr_destroy functions conform to .St -p1003.1-96 -.Sh BUGS -The implementation of -condition variables -does not fully conform to -.St -p1003.2 -because the process-shared attribute is ignored; -if any value other than -.Dv PTHREAD_PROCESS_PRIVATE -is specified in a call to -.Fn pthread_condattr_setpshared , -it will return -.Er EINVAL . diff --git a/share/man/man3/pthread_rwlock_init.3 b/share/man/man3/pthread_rwlock_init.3 index 2617c436bc2d..1b0023c59ba2 100644 --- a/share/man/man3/pthread_rwlock_init.3 +++ b/share/man/man3/pthread_rwlock_init.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 4, 1998 +.Dd May 31, 2016 .Dt PTHREAD_RWLOCK_INIT 3 .Os .Sh NAME @@ -98,5 +98,3 @@ The .Fn pthread_rwlock_init function first appeared in .Fx 3.0 . -.Sh BUGS -The PTHREAD_PROCESS_SHARED attribute is not supported. diff --git a/share/man/man3/pthread_rwlockattr_setpshared.3 b/share/man/man3/pthread_rwlockattr_setpshared.3 index ccfe8862ffd5..bf2ddac0285a 100644 --- a/share/man/man3/pthread_rwlockattr_setpshared.3 +++ b/share/man/man3/pthread_rwlockattr_setpshared.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 4, 1998 +.Dd May 31, 2016 .Dt PTHREAD_RWLOCKATTR_SETPSHARED 3 .Os .Sh NAME @@ -88,7 +88,5 @@ The .Fn pthread_rwlockattr_setpshared function first appeared in .Fx 3.0 . -.Sh BUGS -The -.Dv PTHREAD_PROCESS_SHARED -attribute is not supported. +Support for process-shared read/write locks appeared in +.Fx 11.0 . diff --git a/share/man/man3/pthread_spin_init.3 b/share/man/man3/pthread_spin_init.3 index 948c16d8076c..3ef67add5248 100644 --- a/share/man/man3/pthread_spin_init.3 +++ b/share/man/man3/pthread_spin_init.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 22, 2004 +.Dd May 31, 2016 .Dt PTHREAD_SPIN_INIT 3 .Os .Sh NAME @@ -121,16 +121,5 @@ and in .Lb libthr in .Fx 5.3 . -.Sh BUGS -The implementation of -.Fn pthread_spin_init -does not fully conform to -.St -p1003.2 -because the -.Fa pshared -argument is ignored in -.Lb libthr ; -if any value other than -.Dv PTHREAD_PROCESS_PRIVATE -is specified, it returns -.Er EINVAL . +Support for process-shared spinlocks appeared in +.Fx 11.0 .