devela::_dep::rustix::ioFunction ioctl_fionread
pub fn ioctl_fionread<Fd>(fd: Fd) -> Result<u64, Errno> ⓘ
Available on crate feature dep_rustix
only.
Expand description
ioctl(fd, FIONREAD)
—Returns the number of bytes ready to be read.
The result of this function gets silently coerced into a C int
by the OS,
so it may contain a wrapped value.
§References