From 4beb303a630d3606e90e42d372ec74d28eeafd03 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 8 Mar 2021 19:53:20 +0100 Subject: [PATCH] pthread_setschedparam.3: SYNOPSIS: Use 'restrict' in prototypes Both POSIX and glibc use 'restrict' in pthread_getschedparam(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_getschedparam sysdeps/htl/pthread.h:882: extern int pthread_getschedparam (pthread_t __thr, int *__restrict __policy, struct sched_param *__restrict __param) __THROW __nonnull ((2, 3)); sysdeps/nptl/pthread.h:426: extern int pthread_getschedparam (pthread_t __target_thread, int *__restrict __policy, struct sched_param *__restrict __param) __THROW __nonnull ((2, 3)); .../glibc$ Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man3/pthread_setschedparam.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man3/pthread_setschedparam.3 b/man3/pthread_setschedparam.3 index b3ec5009c..d96d911d9 100644 --- a/man3/pthread_setschedparam.3 +++ b/man3/pthread_setschedparam.3 @@ -33,8 +33,8 @@ scheduling policy and parameters of a thread .PP .BI "int pthread_setschedparam(pthread_t " thread ", int " policy , .BI " const struct sched_param *" param ); -.BI "int pthread_getschedparam(pthread_t " thread ", int *" policy , -.BI " struct sched_param *" param ); +.BI "int pthread_getschedparam(pthread_t " thread ", int *restrict " policy , +.BI " struct sched_param *restrict " param ); .PP Compile and link with \fI\-pthread\fP. .fi