Peter Wemm 535db1806c Call poll(2) from within the resolver but adapt to older kernels without it
if necessary.  This removes the need to malloc large fd_set's for selecting
on high fd's (larger than FD_SETSIZE at libc compile time).

The syscall adaptive stuff only happens on the very first call.  SIGSYS
is masked, and if the call to poll fails with ENOSYS, then we use select
for the life of the program.  If poll does not fail with ENOSYS, then we
always use poll and skip the once-off signal masking gunk.

This may be overkill, but it saved my neck a few times while working on
multiple different sets of kernel sources, some with poll, some without.
1997-09-14 09:44:34 +00:00
..
1996-12-13 13:31:12 +00:00
1994-05-27 05:00:24 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1997-06-18 06:26:13 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1994-05-27 05:00:24 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1994-05-27 05:00:24 +00:00
1994-05-27 05:00:24 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1994-05-27 05:00:24 +00:00
1995-05-30 05:51:47 +00:00
1997-02-22 15:12:41 +00:00
1995-05-30 05:51:47 +00:00
1997-02-22 15:12:41 +00:00
1994-05-27 05:00:24 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1997-02-22 15:12:41 +00:00
1994-05-27 05:00:24 +00:00
1997-02-22 15:12:41 +00:00
1994-05-27 05:00:24 +00:00