mirror of https://github.com/mkerrisk/man-pages
pthread_mutexattr_getpshared.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in pthread_mutexattr_getpshared(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_mutexattr_getpshared sysdeps/htl/pthread.h:368: extern int pthread_mutexattr_getpshared(const pthread_mutexattr_t *__restrict __attr, int *__restrict __pshared) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:830: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * __restrict __attr, int *__restrict __pshared) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
71f5a50a03
commit
26f78eec84
|
@ -30,10 +30,11 @@ process-shared mutex attribute
|
|||
.nf
|
||||
.B #include <pthread.h>
|
||||
.PP
|
||||
.BI "int pthread_mutexattr_getpshared(const pthread_mutexattr_t *" attr ,
|
||||
.BI " int *" pshared );
|
||||
.BI "int pthread_mutexattr_getpshared("
|
||||
.BI " const pthread_mutexattr_t *restrict " attr ,
|
||||
.BI " int *restrict " pshared );
|
||||
.BI "int pthread_mutexattr_setpshared(pthread_mutexattr_t *" attr ,
|
||||
.BI " int " pshared );
|
||||
.BI " int " pshared );
|
||||
.fi
|
||||
.PP
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
Loading…
Reference in New Issue