Added return types to prototypes for FD_SET(), FD_CLR(),

FD_ZERO, and FD_ISSET().
This commit is contained in:
Michael Kerrisk 2006-02-02 18:15:36 +00:00
parent 2ce70b17f2
commit 071dbad970
2 changed files with 18 additions and 7 deletions

View File

@ -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.

View File

@ -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