Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2021 03:40:16 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0a6e5fc29b43 - main - pthread_mutexattr(3): document pthread_mutexattr_set/getpshared
Message-ID:  <202110050340.1953eGX3027278@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=0a6e5fc29b43778bd004f7754c730e41a9ce2675

commit 0a6e5fc29b43778bd004f7754c730e41a9ce2675
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-01 00:46:16 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-05 03:39:52 +0000

    pthread_mutexattr(3): document pthread_mutexattr_set/getpshared
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Differential revision:  https://reviews.freebsd.org/D32243
---
 share/man/man3/pthread_mutexattr.3 | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/share/man/man3/pthread_mutexattr.3 b/share/man/man3/pthread_mutexattr.3
index 1afde4302457..41f386804151 100644
--- a/share/man/man3/pthread_mutexattr.3
+++ b/share/man/man3/pthread_mutexattr.3
@@ -26,7 +26,7 @@
 .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\" $FreeBSD$
-.Dd August 17, 2018
+.Dd October 1, 2021
 .Dt PTHREAD_MUTEXATTR 3
 .Os
 .Sh NAME
@@ -36,6 +36,8 @@
 .Nm pthread_mutexattr_getprioceiling ,
 .Nm pthread_mutexattr_setprotocol ,
 .Nm pthread_mutexattr_getprotocol ,
+.Nm pthread_mutexattr_setpshared ,
+.Nm pthread_mutexattr_getpshared ,
 .Nm pthread_mutexattr_setrobust ,
 .Nm pthread_mutexattr_getrobust ,
 .Nm pthread_mutexattr_settype ,
@@ -64,6 +66,14 @@
 .Fa "const pthread_mutexattr_t *restrict attr" "int *restrict protocol"
 .Fc
 .Ft int
+.Fo pthread_mutexattr_setpshared
+.Fa "pthread_mutexattr_t *attr" "int shared"
+.Fc
+.Ft int
+.Fo pthread_mutexattr_getpshared
+.Fa "const pthread_mutexattr_t *attr" "int *shared"
+.Fc
+.Ft int
 .Fn pthread_mutexattr_setrobust "pthread_mutexattr_t *attr" "int robust"
 .Ft int
 .Fn pthread_mutexattr_getrobust "pthread_mutexattr_t *attr" "int *robust"
@@ -161,6 +171,26 @@ Invalid value for
 .El
 .Pp
 The
+.Fn pthread_mutexattr_setpshared
+function will fail if:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+Invalid value for
+.Fa attr ,
+or invalid value for
+.Fa shared .
+.El
+.Pp
+The
+.Fn pthread_mutexattr_getpshared
+function will fail if:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+Invalid value for
+.Fa attr .
+.El
+.Pp
+The
 .Fn pthread_mutexattr_settype
 function will fail if:
 .Bl -tag -width Er
@@ -214,6 +244,8 @@ The
 .Fn pthread_mutexattr_getprioceiling ,
 .Fn pthread_mutexattr_setprotocol ,
 .Fn pthread_mutexattr_getprotocol ,
+.Fn pthread_mutexattr_setpshared ,
+.Fn pthread_mutexattr_getpshared ,
 .Fn pthread_mutexattr_settype ,
 and
 .Fn pthread_mutexattr_gettype



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110050340.1953eGX3027278>