]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix FD_ISSET() on LP64 platforms. The FD_ISSET() function/macro is
authorMarcel Moolenaar <marcel@FreeBSD.org>
Fri, 6 Jan 2006 22:12:46 +0000 (22:12 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Fri, 6 Jan 2006 22:12:46 +0000 (22:12 +0000)
commit6d85ea782042d11762176ae95757c03a809cf2bb
tree3b56c123c505d246c296fca4bb6da880d61b4c18
parenta96727f36eb9d81d24719f6c99ea8ac3420879ed
Fix FD_ISSET() on LP64 platforms. The FD_ISSET() function/macro is
defined to return an int, but on LP64 platforms the return value of
FD_ISSET() for file descriptors with a bit-index larger than 31 would
not fit an int (due to __fd_mask being defined as an unsigned long).
The fix is to explicitly test against 0.

PR: ia64/91421
Submitted by: Tanaka Akira (akr at m17n dot org)
MFC after: 1 week
sys/sys/select.h