Home
last modified time | relevance | path

Searched refs:optind (Results 1 - 25 of 231) sorted by relevance

12345678910

/third_party/ninja/src/
H A Dgetopt.c18 The external variable optind is the index of the next array element of argv
72 getopt() and friends to return EOF with optind != argc.
106 int optind = 0; variable
164 if (optind >= argc || argv[optind] == NULL) in getopt_internal()
166 if (strcmp (argv[optind], "--") == 0) in getopt_internal()
168 optind++; in getopt_internal()
172 if (optind == 0) in getopt_internal()
173 optind = optwhere = 1; in getopt_internal()
193 permute_from = optind; in getopt_internal()
[all...]
/third_party/backends/lib/
H A Dgetopt.c135 Otherwise, `optind' communicates from one call to the next
139 int optind = 1;
141 /* Formerly, initialization of getopt depended on optind==0, which
194 `--' can cause `getopt' to return -1 with `optind' != ARGC. */
301 The other is elements [last_nonopt,optind), which contains all
317 int top = optind;
387 first_nonopt += (optind - last_nonopt);
388 last_nonopt = optind;
406 first_nonopt = last_nonopt = optind;
473 updating `optind' an
138 int optind = 1; global() variable
[all...]
H A Dgetopt1.c121 int this_option_optind = optind ? optind : 1;
188 if (optind < argc)
191 while (optind < argc)
192 printf ("%s ", argv[optind++]);
/third_party/ffmpeg/compat/
H A Dgetopt.c37 static int optind = 1; variable
48 if (optind >= argc || in getopt()
49 argv[optind][0] != '-' || argv[optind][1] == '\0') in getopt()
51 else if (!strcmp(argv[optind], "--")) { in getopt()
52 optind++; in getopt()
56 optopt = c = argv[optind][sp]; in getopt()
59 if (argv[optind][++sp] == '\0') { in getopt()
60 optind++; in getopt()
66 if (argv[optind][s in getopt()
[all...]
/third_party/libcoap/examples/
H A Dgetopt.c18 static int optind = 1; variable
29 if (optind >= argc || in getopt()
30 argv[optind][0] != '-' || argv[optind][1] == '\0') in getopt()
32 else if (!strcmp(argv[optind], "--")) { in getopt()
33 optind++; in getopt()
37 optopt = c = argv[optind][sp]; in getopt()
40 if (argv[optind][++sp] == '\0') { in getopt()
41 optind++; in getopt()
47 if (argv[optind][s in getopt()
[all...]
/third_party/musl/src/misc/
H A Dgetopt_long.c27 if (!optind || __optreset) { in __getopt_long()
30 optind = 1; in __getopt_long()
32 if (optind >= argc || !argv[optind]) return -1; in __getopt_long()
33 skipped = optind; in __getopt_long()
36 for (i=optind; ; i++) { in __getopt_long()
40 optind = i; in __getopt_long()
42 resumed = optind; in __getopt_long()
45 int i, cnt = optind-resumed; in __getopt_long()
47 permute(argv, skipped, optind in __getopt_long()
[all...]
H A Dgetopt.c11 int optind=1, opterr=1, optopt, __optpos, __optreset=0; variable
35 if (!optind || __optreset) { in getopt()
38 optind = 1; in getopt()
41 if (optind >= argc || !argv[optind]) in getopt()
44 if (argv[optind][0] != '-') { in getopt()
46 optarg = argv[optind++]; in getopt()
52 if (!argv[optind][1]) in getopt()
55 if (argv[optind][1] == '-' && !argv[optind][ in getopt()
[all...]
/third_party/glfw/deps/
H A Dgetopt.c38 /* The variable optind [...] shall be initialized to 1 by the system. */
39 int optind = 1; variable
61 if (optind >= argc) in getopt()
64 /* If, when getopt() is called argv[optind] is a null pointer, getopt() in getopt()
65 shall return -1 without changing optind. */ in getopt()
66 if (argv[optind] == NULL) in getopt()
69 /* If, when getopt() is called *argv[optind] is not the character '-', in getopt()
70 getopt() shall return -1 without changing optind. */ in getopt()
71 if (*argv[optind] != '-') in getopt()
74 /* If, when getopt() is called argv[optind] point in getopt()
[all...]
/third_party/mesa3d/src/getopt/
H A Dgetopt_long.c59 int optind = 1; /* index into parent argv vector */ variable
169 optind++; in parse_long_options()
231 optarg = nargv[optind++]; in parse_long_options()
250 --optind; in parse_long_options()
255 --optind; in parse_long_options()
301 * XXX Some GNU programs (like cvs) set optind to 0 instead of in getopt_internal()
304 if (optind == 0) in getopt_internal()
305 optind = optreset = 1; in getopt_internal()
313 if (optind >= nargc) { /* end of argument vector */ in getopt_internal()
318 optind, narg in getopt_internal()
[all...]
/third_party/libunwind/libunwind/tests/
H A Dtest-ptrace.c173 int status, pid, pending_sig, optind = 1, state = 1; in main() local
192 while (argv[optind][0] == '-') in main()
194 if (strcmp (argv[optind], "-v") == 0) in main()
195 ++optind, verbose = 1; in main()
196 else if (strcmp (argv[optind], "-i") == 0) in main()
197 ++optind, trace_mode = INSTRUCTION; /* backtrace at each insn */ in main()
198 else if (strcmp (argv[optind], "-s") == 0) in main()
199 ++optind, trace_mode = SYSCALL; /* backtrace at each syscall */ in main()
200 else if (strcmp (argv[optind], "-t") == 0) in main()
203 ++optind, trace_mod in main()
[all...]
/third_party/alsa-lib/test/
H A Dseq.c200 if (argc - optind <= 0) { in main()
211 if (!strcmp(argv[optind], "system")) { in main()
213 } else if (!strcmp(argv[optind], "queue")) { in main()
214 arg = argc - optind > 1 ? atoi(argv[optind + 1]) : -1; in main()
216 } else if (!strcmp(argv[optind], "client")) { in main()
217 arg = argc - optind > 1 ? atoi(argv[optind + 1]) : -1; in main()
219 } else if (!strcmp(argv[optind], "port")) { in main()
220 arg = argc - optind > in main()
[all...]
/third_party/libwebsockets/win32port/win32helpers/
H A Dgetopt.c54 optind = 1, /* index into parent argv vector */ variable
102 if (optind >= nargc || *(place = nargv[optind]) != '-') {
108 ++optind;
122 ++optind;
131 ++optind;
136 else if (nargc <= ++optind) { /* no arg */
147 optarg = nargv[optind];
149 ++optind;
H A Dgetopt_long.c45 extern int optind; /* index into parent argv vector */
94 if (optind >= nargc || *(place = nargv[optind]) != '-') {
99 /* ++optind; */
113 ++optind;
122 ++optind;
126 else if (nargc <= ++optind) { /* no arg */
134 optarg = nargv[optind];
136 ++optind;
156 ++optind;
[all...]
/third_party/node/deps/cares/src/tools/
H A Dares_getopt.c56 state->optind = 1; in ares_getopt_init()
72 if (state->optind >= state->argc) { in ares_getopt()
75 state->place = state->argv[state->optind]; in ares_getopt()
83 state->optind++; in ares_getopt()
101 ++state->optind; in ares_getopt()
114 ++state->optind; in ares_getopt()
120 } else if (state->argc <= ++state->optind) { /* no arg */ in ares_getopt()
131 state->optarg = state->argv[state->optind]; in ares_getopt()
134 ++state->optind; in ares_getopt()
/third_party/pulseaudio/src/utils/
H A Dpactl.c2764 if (optind < argc) { in main()
2765 if (pa_streq(argv[optind], "stat")) { in main()
2768 } else if (pa_streq(argv[optind], "info")) in main()
2771 else if (pa_streq(argv[optind], "exit")) in main()
2774 else if (pa_streq(argv[optind], "list")) { in main()
2777 for (int i = optind+1; i < argc; i++) { in main()
2792 } else if (pa_streq(argv[optind], "upload-sample")) { in main()
2797 if (optind+1 >= argc) { in main()
2802 if (optind+2 < argc) in main()
2803 sample_name = pa_xstrdup(argv[optind in main()
[all...]
/third_party/icu/tools/multi/proj/chello/
H A Ddate.c65 int optind = 1; in main() local
74 for(optind = 1; optind < argc; ++optind) { in main()
75 arg = argv[optind]; in main()
106 if ( optind + 1 < argc ) { in main()
107 optind++; in main()
108 format = argv[optind]; in main()
114 ++optind; in main()
/third_party/libinput/tools/
H A Dlibinput-quirks.c144 if (optind >= argc) { in main()
149 if (streq(argv[optind], "list")) { in main()
150 optind++; in main()
151 if (optind >= argc) { in main()
155 } else if (streq(argv[optind], "validate")) { in main()
156 optind++; in main()
157 if (optind < argc) { in main()
163 fprintf(stderr, "Unnkown action '%s'\n", argv[optind]); in main()
201 path = argv[optind]; in main()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-fts/
H A Dmain.c106 while (optind < argc) { in main()
108 fi = lws_fts_file_index(t, argv[optind], in main()
109 (int)strlen(argv[optind]), 1); in main()
112 __func__, argv[optind]); in main()
117 fd = open(argv[optind], O_RDONLY); in main()
120 argv[optind]); in main()
141 optind++; in main()
164 while (optind < argc) { in main()
172 params.needle = argv[optind]; in main()
217 optind in main()
[all...]
/third_party/ltp/pan/
H A Dltp-bump.c80 if (optind == argc) { in main()
91 while (optind < argc) { in main()
92 /*printf("argv[%d] = (%s)\n", optind, argv[optind] ); */ in main()
93 nanny = zoo_getpid(zoo, argv[optind]); in main()
96 argv[optind]); in main()
102 argv[optind], nanny); in main()
110 ++optind; in main()
/third_party/selinux/libselinux/utils/
H A Dselinux_check_access.c38 if ((argc - optind) != 4) in main()
45 rc = selinux_check_access(argv[optind], argv[optind + 1], in main()
46 argv[optind + 2], argv[optind + 3], in main()
H A Dgetconlist.c42 if (((argc - optind) < 1) || ((argc - optind) > 2)) in main()
53 user = argv[optind]; in main()
56 if (((argc - optind) < 2)) { in main()
63 cur_context = argv[optind + 1]; in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hs20/client/
H A Dosu_client.c3254 if (argc - optind < 1) { in main()
3268 "================", argv[optind]); in main()
3271 if (strcmp(argv[optind], "to_tnds") == 0) { in main()
3272 if (argc - optind < 2) { in main()
3276 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3277 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3279 } else if (strcmp(argv[optind], "to_tnds2") == 0) { in main()
3280 if (argc - optind < in main()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/hs20/client/
H A Dosu_client.c3253 if (argc - optind < 1) { in main()
3267 "================", argv[optind]); in main()
3270 if (strcmp(argv[optind], "to_tnds") == 0) { in main()
3271 if (argc - optind < 2) { in main()
3275 cmd_to_tnds(&ctx, argv[optind + 1], argv[optind + 2], in main()
3276 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3278 } else if (strcmp(argv[optind], "to_tnds2") == 0) { in main()
3279 if (argc - optind < in main()
[all...]
/third_party/alsa-utils/amixer/
H A Damixer.c1880 if (argc - optind <= 0) { in main()
1884 if (!strcmp(argv[optind], "help")) { in main()
1886 } else if (!strcmp(argv[optind], "info")) { in main()
1888 } else if (!strcmp(argv[optind], "controls")) { in main()
1890 } else if (!strcmp(argv[optind], "contents")) { in main()
1892 } else if (!strcmp(argv[optind], "scontrols") || !strcmp(argv[optind], "simple")) { in main()
1894 } else if (!strcmp(argv[optind], "scontents")) { in main()
1896 } else if (!strcmp(argv[optind], "sset") || !strcmp(argv[optind], "se in main()
[all...]
/third_party/ltp/testcases/lib/
H A Dtst_getconf.c39 if (!strcmp(argv[optind], "_NPROCESSORS_ONLN")) { in main()
41 } else if (!strcmp(argv[optind], "PAGESIZE") || in main()
42 !strcmp(argv[optind], "PAGE_SIZE")) { in main()
46 argv[optind]); in main()

Completed in 22 milliseconds

12345678910