Skip to main content

Module os

Module os 

Source

Traits§

ErrorExt

Functions§

bytes_as_os_str
errno_io_error
Get the last error from C runtime library functions (like _dup, _dup2, _fstat, etc.) CRT functions set errno, not GetLastError(), so we need to read errno directly.
errno_to_winerror
exit_code
Convert exit code to std::process::ExitCode
get_errno
set_errno
Set errno to the specified value.
winerror_to_errno