diff options
author | peter <peter@FreeBSD.org> | 2000-02-20 13:36:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-02-20 13:36:26 +0000 |
commit | 21e6913264b1b666cc015d6e9e730f75dddbd3d1 (patch) | |
tree | 3cb81db53d20a24a9b3e5b67edad405c49a4a972 /sys/pci | |
parent | c4d21ca2295695a9c0be375a61a88fd61a40bab0 (diff) | |
download | FreeBSD-src-21e6913264b1b666cc015d6e9e730f75dddbd3d1.zip FreeBSD-src-21e6913264b1b666cc015d6e9e730f75dddbd3d1.tar.gz |
Fix select(2) for the Alpha. (!!) It was never returning true for
fd's in the range of 32-63, 96-127 etc. The first problem was the
FD_*() macros were shifting a 32 bit integer "1" left by more than
32 bits. The same problem happened in selscan(). ffs() also takes
an int argument and causes failure. For cases where int == long
(ie: the usual case for x86, but not always as gcc can have long
being a 64 bit quantity) ffs() could be used.
Reported by: Marian Stagarescu <marian@bile.skycache.com>
Reviewed by: dfr, gallatin (sys/types.h only)
Approved by: jkh
Diffstat (limited to 'sys/pci')
0 files changed, 0 insertions, 0 deletions