pthread_attr_setstack.3: SYNOPSIS: Use 'restrict' in prototypes

Both POSIX and glibc use 'restrict' in pthread_attr_setstack().
Let's use it here too.

.../glibc$ grep_glibc_prototype pthread_attr_setstack
sysdeps/htl/pthread.h:158:
extern int pthread_attr_setstack (pthread_attr_t *__attr,
				  void *__stackaddr,
				  size_t __stacksize)
	__THROW __nonnull ((1));
sysdeps/nptl/pthread.h:367:
extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
				  size_t __stacksize) __THROW __nonnull ((1));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-03-08 19:53:14 +01:00 committed by Michael Kerrisk
parent 07bd2112f2
commit 5a00663af2
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ attributes in thread attributes object
.PP
.BI "int pthread_attr_setstack(pthread_attr_t *" attr ,
.BI " void *" stackaddr ", size_t " stacksize );
.BI "int pthread_attr_getstack(const pthread_attr_t *" attr ,
.BI " void **" stackaddr ", size_t *" stacksize );
.BI "int pthread_attr_getstack(const pthread_attr_t *restrict " attr ,
.BI " void **restrict " stackaddr ,
.BI " size_t *restrict " stacksize );
.PP
Compile and link with \fI\-pthread\fP.
.fi