Available on crate feature
linux
only.Expand description
Linux-specific extensions to std::io
.
Structs§
- LINUX_
TERMIOS_ CFLAG LinuxTermios
control flags.- LINUX_
TERMIOS_ IFLAG LinuxTermios
input flags.- LINUX_
TERMIOS_ LFLAG LinuxTermios
local flags.- LINUX_
TERMIOS_ OFLAG LinuxTermios
output flags.- Linux
Terminal Size - The size of the terminal.
- Linux
Termios - Represents the
termios
structure from libc, used to control terminal I/O.
Functions§
- linux_
eprint unsafe_syscall
- Prints a string slice to standard error.
- linux_
eprintln unsafe_syscall
- Prints a string slice to standard error, with a newline.
- linux_
get_ byte unsafe_syscall
- Gets a single byte from stdin.
- linux_
get_ char unsafe_syscall
- Gets a single
char
from stdin, orNone
if the bytes are not valid utf-8. - linux_
get_ dirty_ char unsafe_syscall
- Gets either a single
char
from stdin, or the replacement character. - linux_
get_ line unsafe_syscall
- Gets a string from stdin backed by a
buffer
, until a newline. - linux_
get_ str unsafe_syscall
- Gets a string from stdin backed by a
buffer
, until thestop
char is received. - linux_
get_ utf8_ bytes unsafe_syscall
- Gets a utf-8 encoded byte sequence from stdin representing a
char
. - linux_
pause_ until_ char unsafe_syscall
- Pauses execution until receiving from stdin any
char
in thelist
. - linux_
print unsafe_syscall
- Prints a string slice to standard output.
- linux_
print_ bytes unsafe_syscall
- Prints a byte slice to stdout.
- linux_
println unsafe_syscall
- Prints a string slice to standard output, with a newline.
- linux_
prompt unsafe_syscall
- Prompts the user for a string from stdin, backed by a
buffer
. - linux_
random_ bytes unsafe_syscall
- Fills the given
buffer
with random bytes that may not be cryptographically secure. - linux_
random_ u8 unsafe_syscall
- Generates a random
u8
value that may not be criptographically secure. - linux_
random_ u16 unsafe_syscall
- Generates a random
u16
value that may not be criptographically secure. - linux_
random_ u32 unsafe_syscall
- Generates a random
u32
value that may not be criptographically secure. - linux_
random_ u64 unsafe_syscall
- Generates a random
u64
value that may not be criptographically secure. - linux_
random_ u128 unsafe_syscall
- Generates a random
u128
value that may not be criptographically secure. - linux_
sys_ ⚠getrandom unsafe_syscall
- Performs a
getrandom
syscall. - linux_
sys_ ⚠ioctl unsafe_syscall
- Performs an
ioctl
syscall. - linux_
sys_ ⚠read unsafe_syscall
- Performs a
read
syscall. - linux_
sys_ ⚠write unsafe_syscall
- Performs a
write
syscall.