Module Name:    src
Committed By:   riastradh
Date:           Mon Feb 10 20:40:55 UTC 2025

Modified Files:
        src/lib/libpthread: cnd.3 mtx.3 pthread_barrierattr.3
            pthread_condattr.3 pthread_mutex.3 pthread_mutexattr.3
            pthread_rwlockattr.3

Log Message:
libpthread: Say `restrict', not `__restrict', in man pages.

The private macro __restrict exists only to make .h files work with
legacy C/C++ versions without support for the `restrict' keyword.
It's only distracting to use in a man page.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libpthread/cnd.3 src/lib/libpthread/mtx.3
cvs rdiff -u -r1.13 -r1.14 src/lib/libpthread/pthread_barrierattr.3
cvs rdiff -u -r1.12 -r1.13 src/lib/libpthread/pthread_condattr.3
cvs rdiff -u -r1.11 -r1.12 src/lib/libpthread/pthread_mutex.3
cvs rdiff -u -r1.14 -r1.15 src/lib/libpthread/pthread_mutexattr.3
cvs rdiff -u -r1.10 -r1.11 src/lib/libpthread/pthread_rwlockattr.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpthread/cnd.3
diff -u src/lib/libpthread/cnd.3:1.2 src/lib/libpthread/cnd.3:1.3
--- src/lib/libpthread/cnd.3:1.2	Sat Apr 27 10:57:11 2019
+++ src/lib/libpthread/cnd.3	Mon Feb 10 20:40:55 2025
@@ -1,4 +1,4 @@
-.\"	$NetBSD: cnd.3,v 1.2 2019/04/27 10:57:11 wiz Exp $
+.\"	$NetBSD: cnd.3,v 1.3 2025/02/10 20:40:55 riastradh Exp $
 .\"
 .\" Copyright (c) 2016 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -47,9 +47,9 @@
 .Fn cnd_signal "cnd_t *cond"
 .Ft int
 .Fo cnd_timedwait
-.Fa "cnd_t * __restrict cond"
-.Fa "mtx_t * __restrict mtx"
-.Fa "const struct timespec * __restrict ts"
+.Fa "cnd_t * restrict cond"
+.Fa "mtx_t * restrict mtx"
+.Fa "const struct timespec * restrict ts"
 .Fc
 .Ft int
 .Fn cnd_wait "cnd_t *cond" "mtx_t *mtx"
Index: src/lib/libpthread/mtx.3
diff -u src/lib/libpthread/mtx.3:1.2 src/lib/libpthread/mtx.3:1.3
--- src/lib/libpthread/mtx.3:1.2	Sat Apr 27 10:57:11 2019
+++ src/lib/libpthread/mtx.3	Mon Feb 10 20:40:55 2025
@@ -1,4 +1,4 @@
-.\"	$NetBSD: mtx.3,v 1.2 2019/04/27 10:57:11 wiz Exp $
+.\"	$NetBSD: mtx.3,v 1.3 2025/02/10 20:40:55 riastradh Exp $
 .\"
 .\" Copyright (c) 2016 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -44,7 +44,7 @@
 .Ft int
 .Fn mtx_lock "mtx_t *mtx"
 .Ft int
-.Fn mtx_timedlock "mtx_t *__restrict mtx" "const struct timespec *__restrict ts"
+.Fn mtx_timedlock "mtx_t * restrict mtx" "const struct timespec * restrict ts"
 .Ft int
 .Fn mtx_trylock "mtx_t *mtx"
 .Ft int

Index: src/lib/libpthread/pthread_barrierattr.3
diff -u src/lib/libpthread/pthread_barrierattr.3:1.13 src/lib/libpthread/pthread_barrierattr.3:1.14
--- src/lib/libpthread/pthread_barrierattr.3:1.13	Sun Oct 22 18:37:01 2017
+++ src/lib/libpthread/pthread_barrierattr.3	Mon Feb 10 20:40:55 2025
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_barrierattr.3,v 1.13 2017/10/22 18:37:01 abhinav Exp $
+.\" $NetBSD: pthread_barrierattr.3,v 1.14 2025/02/10 20:40:55 riastradh Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -40,7 +40,7 @@
 .Ft int
 .Fn pthread_barrierattr_destroy "pthread_barrierattr_t *attr"
 .Ft int
-.Fn pthread_barrierattr_getpshared "const pthread_barrierattr_t * __restrict attr" "int * __restrict pshared"
+.Fn pthread_barrierattr_getpshared "const pthread_barrierattr_t * restrict attr" "int * restrict pshared"
 .Ft int
 .Fn pthread_barrierattr_setpshared "pthread_barrierattr_t * attr" "int pshared"
 .Sh DESCRIPTION

Index: src/lib/libpthread/pthread_condattr.3
diff -u src/lib/libpthread/pthread_condattr.3:1.12 src/lib/libpthread/pthread_condattr.3:1.13
--- src/lib/libpthread/pthread_condattr.3:1.12	Tue Mar 28 17:42:52 2017
+++ src/lib/libpthread/pthread_condattr.3	Mon Feb 10 20:40:55 2025
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_condattr.3,v 1.12 2017/03/28 17:42:52 maya Exp $
+.\" $NetBSD: pthread_condattr.3,v 1.13 2025/02/10 20:40:55 riastradh Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -67,14 +67,14 @@
 .Ft int
 .Fn pthread_condattr_init "pthread_condattr_t *attr"
 .Ft int
-.Fn pthread_condattr_getclock "const pthread_condattr_t *__restrict attr" \
-"clockid_t * __restrict clock_id"
+.Fn pthread_condattr_getclock "const pthread_condattr_t * restrict attr" \
+"clockid_t * restrict clock_id"
 .Ft int
 .Fn pthread_condattr_setclock "pthread_condattr_t *attr" "clockid_t clock"
 .Ft int
 .Fn pthread_condattr_destroy "pthread_condattr_t *attr"
 .Ft int
-.Fn pthread_condattr_getpshared "const pthread_condattr_t * __restrict attr" "int * __restrict pshared"
+.Fn pthread_condattr_getpshared "const pthread_condattr_t * restrict attr" "int * restrict pshared"
 .Ft int
 .Fn pshared_condattr_setpshared "pthread_condattr_t *attr" "int pshared"
 .Sh DESCRIPTION

Index: src/lib/libpthread/pthread_mutex.3
diff -u src/lib/libpthread/pthread_mutex.3:1.11 src/lib/libpthread/pthread_mutex.3:1.12
--- src/lib/libpthread/pthread_mutex.3:1.11	Fri Dec 27 09:45:26 2019
+++ src/lib/libpthread/pthread_mutex.3	Mon Feb 10 20:40:55 2025
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_mutex.3,v 1.11 2019/12/27 09:45:26 msaitoh Exp $
+.\" $NetBSD: pthread_mutex.3,v 1.12 2025/02/10 20:40:55 riastradh Exp $
 .\"
 .\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -84,12 +84,12 @@
 .Ft int
 .Fn pthread_mutex_unlock "pthread_mutex_t *mutex"
 .Ft int
-.Fn pthread_mutex_timedlock "pthread_mutex_t *__restrict mutex" "const struct timespec *__restrict timeout"
+.Fn pthread_mutex_timedlock "pthread_mutex_t * restrict mutex" "const struct timespec * restrict timeout"
 .Ft int
-.Fn pthread_mutex_getprioceiling "const pthread_mutex_t * __restrict mutex" "int * __restrict prioceiling"
+.Fn pthread_mutex_getprioceiling "const pthread_mutex_t * restrict mutex" "int * restrict prioceiling"
 .Ft int
-.Fn pthread_mutex_setprioceiling "pthread_mutex_t * __restrict mutex" \
-"int prioceiling" "int * __restrict old_ceiling"
+.Fn pthread_mutex_setprioceiling "pthread_mutex_t * restrict mutex" \
+"int prioceiling" "int * restrict old_ceiling"
 .\" ----------------------------------------------------------------------------
 .Sh DESCRIPTION
 The

Index: src/lib/libpthread/pthread_mutexattr.3
diff -u src/lib/libpthread/pthread_mutexattr.3:1.14 src/lib/libpthread/pthread_mutexattr.3:1.15
--- src/lib/libpthread/pthread_mutexattr.3:1.14	Thu Feb  2 10:48:22 2017
+++ src/lib/libpthread/pthread_mutexattr.3	Mon Feb 10 20:40:55 2025
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_mutexattr.3,v 1.14 2017/02/02 10:48:22 njoly Exp $
+.\" $NetBSD: pthread_mutexattr.3,v 1.15 2025/02/10 20:40:55 riastradh Exp $
 .\"
 .\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -92,7 +92,7 @@
 "pthread_mutexattr_t * restrict attr" "int * restrict type"
 .Ft int
 .Fn pthread_mutexattr_getpshared \
-"const pthread_mutexattr_t * __restrict attr" "int * __restrict pshared"
+"const pthread_mutexattr_t * restrict attr" "int * restrict pshared"
 .Ft int
 .Fn pthread_mutexattr_setpshared \
 "pthread_mutexattr_t * attr" "int pshared"

Index: src/lib/libpthread/pthread_rwlockattr.3
diff -u src/lib/libpthread/pthread_rwlockattr.3:1.10 src/lib/libpthread/pthread_rwlockattr.3:1.11
--- src/lib/libpthread/pthread_rwlockattr.3:1.10	Tue Jul  5 10:04:17 2016
+++ src/lib/libpthread/pthread_rwlockattr.3	Mon Feb 10 20:40:55 2025
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_rwlockattr.3,v 1.10 2016/07/05 10:04:17 wiz Exp $
+.\" $NetBSD: pthread_rwlockattr.3,v 1.11 2025/02/10 20:40:55 riastradh Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -66,7 +66,7 @@
 .Ft int
 .Fn pthread_rwlockattr_destroy "pthread_rwlockattr_t *attr"
 .Ft int
-.Fn pthread_rwlockattr_getpshared "const pthread_rwlockattr_t *__restrict attr" "int * __restrict pshared"
+.Fn pthread_rwlockattr_getpshared "const pthread_rwlockattr_t * restrict attr" "int * restrict pshared"
 .Ft int
 .Fn pthread_rwlockattr_setpshared "pthread_rwlockattr_t *attr" "int pshared"
 .Sh DESCRIPTION

Reply via email to