mirror of https://github.com/mkerrisk/man-pages
pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3: Constify parameters
Each of the pthread_attr_get* functions extract some piece of information from a pthread_attr_t, which is passed by const reference. Add the const keyword to the prototypes of these functions. Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d795791f2d
commit
e59f5f584c
|
@ -34,7 +34,7 @@ CPU affinity attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setaffinity_np(pthread_attr_t *" attr ,
|
||||
.BI " size_t " cpusetsize ", const cpu_set_t *" cpuset );
|
||||
.BI "int pthread_attr_getaffinity_np(pthread_attr_t *" attr ,
|
||||
.BI "int pthread_attr_getaffinity_np(const pthread_attr_t *" attr ,
|
||||
.BI " size_t " cpusetsize ", cpu_set_t *" cpuset );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ set/get detach state attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setdetachstate(pthread_attr_t *" attr \
|
||||
", int " detachstate );
|
||||
.BI "int pthread_attr_getdetachstate(pthread_attr_t *" attr \
|
||||
.BI "int pthread_attr_getdetachstate(const pthread_attr_t *" attr \
|
||||
", int *" detachstate );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setguardsize(pthread_attr_t *" attr \
|
||||
", size_t " guardsize );
|
||||
.BI "int pthread_attr_getguardsize(pthread_attr_t *" attr \
|
||||
.BI "int pthread_attr_getguardsize(const pthread_attr_t *" attr \
|
||||
", size_t *" guardsize );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ inherit-scheduler attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setinheritsched(pthread_attr_t *" attr ,
|
||||
.BI " int " inheritsched );
|
||||
.BI "int pthread_attr_getinheritsched(pthread_attr_t *" attr ,
|
||||
.BI "int pthread_attr_getinheritsched(const pthread_attr_t *" attr ,
|
||||
.BI " int *" inheritsched );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ scheduling parameter attributes in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setschedparam(pthread_attr_t *" attr ,
|
||||
.BI " const struct sched_param *" param );
|
||||
.BI "int pthread_attr_getschedparam(pthread_attr_t *" attr ,
|
||||
.BI "int pthread_attr_getschedparam(const pthread_attr_t *" attr ,
|
||||
.BI " struct sched_param *" param );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ scheduling policy attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setschedpolicy(pthread_attr_t *" attr \
|
||||
", int " policy );
|
||||
.BI "int pthread_attr_getschedpolicy(pthread_attr_t *" attr \
|
||||
.BI "int pthread_attr_getschedpolicy(const pthread_attr_t *" attr \
|
||||
", int " *policy );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setscope(pthread_attr_t *" attr \
|
||||
", int " scope );
|
||||
.BI "int pthread_attr_getscope(pthread_attr_t *" attr \
|
||||
.BI "int pthread_attr_getscope(const pthread_attr_t *" attr \
|
||||
", int *" scope );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ attributes in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setstack(pthread_attr_t *" attr ,
|
||||
.BI " void *" stackaddr ", size_t " stacksize );
|
||||
.BI "int pthread_attr_getstack(pthread_attr_t *" attr ,
|
||||
.BI "int pthread_attr_getstack(const pthread_attr_t *" attr ,
|
||||
.BI " void **" stackaddr ", size_t *" stacksize );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ set/get stack address attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setstackaddr(pthread_attr_t *" attr \
|
||||
", void *" stackaddr );
|
||||
.BI "int pthread_attr_getstackaddr(pthread_attr_t *" attr \
|
||||
.BI "int pthread_attr_getstackaddr(const pthread_attr_t *" attr \
|
||||
", void **" stackaddr );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
|
@ -33,7 +33,7 @@ attribute in thread attributes object
|
|||
|
||||
.BI "int pthread_attr_setstacksize(pthread_attr_t *" attr \
|
||||
", size_t " stacksize );
|
||||
.BI "int pthread_attr_getstacksize(pthread_attr_t *" attr \
|
||||
.BI "int pthread_attr_getstacksize(const pthread_attr_t *" attr \
|
||||
", size_t *" stacksize );
|
||||
.sp
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
|
|
Loading…
Reference in New Issue