|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "getopt.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "getopt_int.h"
Go to the source code of this file.
Macros | |
| #define | _(msgid) (msgid) |
| #define | flockfile(fp) /* nop */ |
| #define | funlockfile(fp) /* nop */ |
| #define | __libc_use_alloca(size) 0 |
| #define | alloca(size) (abort (), (void *)0) |
| #define | NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0') |
| #define | GETOPT_ENTRY(NAME, POSIXLY_CORRECT) |
Functions | |
| static void | exchange (char **argv, struct _getopt_data *d) |
| static int | process_long_option (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d, int print_errors, const char *prefix) |
| static const char * | _getopt_initialize (int argc, char **argv, const char *optstring, struct _getopt_data *d, int posixly_correct) |
| int | _getopt_internal_r (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d, int posixly_correct) |
| int | _getopt_internal (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, int posixly_correct) |
Variables | |
| char * | optarg |
| int | optind = 1 |
| int | opterr = 1 |
| int | optopt = '?' |
| static struct _getopt_data | getopt_data |
|
static |
Definition at line 378 of file getopt.c.
Referenced by _getopt_internal_r().
| int _getopt_internal | ( | int | argc, |
| char ** | argv, | ||
| const char * | optstring, | ||
| const struct option * | longopts, | ||
| int * | longind, | ||
| int | long_only, | ||
| int | posixly_correct | ||
| ) |
Definition at line 700 of file getopt.c.
| int _getopt_internal_r | ( | int | argc, |
| char ** | argv, | ||
| const char * | optstring, | ||
| const struct option * | longopts, | ||
| int * | longind, | ||
| int | long_only, | ||
| struct _getopt_data * | d, | ||
| int | posixly_correct | ||
| ) |
Definition at line 468 of file getopt.c.
Referenced by _getopt_internal(), _getopt_long_only_r(), and _getopt_long_r().
|
static |
Definition at line 128 of file getopt.c.
Referenced by _getopt_internal_r().
|
static |
Definition at line 191 of file getopt.c.
Referenced by _getopt_internal_r().
|
static |
Definition at line 116 of file getopt.c.
Referenced by _getopt_internal().
| int opterr = 1 |
Definition at line 106 of file getopt.c.
Referenced by check_option().