Available on crate feature
linux
only.Expand description
Linux-specific extensions to std::io
.
Structs§
LinuxTermios
control flags.LinuxTermios
input flags.LinuxTermios
local flags.LinuxTermios
output flags.- The size of the terminal.
- 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 singlechar
from stdin, orNone
if the bytes are not valid utf-8. - linux_
get_ dirty_ char unsafe_syscall
Gets either a singlechar
from stdin, or the replacement character. - linux_
get_ line unsafe_syscall
Gets a string from stdin backed by abuffer
, until a newline. - linux_
get_ str unsafe_syscall
Gets a string from stdin backed by abuffer
, until thestop
char is received. - linux_
get_ utf8_ bytes unsafe_syscall
Gets a utf-8 encoded byte sequence from stdin representing achar
. - linux_
pause_ until_ char unsafe_syscall
Pauses execution until receiving from stdin anychar
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 abuffer
. - linux_
random_ bytes unsafe_syscall
Fills the givenbuffer
with random bytes that may not be cryptographically secure. - linux_
random_ u8 unsafe_syscall
Generates a randomu8
value that may not be criptographically secure. - linux_
random_ u16 unsafe_syscall
Generates a randomu16
value that may not be criptographically secure. - linux_
random_ u32 unsafe_syscall
Generates a randomu32
value that may not be criptographically secure. - linux_
random_ u64 unsafe_syscall
Generates a randomu64
value that may not be criptographically secure. - linux_
random_ u128 unsafe_syscall
Generates a randomu128
value that may not be criptographically secure. - linux_
sys_ ⚠getrandom unsafe_syscall
Performs agetrandom
syscall. - linux_
sys_ ⚠ioctl unsafe_syscall
Performs anioctl
syscall. - linux_
sys_ ⚠read unsafe_syscall
Performs aread
syscall. - linux_
sys_ ⚠write unsafe_syscall
Performs awrite
syscall.