From: Nikos Mavrogiannopoulos <nmav-c5N7Ur/I1ocdnm+yROfE0A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [patch] select.2: Mention the fd size limitation early and refer to poll
Date: Fri, 29 Jan 2016 10:08:52 +0100 [thread overview]
Message-ID: <1454058532.3459.1.camel@gnutls.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]
That is because the serious limitation of select imposing a limit
on the values a file descriptor can have, is mentioned too late
in the documentation in the notes section. The manpage should
warn and refer to poll as soon as possible.
(patch attached)
[-- Attachment #2: 0001-select.2-Mention-the-fd-size-limitation-early-and-re.patch --]
[-- Type: text/x-patch, Size: 1031 bytes --]
From ca3f1dcc2281ff7bdd14f80a758b31239571d5cd Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri, 29 Jan 2016 10:03:45 +0100
Subject: [PATCH] select.2: Mention the fd size limitation early and refer to
poll
That is because the serious limitation of select imposing a limit
on the values a file descriptor can have, is mentioned too late
in the documentation in the notes section. The manpage should
warn and refer to poll as soon as possible.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
---
man2/select.2 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/man2/select.2 b/man2/select.2
index 151932e..6c76e1c 100644
--- a/man2/select.2
+++ b/man2/select.2
@@ -91,6 +91,13 @@ perform a corresponding I/O operation (e.g.,
without blocking, or a sufficiently small
.BR write (2)).
.PP
+The file descriptors
+.BR select ()
+can monitor cannot be larger than
+.B FD_SETSIZE.
+.BR poll (2),
+does not have this limitation.
+.PP
The operation of
.BR select ()
and
--
2.5.1
next reply other threads:[~2016-01-29 9:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-29 9:08 Nikos Mavrogiannopoulos [this message]
[not found] ` <1454058532.3459.1.camel-c5N7Ur/I1ocdnm+yROfE0A@public.gmane.org>
2016-02-01 14:23 ` [patch] select.2: Mention the fd size limitation early and refer to poll Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454058532.3459.1.camel@gnutls.org \
--to=nmav-c5n7ur/i1ocdnm+yrofe0a@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.