Function rustix::io::ioctl_fionread
source · 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.