[v2] linux: pselect: Remove CALL_PSELECT6 macro

Message ID 20191105143542.31792-1-lukma@denx.de
State New
Headers show
Series
  • [v2] linux: pselect: Remove CALL_PSELECT6 macro
Related show

Commit Message

Lukasz Majewski Nov. 5, 2019, 2:35 p.m.
Nothing defines CALL_PSELECT6 in the current tree, so remove it.

Tested with:
- make PARALLELMFLAGS="-j8" && make xcheck PARALLELMFLAGS="-j8" (x86_64)
- scripts/build-many-glibcs.py
---
Changes for v2:
- Simplify the commit message
---
 sysdeps/unix/sysv/linux/pselect.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

-- 
2.20.1

Comments

Joseph Myers Nov. 5, 2019, 4:43 p.m. | #1
On Tue, 5 Nov 2019, Lukasz Majewski wrote:

> Nothing defines CALL_PSELECT6 in the current tree, so remove it.

> 

> Tested with:

> - make PARALLELMFLAGS="-j8" && make xcheck PARALLELMFLAGS="-j8" (x86_64)

> - scripts/build-many-glibcs.py


OK.

-- 
Joseph S. Myers
joseph@codesourcery.com

Patch

diff --git a/sysdeps/unix/sysv/linux/pselect.c b/sysdeps/unix/sysv/linux/pselect.c
index d07d64114d..acda3e0cdd 100644
--- a/sysdeps/unix/sysv/linux/pselect.c
+++ b/sysdeps/unix/sysv/linux/pselect.c
@@ -59,15 +59,8 @@  __pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
   data.ss = (__syscall_ulong_t) (uintptr_t) sigmask;
   data.ss_len = _NSIG / 8;
 
-  int result;
-
-#ifndef CALL_PSELECT6
-# define CALL_PSELECT6(nfds, readfds, writefds, exceptfds, timeout, data) \
-  SYSCALL_CANCEL (pselect6, nfds, readfds, writefds, exceptfds,	timeout, data)
-#endif
-
-  result = CALL_PSELECT6 (nfds, readfds, writefds, exceptfds, timeout,
-			  &data);
+  int result = SYSCALL_CANCEL (pselect6, nfds, readfds, writefds, exceptfds,
+                               timeout, &data);
 
 # ifndef __ASSUME_PSELECT
   if (result == -1 && errno == ENOSYS)