rustix::io

Function ioctl_fionread

source
pub fn ioctl_fionread<Fd: AsFd>(fd: Fd) -> Result<u64>
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