XZ Utils
5.1.0alpha
|
Miscellaneous declarations. More...
Enumerations | |
enum | exit_status_type { E_SUCCESS = 0, E_ERROR = 1, E_WARNING = 2 } |
Possible exit status values. These are the same as used by gzip and bzip2. More... | |
Functions | |
void | set_exit_status (enum exit_status_type new_status) |
void | set_exit_no_warn (void) |
Miscellaneous declarations.
enum exit_status_type |
Possible exit status values. These are the same as used by gzip and bzip2.
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().