Module posish::io[][src]

Expand description

I/O operations.

Structs

Errno
PollFd

pollfd

PollFdVec

A Vec of pollfd.

PollFlags

POLL*

Constants

ICANON

Re-export ICANON.

PIPE_BUF

Re-export PIPE_BUF.

Functions

dup

dup(fd)

ioctl_fioclex

Also known as fcntl(fildes, F_SETFD, FD_CLOEXEC).

ioctl_fionread

ioctl(fd, FIONREAD).

ioctl_tcgets

ioctl(fd, TCGETS)

is_read_write

Returns a pair of booleans indicating whether the file descriptor is readable and/or writeable, respectively. Unlike is_file_read_write, this correctly detects whether sockets have been shutdown, partially or completely.

isatty

isatty(fd)

rdadvise

fcntl(fd, F_RDADVISE, radvisory { offset, len })

socketpair_stream

socketpair(domain, SOCK_STREAM | SOCK_CLOEXEC, protocol)

ttyname

ttyname_r(fd)

Type Definitions

Termios

Re-export termios.