aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man2/sched_setaffinity.217
-rw-r--r--man2/select.28
2 files changed, 18 insertions, 7 deletions
diff --git a/man2/sched_setaffinity.2 b/man2/sched_setaffinity.2
index d3f3de128d..51fd243351 100644
--- a/man2/sched_setaffinity.2
+++ b/man2/sched_setaffinity.2
@@ -36,10 +36,18 @@ affinity mask
.B #include <sched.h>
.sp
.BI "int sched_setaffinity(pid_t " pid ", unsigned int " len ,
-.BI "unsigned long *" mask );
+.BI "cpu_set_t *" mask );
.sp
.BI "int sched_getaffinity(pid_t " pid ", unsigned int " len ,
-.BI "unsigned long *" mask );
+.BI "cpu_set_t *" mask );
+.sp
+.BI "CPU_CLR(int " cpu ", cpu_set_t *" set );
+.br
+.BI "CPU_ISSET(int " cpu ", cpu_set_t *" set );
+.br
+.BI "CPU_SET(int " cpu ", cpu_set_t *" set );
+.br
+.BI "CPU_ZERO(cpu_set_t *" set );
.SH DESCRIPTION
.BR sched_setaffinity ()
sets the CPU affinity mask of the process denoted by
@@ -48,8 +56,11 @@ If
.I pid
is zero, then the current process is used.
.sp
-The affinity mask is represented by the bitmask stored in
+The affinity mask is represented by the
+.I cpu_set_t
+value pointed to by
.IR mask .
+
The least significant bit corresponds to the first logical processor
number on the system, while the most significant bit corresponds to
the last logical processor number on the system.
diff --git a/man2/select.2 b/man2/select.2
index dcc7dc9b90..03d1b29528 100644
--- a/man2/select.2
+++ b/man2/select.2
@@ -57,13 +57,13 @@ struct timeval *\fItimeout\fB);
fd_set *\fIwritefds\fB, fd_set *\fIexceptfds\fB,
const struct timespec *\fItimeout\fB, const sigset_t *\fIsigmask\fB);
.sp
-.BI "FD_CLR(int " fd ", fd_set *" set );
+.BI "void FD_CLR(int " fd ", fd_set *" set );
.br
-.BI "FD_ISSET(int " fd ", fd_set *" set );
+.BI "int FD_ISSET(int " fd ", fd_set *" set );
.br
-.BI "FD_SET(int " fd ", fd_set *" set );
+.BI "void FD_SET(int " fd ", fd_set *" set );
.br
-.BI "FD_ZERO(fd_set *" set );
+.BI "void FD_ZERO(fd_set *" set );
.fi
.SH DESCRIPTION
The functions