From: Alejandro Colomar Date: Mon, 8 Mar 2021 18:53:10 +0000 (+0100) Subject: pthread_attr_setschedpolicy.3: SYNOPSIS: Use 'restrict' in prototypes X-Git-Tag: man-pages-5.11~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0171b8a512f6040bd48fd8cf2897e97b2850efd;p=thirdparty%2Fman-pages.git pthread_attr_setschedpolicy.3: SYNOPSIS: Use 'restrict' in prototypes Both POSIX and glibc use 'restrict' in pthread_attr_getschedpolicy(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_attr_getschedpolicy sysdeps/htl/pthread.h:113: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict __attr, int *__restrict __policy) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:304: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict __attr, int *__restrict __policy) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- diff --git a/man3/pthread_attr_setschedpolicy.3 b/man3/pthread_attr_setschedpolicy.3 index 34fdc86316..e062fe6850 100644 --- a/man3/pthread_attr_setschedpolicy.3 +++ b/man3/pthread_attr_setschedpolicy.3 @@ -31,10 +31,9 @@ scheduling policy attribute in thread attributes object .nf .B #include .PP -.BI "int pthread_attr_setschedpolicy(pthread_attr_t *" attr \ -", int " policy ); -.BI "int pthread_attr_getschedpolicy(const pthread_attr_t *" attr , -.BI " int " *policy ); +.BI "int pthread_attr_setschedpolicy(pthread_attr_t *" attr ", int " policy ); +.BI "int pthread_attr_getschedpolicy(const pthread_attr_t *restrict " attr , +.BI " int *restrict " policy ); .PP Compile and link with \fI\-pthread\fP. .fi