Module posish::io [−][src]
Expand description
I/O operations.
Structs
O_*
constants for use with dup2
.
The error type for posish APIs.
MAP_*
flags for use with mmap
.
struct pollfd
A Vec
of pollfd
.
POLL*
PROT_*
flags for use with mmap
.
Constants
Functions
dup(fd)
dup3(fd, new, flags)
ioctl(fd, FIOCLEX)
ioctl(fd, FIONREAD)
.
ioctl(fd, TCGETS)
ioctl(fd, TIOCGWINSZ)
.
Returns a pair of booleans indicating whether the file descriptor is readable and/or writeable, respectively.
isatty(fd)
mmap(fd, len, prot, flags, fd, offset)
munmap(ptr, len)
pipe()
pread(fd, buf.as_ptr(), bufs.len(), offset)
preadv(fd, bufs.as_ptr(), bufs.len(), offset)
pwrite(fd, bufs.as_ptr(), bufs.len())
pwritev(fd, bufs.as_ptr(), bufs.len(), offset)
read(fd, buf.as_ptr(), buf.len())
readv(fd, bufs.as_ptr(), bufs.len())
STDERR_FILENO
STDIN_FILENO
STDOUT_FILENO
ttyname_r(fd)
write(fd, buf.ptr(), buf.len())
writev(fd, bufs.as_ptr(), bufs.len())