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_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)

preadv

preadv(fd, bufs.as_ptr(), bufs.len(), offset)

pwritev

pwritev(fd, bufs.as_ptr(), bufs.len(), offset)

socketpair_stream

socketpair(domain, SOCK_STREAM | SOCK_CLOEXEC, protocol)

ttyname

ttyname_r(fd)

Type Definitions

Termios

Re-export termios.