Loading...
--- Libc/Libc-583/pthreads/pthread_getschedparam.3
+++ Libc/Libc-391.5.21/pthreads/pthread_getschedparam.3
@@ -30,29 +30,21 @@
.Dt PTHREAD_SCHEDPARAM 3
.Os
.Sh NAME
-.Nm pthread_getschedparam ,
-.Nm pthread_setschedparam
+.Nm pthread_setschedparam ,
+.Nm pthread_getschedparam
.Nd thread scheduling parameter manipulation
.Sh SYNOPSIS
.Fd #include <pthread.h>
.Ft int
-.Fo pthread_getschedparam
-.Fa "pthread_t thread"
-.Fa "int *restrict policy"
-.Fa "struct sched_param *restrict param"
-.Fc
+.Fn pthread_setschedparam "pthread_t thread" "int policy" "const struct sched_param *param"
.Ft int
-.Fo pthread_setschedparam
-.Fa "pthread_t thread"
-.Fa "int policy"
-.Fa "const struct sched_param *param"
-.Fc
+.Fn pthread_getschedparam "pthread_t thread" "int *policy" "struct sched_param *param"
.Sh DESCRIPTION
The
+.Fn pthread_setschedparam
+and
.Fn pthread_getschedparam
-and
-.Fn pthread_setschedparam
-functions get and set the scheduling parameters of individual threads.
+functions set and get the scheduling parameters of individual threads.
The scheduling policy for a thread can either be
.Dv SCHED_FIFO
(first in, first out) or
@@ -68,14 +60,6 @@
If successful, these functions return 0.
Otherwise, an error number is returned to indicate the error.
.Sh ERRORS
-.Fn pthread_getschedparam
-will fail if:
-.Bl -tag -width Er
-.It Bq Er ESRCH
-Non-existent thread
-.Va thread .
-.El
-.Pp
.Fn pthread_setschedparam
will fail if:
.Bl -tag -width Er
@@ -88,6 +72,14 @@
Non-existent thread
.Va thread .
.El
+.Pp
+.Fn pthread_getschedparam
+will fail if:
+.Bl -tag -width Er
+.It Bq Er ESRCH
+Non-existent thread
+.Va thread .
+.El
.Sh STANDARDS
.Fn pthread_setschedparam
and