This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.23-95-g089b772


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  089b772f98afd9eb6264c6489bc96a30bf6af4ac (commit)
      from  35ade9f11b9007ee9683529f2d33698ff35255c8 (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=089b772f98afd9eb6264c6489bc96a30bf6af4ac

commit 089b772f98afd9eb6264c6489bc96a30bf6af4ac
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Mar 15 21:11:07 2016 +0000

    Remove __ASSUME_PPOLL.
    
    With current kernel version requirements, the ppoll Linux syscall can
    be assumed to be present on all architectures; this patch removes the
    __ASSUME_PPOLL macro and conditionals on it and on whether __NR_ppoll
    is defined.  (Note that the same can't yet be done for pselect,
    because MicroBlaze only wired that up in the syscall table in 3.15.)
    
    Tested for x86_64 and x86 that installed stripped shared libraries are
    unchanged by the patch.
    
    	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
    	Remove macro.
    	* sysdeps/unix/sysv/linux/ppoll.c: Do not include
    	<kernel-features.h>.
    	[__NR_ppoll]: Make code unconditional.
    	[!__ASSUME_PPOLL]: Remove conditional code.

diff --git a/ChangeLog b/ChangeLog
index 251a8dd..db653f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
+	Remove macro.
+	* sysdeps/unix/sysv/linux/ppoll.c: Do not include
+	<kernel-features.h>.
+	[__NR_ppoll]: Make code unconditional.
+	[!__ASSUME_PPOLL]: Remove conditional code.
+
 	* sysdeps/unix/sysv/linux/kernel-features.h
 	(__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
 	(__ASSUME_ACCEPT4): Likewise.
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 4411503..4a7460e 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -58,7 +58,6 @@
 /* pselect/ppoll were introduced just after 2.6.16-rc1.  On x86_64 and
    SH this appeared first in 2.6.19-rc1, on ia64 in 2.6.22-rc1.  */
 #define __ASSUME_PSELECT	1
-#define __ASSUME_PPOLL		1
 
 /* The *at syscalls were introduced just after 2.6.16-rc1.  On PPC
    they were introduced in 2.6.17-rc1, on SH in 2.6.19-rc1.  */
diff --git a/sysdeps/unix/sysv/linux/ppoll.c b/sysdeps/unix/sysv/linux/ppoll.c
index c4486af..e14fe60 100644
--- a/sysdeps/unix/sysv/linux/ppoll.c
+++ b/sysdeps/unix/sysv/linux/ppoll.c
@@ -20,18 +20,9 @@
 #include <signal.h>
 #include <time.h>
 #include <sys/poll.h>
-#include <kernel-features.h>
 #include <sysdep-cancel.h>
 
 
-#ifdef __NR_ppoll
-# ifndef __ASSUME_PPOLL
-static int __generic_ppoll (struct pollfd *fds, nfds_t nfds,
-			    const struct timespec *timeout,
-			    const sigset_t *sigmask);
-# endif
-
-
 int
 ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
        const sigset_t *sigmask)
@@ -45,24 +36,6 @@ ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
       timeout = &tval;
     }
 
-  int result;
-
-  result = SYSCALL_CANCEL (ppoll, fds, nfds, timeout, sigmask, _NSIG / 8);
-
-# ifndef __ASSUME_PPOLL
-  if (result == -1 && errno == ENOSYS)
-    result = __generic_ppoll (fds, nfds, timeout, sigmask);
-# endif
-
-  return result;
+  return SYSCALL_CANCEL (ppoll, fds, nfds, timeout, sigmask, _NSIG / 8);
 }
 libc_hidden_def (ppoll)
-
-# ifndef __ASSUME_PPOLL
-#  define ppoll static __generic_ppoll
-# endif
-#endif
-
-#ifndef __ASSUME_PPOLL
-# include <io/ppoll.c>
-#endif

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                 |    7 +++++++
 sysdeps/unix/sysv/linux/kernel-features.h |    1 -
 sysdeps/unix/sysv/linux/ppoll.c           |   29 +----------------------------
 3 files changed, 8 insertions(+), 29 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]