POSIX says select() and everything it needs should come from
<sys/select.h>.  Eight years ago our headers have been fixed to
provide this.  Time to acknowledge this in the man page, too.

ok?

Index: select.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/select.2,v
retrieving revision 1.32
diff -u -p -r1.32 select.2
--- select.2    2 Nov 2013 17:25:34 -0000       1.32
+++ select.2    3 Dec 2013 19:55:44 -0000
@@ -38,10 +38,7 @@
 .Nm pselect
 .Nd synchronous I/O multiplexing
 .Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/time.h>
-.Fd #include <string.h>
-.Fd #include <unistd.h>
+.Fd #include <sys/select.h>
 .Ft int
 .Fn select "int nfds" "fd_set *readfds" "fd_set *writefds" "fd_set *exceptfds" 
"struct timeval *timeout"
 .Ft int
-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to