[11/23] pthread_setschedparam.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210308185331.242176-12-alx.manpages@gmail.com
State New
Headers show
Series
  • man3: SYNOPSIS: Use 'restrict' in prototypes (batch 4)
Related show

Commit Message

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 <alx.manpages@gmail.com>

---
 man3/pthread_setschedparam.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.30.1

Patch

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