Module io
posish
I/O operations.
pollfd
A Vec of libc::pollfd.
Vec
libc::pollfd
ioctl(fd, FIONREAD).
ioctl(fd, FIONREAD)
fcntl(fd, F_GETFL) & O_ACCMODE. Returns a pair of booleans indicating whether the file descriptor is readable and/or writeable, respectively.
fcntl(fd, F_GETFL) & O_ACCMODE
isatty(fd)