pub fn ioctl_fionread<Fd: AsFd>(fd: Fd) -> Result<u64>
ioctl(fd, FIONREAD)—Returns the number of bytes ready to be read.
ioctl(fd, FIONREAD)
The result of this function gets silently coerced into a C int by the OS, so it may contain a wrapped value.
int