Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
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 |
Definition at line 143 of file main.c.
References _, args, args_free(), args_parse(), argv, assert(), coder_free(), coder_run(), E_ERROR, E_SUCCESS, E_WARNING, exit_status, hardware_init(), i, 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(), MODE_COMPRESS, MODE_LIST, no_warn, NULL, opt_mode, opt_robot, opt_stdout, PACKAGE, read_name(), run(), signals_exit(), signals_init(), stdin_filename, tuklib_exit, tuklib_gettext_init, tuklib_progname_init, user_abort, and V_SILENT.
Definition at line 59 of file main.c.
References _, args, c, EINTR, message_error(), name, NULL, pos, user_abort, xmalloc, and xrealloc().
Referenced by main().
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.
Definition at line 51 of file main.c.
References no_warn.
Referenced by parse_real().
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.
Definition at line 31 of file main.c.
References assert(), E_ERROR, E_WARNING, and exit_status.
Referenced by message_error(), message_warning(), and signals_exit().
|
static |
Exit status to use. This can be changed with set_exit_status().
Definition at line 1 of file main.c.
Referenced by cleanup_handles(), close_process_handle(), main(), on_exit(), rz_cmd_help_search_handler(), RZ_PACKED(), set_exit_status(), and uv__chld().