mirror of https://github.com/mkerrisk/man-pages
pthread_attr_setstacksize.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in pthread_attr_getstacksize(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_attr_getstacksize sysdeps/htl/pthread.h:192: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict __attr, size_t *__restrict __stacksize) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:346: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict __attr, size_t *__restrict __stacksize) __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
4517c06e47
commit
07bd2112f2
|
@ -33,8 +33,8 @@ attribute in thread attributes object
|
|||
.PP
|
||||
.BI "int pthread_attr_setstacksize(pthread_attr_t *" attr \
|
||||
", size_t " stacksize );
|
||||
.BI "int pthread_attr_getstacksize(const pthread_attr_t *" attr ,
|
||||
.BI " size_t *" stacksize );
|
||||
.BI "int pthread_attr_getstacksize(const pthread_attr_t *restrict " attr ,
|
||||
.BI " size_t *restrict " stacksize );
|
||||
.PP
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
.fi
|
||||
|
|
Loading…
Reference in New Issue