XZ Utils
5.1.0alpha
|
main() More...
Functions | |
void | set_exit_status (enum exit_status_type new_status) |
void | set_exit_no_warn (void) |
static const char * | read_name (const args_info *args) |
int | main (int argc, char **argv) |
Variables | |
static enum exit_status_type | exit_status = E_SUCCESS |
Exit status to use. This can be changed with set_exit_status(). More... | |
static bool | no_warn = false |
main()
void set_exit_status | ( | enum exit_status_type | new_status | ) |
Sets the exit status after a warning or error has occurred. If new_status is E_WARNING and the old exit status was already E_ERROR, the exit status is not changed.
References exit_status.
Referenced by message_progress_end(), and signals_exit().
void set_exit_no_warn | ( | void | ) |
Use E_SUCCESS instead of E_WARNING if something worth a warning occurs but nothing worth an error has occurred. This is called when –no-warn is specified.
References args_info::arg_count, args_info::arg_names, coder_free(), coder_run(), exit_status, filename, args_info::files_delim, args_info::files_file, args_info::files_name, hardware_init(), io_init(), is_tty_stdin(), is_tty_stdout(), list_file(), list_totals(), message_error(), message_fatal(), message_init(), message_set_files(), message_try_help(), message_verbosity_get(), no_warn, opt_mode, signals_exit(), signals_init(), user_abort, V_SILENT, xmalloc, and xrealloc().
Referenced by parse_memlimit().
|
static |
Exit status to use. This can be changed with set_exit_status().
Referenced by set_exit_no_warn(), and set_exit_status().
|
static |
True if –no-warn is specified. When this is true, we don't set the exit status to E_WARNING when something worth a warning happens.
Referenced by set_exit_no_warn().