diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-08 19:53:19 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-14 21:29:13 +0100 |
| commit | 9ab24a89a3006bdfe46f04e035f3150fe3936bdc (patch) | |
| tree | 86f8d8d7aede703985f8a45a789911bc2de20afb /man3 | |
| parent | 26f78eec8418e49117977753efa69779e5a2bd3a (diff) | |
| download | man-pages-9ab24a89a3006bdfe46f04e035f3150fe3936bdc.tar.gz | |
pthread_rwlockattr_setkind_np.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' in pthread_rwlockattr_getkind_np().
Let's use it here too.
.../glibc$ grep_glibc_prototype pthread_rwlockattr_getkind_np
sysdeps/htl/pthread.h:633:
extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t *
__restrict __attr,
int *__restrict __pref)
__THROW __nonnull ((1, 2));
sysdeps/nptl/pthread.h:983:
extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t *
__restrict __attr,
int *__restrict __pref)
__THROW __nonnull ((1, 2));
.../glibc$
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/pthread_rwlockattr_setkind_np.3 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/man3/pthread_rwlockattr_setkind_np.3 b/man3/pthread_rwlockattr_setkind_np.3 index eb2dc19bfd..7ade3ba7d2 100644 --- a/man3/pthread_rwlockattr_setkind_np.3 +++ b/man3/pthread_rwlockattr_setkind_np.3 @@ -31,9 +31,10 @@ the read-write lock kind of the thread read-write lock attribute object .B #include <pthread.h> .PP .BI "int pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *" attr , -.BI " int " pref ); -.BI "int pthread_rwlockattr_getkind_np(const pthread_rwlockattr_t *" attr , -.BI " int *" pref ); +.BI " int " pref ); +.BI "int pthread_rwlockattr_getkind_np(" +.BI " const pthread_rwlockattr_t *restrict " attr , +.BI " int *restrict " pref ); .PP Compile and link with \fI\-pthread\fP. .PP |
