select.2

来自「minix操作系统最新版本(3.1.1)的源代码」· 2 代码 · 共 44 行

2
44
字号
.TH SELECT 2 "Jun 9, 2005".UC 4.SH NAMEselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- synchronous I/O multiplexing.SH SYNOPSIS.nf.ft B#include <sys/select.h>int select(int \fInfds\fP, fd_set *\fIreadfds\fP, fd_set *\fIwritefds\fP, fd_set *\fIerrorfds\fP, struct timeval *\fItimeout\fP)void FD_CLR(int \fIfd\fP, fd_set *\fIfdset\fP)int FD_ISSET(int \fIfd\fP, fd_set *\fIfdset\fP)void FD_SET(int \fIfd\fP, fd_set *\fIfdset\fP)void FD_ZERO(fd_set *\fIfdset\fP).ft R.fi.SH DESCRIPTION.B Selectexamines the file descriptors given in the sets .IR readfds ,.IR writefds ,and.IR errorfds ,up to and including file descriptor.IR nfds -1, for reading, writing, or exceptional conditions, respectively..B Selectcurrently supports regular files, pipes, named pipes,inet, and tty file descriptors (including pty).If the .I readfds argument is not a null pointer, it points to an object of type fd_setthat on input specifies the file descriptors to be checked for beingready to read, and on output indicates which file descriptors are readyto read..I Writefds and.I errorfdshave an analogous meaning for file descriptors to be checked for beingready to read, respectively have pending exceptional (error) conditions.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?