Re-exports
pub extern crate libc;
Modules
- Implement GNU-style backup functionality.
- Get password/group file entry
- All utils return exit with an exit code. Usually, the following scheme is used:
- Set of functions to manage files and symlinks
- Set of functions to manage file systems
- Provides consistent newline/zero terminator handling for
-z/--zeroflags. - Iterate over lines, including the line ending character(s).
- Main entry point for our implementation of printf.
- Set of functions to parse modes
- Custom panic hooks that allow silencing certain types of errors.
- Parsing a glob Pattern from a string.
- Parsing a duration from a string.
- Common functions to manage permissions
- Set of functions to manage IDs
- A fixed-size ring buffer.
- Implementations of digest functions, like md5 and sha1.
- Implement GNU-style update functionality.
- Aims to provide platform-independent methods to obtain login records
Macros
- Execute utility code for
util. - Display an error and
std::process::exit - Unwrap a
std::result::Result, crashing instead of panicking. - Used to check if the
modehas itspermbit set. - Get the about text from the help file.
- Reads a section from a file of the util as a
strliteral. - Get the usage from the help file.
- Prompt the user with a formatted string and returns
trueif they reply'y'or'Y' - Display a
crate::error::UErrorand set global exit code. - Show an error to stderr in a similar style to GNU coreutils.
- Display an error and set global exit code in error case.
- Print a warning message to stderr.
- Shorthand to construct
UIoError-instances.
Traits
Functions
- Derive the complete execution phrase for “usage”.
- Generate the usage string for clap.
- Read a line from stdin and check whether the first character is
'y'or'Y' - Derive the utility name.