Function rustix::io::ioctl_fionread

pub fn ioctl_fionread<Fd: AsFd>(fd: &Fd) -> io::Result<u64>
Documentation

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