unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2] linux: pselect: Remove CALL_PSELECT6 macro
@ 2019-11-05 14:35 Lukasz Majewski
  2019-11-05 16:43 ` Joseph Myers
  0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Majewski @ 2019-11-05 14:35 UTC (permalink / raw
  To: Joseph Myers, Paul Eggert
  Cc: Alistair Francis, Alistair Francis, GNU C Library,
	Adhemerval Zanella, Florian Weimer, Florian Weimer, Zack Weinberg,
	Carlos O'Donell, Lukasz Majewski

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(-)

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)
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] linux: pselect: Remove CALL_PSELECT6 macro
  2019-11-05 14:35 [PATCH v2] linux: pselect: Remove CALL_PSELECT6 macro Lukasz Majewski
@ 2019-11-05 16:43 ` Joseph Myers
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph Myers @ 2019-11-05 16:43 UTC (permalink / raw
  To: Lukasz Majewski
  Cc: Paul Eggert, Alistair Francis, Alistair Francis, GNU C Library,
	Adhemerval Zanella, Florian Weimer, Florian Weimer, Zack Weinberg,
	Carlos O'Donell

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-05 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-05 14:35 [PATCH v2] linux: pselect: Remove CALL_PSELECT6 macro Lukasz Majewski
2019-11-05 16:43 ` Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).