Filesys::POSIX::FdTable - File descriptor table
This internal module used by Filesys::POSIX handles the allocation and tracking of numeric file descriptors associated with inodes opened for I/O. It does not intend to expose any public interfaces.
Create a new file descriptor table object. Returns a blessed hash.
Returns a unused file descriptor number greater than 2, unique to the current file descriptor table, upon success. Possible exceptions may be thrown:
ENODEV (No such device or address)
Could not open a file handle for the inode passed.
Given a file descriptor number, return the file descriptor table entry stored; such an object contains an inode reference, a file handle reference, and the flags with which the file was opened. Possible exceptions include:
EBADF (Bad file descriptor)
No handle found for the given file descriptor.
Close the file handle corresponding to the given file descriptor, and remove the file descriptor from the table, freeing it for future reallocation.
Return a list of all file descriptor numbers currently allocated.
Written by Xan Tronix <email@example.com>
Copyright (c) 2014, cPanel, Inc. Distributed under the terms of the Perl Artistic license.