* LI Xin <[EMAIL PROTECTED]> wrote: > Here is my implementation for FreeBSD. Some difference between my and > DragonFly's implementation: > > - closefrom(-1) would be no-op on DragonFly, my version would close all > open files (From my understanding of OpenSolaris's userland > implementation, this is Solaris's behavior). > - my version closefrom(very_big_fd) would result in EBADF. I am not > very sure whether this is correct, but it does not hurt for applications > that thinks closefrom() would return void.
Wouldn't it be better to just implement it through fcntl() and implement closefrom() in libc? -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/
pgpTwA4yjX2Zw.pgp
Description: PGP signature