Hi ALex, On 5/10/21 9:39 AM, Alejandro Colomar wrote: > Both POSIX and glibc use 'restrict' in > pthread_attr_getinheritsched(). > Let's use it here too. > > .../glibc$ grep_glibc_prototype pthread_attr_getinheritsched > sysdeps/htl/pthread.h:90: > extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict __attr, > int *__restrict __inheritsched) > __THROW __nonnull ((1, 2)); > sysdeps/nptl/pthread.h:313: > extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict > __attr, int *__restrict __inherit) > __THROW __nonnull ((1, 2)); > .../glibc$ > > Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> Applied. Thanks! Cheers, Michael > --- > man3/pthread_attr_setinheritsched.3 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man3/pthread_attr_setinheritsched.3 b/man3/pthread_attr_setinheritsched.3 > index 4ac1e3e7f..b834c1fd7 100644 > --- a/man3/pthread_attr_setinheritsched.3 > +++ b/man3/pthread_attr_setinheritsched.3 > @@ -33,8 +33,8 @@ inherit-scheduler attribute in thread attributes object > .PP > .BI "int pthread_attr_setinheritsched(pthread_attr_t *" attr , > .BI " int " inheritsched ); > -.BI "int pthread_attr_getinheritsched(const pthread_attr_t *" attr , > -.BI " int *" inheritsched ); > +.BI "int pthread_attr_getinheritsched(const pthread_attr_t *restrict " attr , > +.BI " int *restrict " inheritsched ); > .PP > Compile and link with \fI\-pthread\fP. > .fi > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/