pub unsafe fn fd_fdstat_get(fd: Fd) -> Result<Fdstat, Errno>
Expand description

Get the attributes of a file descriptor. Note: This returns similar flags to fsync(fd, F_GETFL) in POSIX, as well as additional fields.

Return

The buffer where the file descriptor’s attributes are stored.