mirror of https://github.com/mkerrisk/man-pages
pthread_attr_setscope.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in pthread_attr_getscope(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_attr_getscope sysdeps/htl/pthread.h:125: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, int *__restrict __contentionscope) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:324: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, int *__restrict __scope) __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
f0171b8a51
commit
c5144bd329
|
@ -31,10 +31,9 @@ attribute in thread attributes object
|
|||
.nf
|
||||
.B #include <pthread.h>
|
||||
.PP
|
||||
.BI "int pthread_attr_setscope(pthread_attr_t *" attr \
|
||||
", int " scope );
|
||||
.BI "int pthread_attr_getscope(const pthread_attr_t *" attr \
|
||||
", int *" scope );
|
||||
.BI "int pthread_attr_setscope(pthread_attr_t *" attr ", int " scope );
|
||||
.BI "int pthread_attr_getscope(const pthread_attr_t *restrict " attr ,
|
||||
.BI " int *restrict " scope );
|
||||
.PP
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
.fi
|
||||
|
|
Loading…
Reference in New Issue