mirror of https://github.com/mkerrisk/man-pages
Added return types to prototypes for FD_SET(), FD_CLR(),
FD_ZERO, and FD_ISSET().
This commit is contained in:
parent
2ce70b17f2
commit
071dbad970
|
@ -36,10 +36,18 @@ affinity mask
|
||||||
.B #include <sched.h>
|
.B #include <sched.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int sched_setaffinity(pid_t " pid ", unsigned int " len ,
|
.BI "int sched_setaffinity(pid_t " pid ", unsigned int " len ,
|
||||||
.BI "unsigned long *" mask );
|
.BI "cpu_set_t *" mask );
|
||||||
.sp
|
.sp
|
||||||
.BI "int sched_getaffinity(pid_t " pid ", unsigned int " len ,
|
.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
|
.SH DESCRIPTION
|
||||||
.BR sched_setaffinity ()
|
.BR sched_setaffinity ()
|
||||||
sets the CPU affinity mask of the process denoted by
|
sets the CPU affinity mask of the process denoted by
|
||||||
|
@ -48,8 +56,11 @@ If
|
||||||
.I pid
|
.I pid
|
||||||
is zero, then the current process is used.
|
is zero, then the current process is used.
|
||||||
.sp
|
.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 .
|
.IR mask .
|
||||||
|
|
||||||
The least significant bit corresponds to the first logical processor
|
The least significant bit corresponds to the first logical processor
|
||||||
number on the system, while the most significant bit corresponds to
|
number on the system, while the most significant bit corresponds to
|
||||||
the last logical processor number on the system.
|
the last logical processor number on the system.
|
||||||
|
|
|
@ -57,13 +57,13 @@ struct timeval *\fItimeout\fB);
|
||||||
fd_set *\fIwritefds\fB, fd_set *\fIexceptfds\fB,
|
fd_set *\fIwritefds\fB, fd_set *\fIexceptfds\fB,
|
||||||
const struct timespec *\fItimeout\fB, const sigset_t *\fIsigmask\fB);
|
const struct timespec *\fItimeout\fB, const sigset_t *\fIsigmask\fB);
|
||||||
.sp
|
.sp
|
||||||
.BI "FD_CLR(int " fd ", fd_set *" set );
|
.BI "void FD_CLR(int " fd ", fd_set *" set );
|
||||||
.br
|
.br
|
||||||
.BI "FD_ISSET(int " fd ", fd_set *" set );
|
.BI "int FD_ISSET(int " fd ", fd_set *" set );
|
||||||
.br
|
.br
|
||||||
.BI "FD_SET(int " fd ", fd_set *" set );
|
.BI "void FD_SET(int " fd ", fd_set *" set );
|
||||||
.br
|
.br
|
||||||
.BI "FD_ZERO(fd_set *" set );
|
.BI "void FD_ZERO(fd_set *" set );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The functions
|
The functions
|
||||||
|
|
Loading…
Reference in New Issue