add closefrom() call
ed at fxq.nl
Fri Jul 6 11:23:47 UTC 2007
* LI Xin <delphij at delphij.net> 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 <ed at fxq.nl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070706/a7c8ae1b/attachment.pgp
More information about the freebsd-hackers