John Baldwin 5e41bd2cd2 Only reject file descriptors higher than FD_SETSIZE if we are not using
poll(2) or kqueue(2).  Previously we rejected fd's higher than FD_SETSIZE
for kevent(2), and larger than sysconf(_SC_OPEN_MAX) for poll(2).  However,
the check for poll(2) wasn't really needed.  open(2) and socket(2) won't
return an fd you can't pass to either poll(2) or kevent(2).  This fixes
a but where gethostbyname() would fail if you had more than 1023 files
open in a process.

MFC after:	1 week
Reviewed by:	ume
Found by:	ps
2007-03-05 19:39:51 +00:00
..
2007-03-03 07:37:37 +00:00
2006-09-17 21:27:35 +00:00
2006-10-09 05:12:54 +00:00
2007-03-03 06:13:38 +00:00
2006-07-27 04:54:03 +00:00
2006-07-27 04:54:03 +00:00
2005-11-24 10:43:35 +00:00
2006-04-13 08:12:31 +00:00
2006-09-17 21:27:35 +00:00
2006-09-17 21:27:35 +00:00
2006-03-16 15:18:17 +00:00
2006-10-28 10:53:39 +00:00
2006-10-20 14:15:42 +00:00
2005-11-24 11:26:36 +00:00
2006-10-21 15:12:36 +00:00
2007-02-15 02:43:14 +00:00
2006-03-23 14:09:21 +00:00
2007-02-01 08:45:27 +00:00
2007-01-20 07:48:10 +00:00