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

r5896 - in glibc-package/branches/eglibc-2.18/debian: . patches patches/hurd-i386



Author: sthibault
Date: 2013-12-31 12:18:03 +0000 (Tue, 31 Dec 2013)
New Revision: 5896

Added:
   glibc-package/branches/eglibc-2.18/debian/patches/hurd-i386/tg-nfds-poll.diff
Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/series
Log:
patches/hurd-i386/tg-nfds-poll.diff: New patch to fix poll call with big array.

Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===================================================================
--- glibc-package/branches/eglibc-2.18/debian/changelog	2013-12-30 06:43:25 UTC (rev 5895)
+++ glibc-package/branches/eglibc-2.18/debian/changelog	2013-12-31 12:18:03 UTC (rev 5896)
@@ -15,6 +15,10 @@
   * debian/patches/mips/submitted-wordsize-clang.diff: drop now that clang
     correctly defines_MIPS_SZPTR.
 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/tg-nfds-poll.diff: New patch to fix poll call with big
+    array.
+
  -- Adam Conrad <adconrad@ubuntu.com>  Tue, 10 Dec 2013 01:59:47 -0700
 
 eglibc (2.18-0experimental0) experimental; urgency=low

Added: glibc-package/branches/eglibc-2.18/debian/patches/hurd-i386/tg-nfds-poll.diff
===================================================================
--- glibc-package/branches/eglibc-2.18/debian/patches/hurd-i386/tg-nfds-poll.diff	                        (rev 0)
+++ glibc-package/branches/eglibc-2.18/debian/patches/hurd-i386/tg-nfds-poll.diff	2013-12-31 12:18:03 UTC (rev 5896)
@@ -0,0 +1,27 @@
+From: Samuel Thibault <samuel.thibault@ens-lyon.org>
+Subject: [PATCH] allow poll() array bigger than FD_SETSIZE
+
+* hurd/hurdselect.c (_hurd_select): In the poll case, do not return EINVAL when
+nfds is greater than FD_SETSIZE.
+
+Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+---
+ hurd/hurdselect.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
+index 4544cb7..1cadf43 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 && nfds > FD_SETSIZE))
+     {
+       errno = EINVAL;
+       return -1;
+-- 
+tg: (9a079e2..) t/nfds-poll (depends on: baseline)

Modified: glibc-package/branches/eglibc-2.18/debian/patches/series
===================================================================
--- glibc-package/branches/eglibc-2.18/debian/patches/series	2013-12-30 06:43:25 UTC (rev 5895)
+++ glibc-package/branches/eglibc-2.18/debian/patches/series	2013-12-31 12:18:03 UTC (rev 5896)
@@ -143,6 +143,7 @@
 hurd-i386/cvs-libpthread-tls.diff
 hurd-i386/cvs-libpthread-userstack.diff
 hurd-i386/tg-libc_getspecific.diff
+hurd-i386/tg-nfds-poll.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff


Reply to: