|
Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
| #define | _NO_PROTO |
| #define | const |
| #define | GETOPT_INTERFACE_VERSION 2 |
| #define | _(msgid) (msgid) |
| #define | SWAP_FLAGS(ch1, ch2) |
| #define | NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') |
Enumerations | |
| enum | { REQUIRE_ORDER , PERMUTE , RETURN_IN_ORDER } |
Functions | |
| char * | getenv () |
| static char * | my_index (char *str, int chr) const |
| static void | exchange (char **argv) |
| static const char * | _getopt_initialize (int argc, char *const *argv, const char *optstring) |
| int | _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) |
| int | getopt (int argc, char *const *argv, const char *optstring) |
Variables | |
| char * | optarg |
| int | optind = 1 |
| int | __getopt_initialized |
| static char * | nextchar |
| int | opterr = 1 |
| int | optopt = '?' |
| static enum { ... } | ordering |
| static char * | posixly_correct |
| static int | first_nonopt |
| static int | last_nonopt |
| anonymous enum |
|
static |
Definition at line 390 of file getopt.c.
References argv, first_nonopt, getenv(), last_nonopt, len, malloc(), memcpy(), memset(), nextchar, NULL, optind, ordering, PERMUTE, posixly_correct, REQUIRE_ORDER, and RETURN_IN_ORDER.
Referenced by _getopt_internal().
| int _getopt_internal | ( | int | argc, |
| char *const * | argv, | ||
| const char * | optstring, | ||
| const struct option * | longopts, | ||
| int * | longind, | ||
| int | long_only | ||
| ) |
Definition at line 514 of file getopt.c.
References _, __getopt_initialized, _getopt_initialize(), argv, c, exchange(), first_nonopt, option::flag, option::has_arg, last_nonopt, my_index(), option::name, nextchar, NONOPTION_P, NULL, optarg, opterr, optind, optopt, ordering, p, PERMUTE, posixly_correct, REQUIRE_ORDER, and option::val.
Referenced by getopt(), getopt_long(), and getopt_long_only().
|
static |
Definition at line 304 of file getopt.c.
References argv, first_nonopt, i, last_nonopt, len, malloc(), memcpy(), memset(), NULL, optind, and SWAP_FLAGS.
Referenced by _getopt_internal().
| char* getenv | ( | ) |
Definition at line 973 of file getopt.c.
References _getopt_internal(), and argv.
|
static |
Definition at line 214 of file getopt.c.
References cmd_descs_generate::str.
Referenced by _getopt_internal().
| int __getopt_initialized |
Definition at line 133 of file getopt.c.
Referenced by _getopt_internal().
|
static |
Definition at line 247 of file getopt.c.
Referenced by _getopt_initialize(), _getopt_internal(), and exchange().
|
static |
Definition at line 248 of file getopt.c.
Referenced by _getopt_initialize(), _getopt_internal(), and exchange().
|
static |
Definition at line 142 of file getopt.c.
Referenced by _getopt_initialize(), _getopt_internal(), and file_getbuffer().
| char* optarg |
Definition at line 112 of file getopt.c.
Referenced by _getopt_internal(), and getopt().
| int opterr = 1 |
Definition at line 147 of file getopt.c.
Referenced by _getopt_internal(), and getopt().
| int optind = 1 |
Definition at line 127 of file getopt.c.
Referenced by _getopt_initialize(), _getopt_internal(), exchange(), and getopt().
| int optopt = '?' |
Definition at line 153 of file getopt.c.
Referenced by _getopt_internal(), and getopt().
| enum { ... } ordering |
Referenced by _getopt_initialize(), and _getopt_internal().
|
static |
Definition at line 190 of file getopt.c.
Referenced by _getopt_initialize(), _getopt_internal(), and _getopt_internal_r().