]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
select.2, system_data_types.7: Move fd_set to select.2
authorAlejandro Colomar <alx.manpages@gmail.com>
Tue, 2 Nov 2021 12:29:34 +0000 (13:29 +0100)
committerAlejandro Colomar <alx.manpages@gmail.com>
Thu, 24 Feb 2022 22:17:06 +0000 (23:17 +0100)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/select.2
man7/system_data_types.7

index 35159731475f0f365ba64a84dc61b8c72a9acebb..29785cb26d9f4cb5199e0dc0bf1e0f9c75cafd3f 100644 (file)
 .\"
 .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 <sys/select.h>
 .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 <sys/time.h> .
+.PP
 An
 .I fd_set
 is a fixed size buffer.
index a2f2fe46161ff48614db1ccecefcaa0951a0969e..daf7904e73b476692ad7ebb47ea90ff4e147b1b9 100644 (file)
@@ -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 <sys/select.h> .
-Alternatively,
-.IR <sys/time.h> .
-.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