From: Alejandro Colomar Date: Tue, 2 Nov 2021 12:29:34 +0000 (+0100) Subject: select.2, system_data_types.7: Move fd_set to select.2 X-Git-Tag: man-pages-5.19-rc1~756 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71a0b43c8ac0d461b6558ea2a37db5670e1bd59;p=thirdparty%2Fman-pages.git select.2, system_data_types.7: Move fd_set to select.2 Signed-off-by: Alejandro Colomar --- diff --git a/man2/select.2 b/man2/select.2 index 3515973147..29785cb26d 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -39,12 +39,14 @@ .\" .TH SELECT 2 2021-03-22 "Linux" "Linux Programmer's Manual" .SH NAME -select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- +select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set \- synchronous I/O multiplexing .SH SYNOPSIS .nf .B #include .PP +.BR typedef " /* ... */ " fd_set; +.PP .BI "int select(int " nfds ", fd_set *restrict " readfds , .BI " fd_set *restrict " writefds ", fd_set *restrict " exceptfds , .BI " struct timeval *restrict " timeout ); @@ -93,6 +95,14 @@ or a sufficiently small .BR write (2)) without blocking. .\" +.SS fd_set +A structure type that can represent a set of file descriptors. +According to POSIX, +the maximum number of file descriptors in an +.I fd_set +structure is the value of the macro +.BR FD_SETSIZE . +.\" .SS File descriptor sets The principal arguments of .BR select () @@ -446,7 +456,15 @@ sets the timeout variable before returning, but the BSD variant does not. .BR pselect () is defined in POSIX.1g, and in POSIX.1-2001 and POSIX.1-2008. +.PP +.B fd_set +is defined in POSIX.1-2001 and later. .SH NOTES +The following header also provides the +.I fd_set +type: +.IR . +.PP An .I fd_set is a fixed size buffer. diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index a2f2fe4616..daf7904e73 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -60,27 +60,6 @@ system_data_types \- overview of system data types .\"------------------------------------- div_t ------------------------/ .\"------------------------------------- double_t ---------------------/ .\"------------------------------------- fd_set -----------------------/ -.TP -.I fd_set -.RS -.IR Include : -.IR . -Alternatively, -.IR . -.PP -A structure type that can represent a set of file descriptors. -According to POSIX, -the maximum number of file descriptors in an -.I fd_set -structure is the value of the macro -.BR FD_SETSIZE . -.PP -.IR "Conforming to" : -POSIX.1-2001 and later. -.PP -.IR "See also" : -.BR select (2) -.RE .\"------------------------------------- fenv_t -----------------------/ .TP .I fenv_t