[][src]Crate close_fds

Structs

FdIter

Functions

close_open_fds

Close all open file descriptors starting at minfd, except for the file descriptors in keep_fds.

iter_open_fds

Iterate over all open file descriptors for the current process, starting at minfd. The file descriptors are guaranteed to be returned in ascending order.

iter_possible_fds

Identical to iter_open_fds(), but may -- for efficiency -- yield invalid file descriptors.

set_fds_cloexec

Identical to close_open_fds(), but sets the FD_CLOEXEC flag on the file descriptors instead of closing them.