This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.21-29-gd5131d3
- From: sthibaul at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 7 Feb 2015 21:08:15 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.21-29-gd5131d3
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via d5131d3c1e4b71b5ce3bcd629ef019812b1412cf (commit)
from 5d2556c4fa4629b1c3adf59f29c699f00d4122ea (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d5131d3c1e4b71b5ce3bcd629ef019812b1412cf
commit d5131d3c1e4b71b5ce3bcd629ef019812b1412cf
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sat Feb 7 22:07:38 2015 +0100
hurd: allow poll() array bigger than FD_SETSIZE
diff --git a/ChangeLog b/ChangeLog
index 0474b0f..fa48858 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@
SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
Declare macros.
[__USE_MISC] (chflags, fchflags): Declare functions.
+ * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
+ EINVAL when nfds is greater than FD_SETSIZE.
2015-02-06 Roland McGrath <roland@hack.frob.com>
diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
index 279ee5e..2996be2 100644
--- a/hurd/hurdselect.c
+++ b/hurd/hurdselect.c
@@ -67,7 +67,7 @@ _hurd_select (int nfds,
assert (sizeof (union typeword) == sizeof (mach_msg_type_t));
assert (sizeof (uint32_t) == sizeof (mach_msg_type_t));
- if (nfds < 0 || nfds > FD_SETSIZE)
+ if (nfds < 0 || (pollfds == NULL && nfds > FD_SETSIZE))
{
errno = EINVAL;
return -1;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 2 ++
hurd/hurdselect.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources