Home
last modified time | relevance | path

Searched refs:optind (Results 1 – 9 of 9) sorted by relevance

/third_party/ulib/musl/src/misc/
A Dgetopt.c29 if (!optind || __optreset) { in getopt()
32 optind = 1; in getopt()
35 if (optind >= argc || !argv[optind]) in getopt()
38 if (argv[optind][0] != '-') { in getopt()
40 optarg = argv[optind++]; in getopt()
46 if (!argv[optind][1]) in getopt()
49 if (argv[optind][1] == '-' && !argv[optind][2]) in getopt()
50 return optind++, -1; in getopt()
62 if (!argv[optind][optpos]) { in getopt()
63 optind++; in getopt()
[all …]
A Dgetopt_long.c26 if (!optind || __optreset) { in __getopt_long()
29 optind = 1; in __getopt_long()
31 if (optind >= argc || !argv[optind]) in __getopt_long()
33 skipped = optind; in __getopt_long()
42 optind = i; in __getopt_long()
44 resumed = optind; in __getopt_long()
59 ((longonly && argv[optind][1]) || (argv[optind][1] == '-' && argv[optind][2]))) { in __getopt_long_core()
81 optind++; in __getopt_long_core()
102 optind++; in __getopt_long_core()
115 argv[optind] + 2, strlen(argv[optind] + 2)); in __getopt_long_core()
[all …]
/third_party/uapp/dash/src/
A Doptions.c169 shellparam.optind = 1; in procargs()
319 shellparam.optind = 1; in setparam()
365 shellparam.optind = 1; in shiftcmd()
397 shellparam.optind = number(value) ?: 1;
417 if ((unsigned)shellparam.optind > shellparam.nparam + 1) { in getoptscmd()
418 shellparam.optind = 1; in getoptscmd()
424 if ((unsigned)shellparam.optind > argc - 2) { in getoptscmd()
425 shellparam.optind = 1; in getoptscmd()
441 int ind = shellparam.optind; in getopts()
444 shellparam.optind = -1; in getopts()
[all …]
A Doptions.h41 int optind; /* next parameter to be processed by getopts */ member
A Deval.c986 shellparam.optind = 1; in evalfun()
/third_party/uapp/fsck-msdosfs/
A Dmain.c94 argc -= optind; in main()
95 argv += optind; in main()
/third_party/ulib/musl/include/
A Dgetopt.h9 extern int optind, opterr, optopt, optreset;
A Dunistd.h119 extern int optind, opterr, optopt;
/third_party/uapp/mkfs-msdosfs/
A Dnewfs_msdos.c151 argc -= optind; in main()
152 argv += optind; in main()

Completed in 14 milliseconds