]> Zhao Yanbai Git Server - minix.git/commit
Change select() so that only as many words as necessary for the 'nfds'
authorBen Gras <ben@minix3.org>
Wed, 4 Oct 2006 13:28:38 +0000 (13:28 +0000)
committerBen Gras <ben@minix3.org>
Wed, 4 Oct 2006 13:28:38 +0000 (13:28 +0000)
commitcbfa0f4fb84667e1c10eee95d7a1829faed901fb
treeb736962922aa4523eafd0d846415042965159068
parent1d4be8052f3ca2b606b1cb065902cc0ae42b1ba1
Change select() so that only as many words as necessary for the 'nfds'
argument from the fd bitmasks are copied from and back to userspace. This
solves an ABI dependency on OPEN_MAX. If nfds is too big for the current
OPEN_MAX, select() fails (but that's relatively easy to fix by 'just'
recompiling the system and not the application binaries), but if it's
smaller, binaries keep working.
servers/fs/select.c