[RFC 19/37] select.2, system_data_types.7: Move fd_set to select.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man2/select.2            | 20 +++++++++++++++++++-
 man7/system_data_types.7 | 21 ---------------------
 2 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/man2/select.2 b/man2/select.2
index aee25c52c..e70c7e537 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 <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 ()
@@ -453,7 +463,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.
diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index d71a06344..f004aef0d 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 <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
-- 
2.33.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux