mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question about select and poll system call
@ 2023-03-14  2:28 richard clark
  2023-03-14  2:31 ` richard clark
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: richard clark @ 2023-03-14  2:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

Hi, (Sorry, not find the maintainers for this subsystem, so to the lkml)

There're two questions about these system calls:
1. According to https://pubs.opengroup.org/onlinepubs/7908799/xsh/select.html:
ERRORS
[EINVAL]
      The nfds argument is less than 0 or greater than FD_SETSIZE.
But the current implementation in Linux like:
       if (nfds > FD_SETSIZE)
               nfds = FD_SETSIZE
What's the rationale behind this?

2. Can we unify the two different system calls? For example, using
poll(...) to implement the frontend select call(...), is there
something I'm missing for current implementation? The Cons and Pros,
etc

Thanks,

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

end of thread, other threads:[~2023-03-18 12:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14  2:28 Question about select and poll system call richard clark
2023-03-14  2:31 ` richard clark
2023-03-15  3:31   ` richard clark
2023-03-15  8:59 ` David Laight
2023-03-16  0:56   ` richard clark
2023-03-16  9:34     ` David Laight
2023-03-16 18:15 ` Linus Torvalds
2023-03-17  8:26   ` richard clark
2023-03-18 12:40     ` David Laight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®