| /external/grub/lib/ |
| getopt.c | 98 As `getopt' works, it permutes the elements of ARGV so that, 114 each non-option ARGV-element is returned here. */ 118 /* Index in ARGV of the next element to be scanned. 128 how much of ARGV has been scanned so far. */ 144 by advancing to the next ARGV-element. */ 159 /* Describe how to deal with options that follow non-option ARGV-elements. 172 PERMUTE is the default. We permute the contents of ARGV as we scan, 178 to expect options and other ARGV-elements in any order and that care about 179 the ordering of the two. We describe each non-option ARGV-element 250 /* Describe the part of ARGV that contains non-options that hav [all...] |
| /external/iproute2/tc/ |
| m_action.c | 81 char **argv = *argv_p; local 84 fprintf(stderr, "Unknown action \"%s\", hence option \"%s\" is unparsable\n", au->id, *argv); 155 new_cmd(char **argv) 157 if ((matches(*argv, "change") == 0) || 158 (matches(*argv, "replace") == 0)|| 159 (matches(*argv, "delete") == 0)|| 160 (matches(*argv, "add") == 0)) 171 char **argv = *argv_p; local 191 if (strcmp(*argv, "action") == 0 ) { 193 argv++ 376 char **argv = *argv_p; local 486 char **argv = *argv_p; local [all...] |
| q_sfb.c | 51 static int sfb_parse_opt(struct qdisc_util *qu, int argc, char **argv, 66 if (strcmp(*argv, "rehash") == 0) { 68 if (get_u32(&opt.rehash_interval, *argv, 0)) { 72 } else if (strcmp(*argv, "db") == 0) { 74 if (get_u32(&opt.warmup_time, *argv, 0)) { 78 } else if (strcmp(*argv, "limit") == 0) { 80 if (get_u32(&opt.limit, *argv, 0)) { 84 } else if (strcmp(*argv, "max") == 0) { 86 if (get_u32(&opt.max, *argv, 0)) { 90 } else if (strcmp(*argv, "target") == 0) [all...] |
| f_flow.c | 63 static int flow_parse_keys(__u32 *keys, __u32 *nkeys, char *argv) 70 s = argv; 98 static int get_addend(__u32 *addend, char *argv, __u32 keys) 104 if (*argv == '-') { 106 argv++; 109 if (get_u32(&tmp, argv, 0) == 0) 114 get_addr(&addr, argv, AF_UNSPEC) == 0) { 134 int argc, char **argv, struct nlmsghdr *n) 157 if (matches(*argv, "map") == 0) { 159 } else if (matches(*argv, "hash") == 0) [all...] |
| q_htb.c | 61 static int htb_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) 71 if (matches(*argv, "r2q") == 0) { 73 if (get_u32(&opt.rate2quantum, *argv, 10)) { 76 } else if (matches(*argv, "default") == 0) { 78 if (get_u32(&opt.defcls, *argv, 16)) { 81 } else if (matches(*argv, "debug") == 0) { 82 NEXT_ARG(); p = *argv; 88 fprintf(stderr, "What is \"%s\"?\n", *argv); 92 argc--; argv++; 101 static int htb_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n [all...] |
| f_basic.c | 39 int argc, char **argv, struct nlmsghdr *n) 63 if (matches(*argv, "match") == 0) { 65 if (parse_ematch(&argc, &argv, TCA_BASIC_EMATCHES, n)) { 70 } else if (matches(*argv, "classid") == 0 || 71 strcmp(*argv, "flowid") == 0) { 74 if (get_tc_classid(&handle, *argv)) { 79 } else if (matches(*argv, "action") == 0) { 81 if (parse_action(&argc, &argv, TCA_BASIC_ACT, n)) { 87 } else if (matches(*argv, "police") == 0) { 89 if (parse_police(&argc, &argv, TCA_BASIC_POLICE, n)) [all...] |
| f_cgroup.c | 26 int argc, char **argv, struct nlmsghdr *n) 47 if (matches(*argv, "match") == 0) { 49 if (parse_ematch(&argc, &argv, TCA_CGROUP_EMATCHES, n)) { 54 } else if (matches(*argv, "action") == 0) { 56 if (parse_action(&argc, &argv, TCA_CGROUP_ACT, n)) { 62 } else if (matches(*argv, "police") == 0) { 64 if (parse_police(&argc, &argv, TCA_CGROUP_POLICE, n)) { 69 } else if (strcmp(*argv, "help") == 0) { 73 fprintf(stderr, "What is \"%s\"?\n", *argv);
|
| q_drr.c | 37 static int drr_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) 40 if (strcmp(*argv, "help") == 0) { 44 fprintf(stderr, "What is \"%s\"?\n", *argv); 52 static int drr_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, 62 if (strcmp(*argv, "quantum") == 0) { 64 if (get_size(&tmp, *argv)) { 69 } else if (strcmp(*argv, "help") == 0) { 73 fprintf(stderr, "What is \"%s\"?\n", *argv); 77 argc--; argv++;
|
| /external/oprofile/libpopt/ |
| poptparse.c | 14 int poptDupArgv(int argc, const char **argv, 17 size_t nb = (argc + 1) * sizeof(*argv); 22 if (argc <= 0 || argv == NULL) /* XXX can't happen */ 25 if (argv[i] == NULL) 27 nb += strlen(argv[i]) + 1; 34 dst += (argc + 1) * sizeof(*argv); 39 dst += strlen(strcpy(dst, argv[i])) + 1; 62 const char ** argv = malloc(sizeof(*argv) * argvAlloced); local 68 if (argv == NULL) return rc [all...] |
| /system/core/toolbox/ |
| cat.c | 125 cook_args(char **argv) 132 if (*argv) { 133 if (!strcmp(*argv, "-")) 135 else if ((fp = fopen(*argv, 139 ++argv; 142 filename = *argv++; 147 } while (*argv); 187 raw_args(char **argv) 194 if (*argv) { 195 if (!strcmp(*argv, "-") [all...] |
| date.c | 43 int date_main(int argc, char *argv[]) 59 c = getopt(argc, argv, "us:"); 71 argv[0], optopt); 76 fprintf(stderr,"%s [-u] [date]\n", argv[0]); 80 int hasfmt = argc == optind + 1 && argv[optind][0] == '+'; 87 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S GMT %Y"), 92 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S %Z %Y"), 100 tmptr = getdate(argv[optind]); 107 if(getdate_r(argv[optind], &tm) < 0) { 113 //strptime(argv[optind], NULL, &tm) [all...] |
| /external/linux-tools-perf/ |
| perf.c | 93 static int handle_options(const char ***argv, int *argc, int *envchanged) 98 const char *cmd = (*argv)[0]; 135 setenv(PERF_DIR_ENVIRONMENT, (*argv)[1], 1); 138 (*argv)++; 150 setenv(PERF_WORK_TREE_ENVIRONMENT, (*argv)[1], 1); 153 (*argv)++; 164 strncpy(debugfs_mntpt, (*argv)[1], MAXPATHLEN); 168 (*argv)++; 180 (*argv)++; 187 static int handle_alias(int *argcp, const char ***argv) [all...] |
| /external/iproute2/ip/ |
| ipmaddr.c | 247 static int multiaddr_list(int argc, char **argv) 256 if (strcmp(*argv, "dev") == 0) { 259 if (matches(*argv, "help") == 0) 262 duparg2("dev", *argv); 263 filter.dev = *argv; 265 argv++; argc--; 278 int multiaddr_modify(int cmd, int argc, char **argv) 291 if (strcmp(*argv, "dev") == 0) { 294 duparg("dev", *argv); 295 strncpy(ifr.ifr_name, *argv, IFNAMSIZ) [all...] |
| iplink_macvlan.c | 37 static int macvlan_parse_opt(struct link_util *lu, int argc, char **argv, 41 if (matches(*argv, "mode") == 0) { 45 if (strcmp(*argv, "private") == 0) 47 else if (strcmp(*argv, "vepa") == 0) 49 else if (strcmp(*argv, "bridge") == 0) 51 else if (strcmp(*argv, "passthru") == 0) 57 } else if (matches(*argv, "help") == 0) { 61 fprintf(stderr, "macvlan: what is \"%s\"?\n", *argv); 65 argc--, argv++;
|
| /external/bison/lib/ |
| getopt1.c | 41 getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, 44 return _getopt_internal (argc, (char **) argv, options, long_options, 49 _getopt_long_r (int argc, char **argv, const char *options, 53 return _getopt_internal_r (argc, argv, options, long_options, opt_index, 63 getopt_long_only (int argc, char *__getopt_argv_const *argv, 67 return _getopt_internal (argc, (char **) argv, options, long_options, 72 _getopt_long_only_r (int argc, char **argv, const char *options, 76 return _getopt_internal_r (argc, argv, options, long_options, opt_index, 87 main (int argc, char **argv) 107 c = getopt_long (argc, argv, "abc:d:0123456789" [all...] |
| /ndk/sources/host-tools/sed-4.2.1/lib/ |
| getopt1.c | 41 getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, 44 return _getopt_internal (argc, (char **) argv, options, long_options, 49 _getopt_long_r (int argc, char **argv, const char *options, 53 return _getopt_internal_r (argc, argv, options, long_options, opt_index, 63 getopt_long_only (int argc, char *__getopt_argv_const *argv, 67 return _getopt_internal (argc, (char **) argv, options, long_options, 72 _getopt_long_only_r (int argc, char **argv, const char *options, 76 return _getopt_internal_r (argc, argv, options, long_options, opt_index, 87 main (int argc, char **argv) 107 c = getopt_long (argc, argv, "abc:d:0123456789" [all...] |
| /external/wpa_supplicant_8/wpa_supplicant/ |
| wpa_cli.c | 442 char *argv[]) 456 res = os_snprintf(pos, end - pos, " %s", argv[i]); 472 int argc, char *argv[]) 481 if (write_cmd(buf, sizeof(buf), cmd, argc, argv) < 0) 487 static int wpa_cli_cmd_ifname(struct wpa_ctrl *ctrl, int argc, char *argv[]) 493 static int wpa_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[]) 495 if (argc > 0 && os_strcmp(argv[0], "verbose") == 0) 497 if (argc > 0 && os_strcmp(argv[0], "wps") == 0) 503 static int wpa_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[]) 509 static int wpa_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[]) 3382 char *argv[max_args]; local [all...] |
| /ndk/sources/host-tools/make-3.81/ |
| getopt.c | 92 As `getopt' works, it permutes the elements of ARGV so that, 108 each non-option ARGV-element is returned here. */ 112 /* Index in ARGV of the next element to be scanned. 122 how much of ARGV has been scanned so far. */ 138 by advancing to the next ARGV-element. */ 153 /* Describe how to deal with options that follow non-option ARGV-elements. 166 PERMUTE is the default. We permute the contents of ARGV as we scan, 172 to expect options and other ARGV-elements in any order and that care about 173 the ordering of the two. We describe each non-option ARGV-element 242 /* Describe the part of ARGV that contains non-options that hav [all...] |
| /external/chromium/net/tools/dnssec_chain_verify/ |
| dnssec_chain_verify.cc | 19 int main(int argc, char** argv) { 23 return usage(argv[0]); 30 if (strcmp(argv[i], "--ignore-timestamps") == 0) { 33 target = argv[i]; 35 infilename = argv[i]; 37 return usage(argv[0]); 42 return usage(argv[0]); 47 return usage(argv[0]); 63 return usage(argv[0]);
|
| /external/chromium_org/third_party/yasm/source/patched-yasm/ |
| genstring.c | 35 main(int argc, char *argv[]) 45 argv[0]); 49 out = fopen(argv[2], "wt"); 52 fprintf(stderr, "Could not open `%s'.\n", argv[2]); 60 "static const char *%s[] = {\n", argv[3], argv[1]); 63 in = fopen(argv[i], "rt"); 65 fprintf(stderr, "Could not open `%s'.\n", argv[i]); 67 remove(argv[2]);
|
| /external/chromium_org/tools/gyp/samples/ |
| samples | 58 def Main(argv): 59 if len(argv) != 3 or argv[1] not in ['push', 'pull']: 60 print 'Usage: %s push/pull PATH_TO_CHROME' % argv[0] 63 path_to_chrome = argv[2] 67 local_file = os.path.join(os.path.dirname(argv[0]), os.path.split(g)[1]) 68 if argv[1] == 'push': 71 elif argv[1] == 'pull': 81 sys.exit(Main(sys.argv))
|
| /external/openfst/src/bin/ |
| fstequivalent.cc | 36 int main(int argc, char **argv) { 42 usage += argv[0]; 46 SET_FLAGS(usage.c_str(), &argc, &argv, true); 52 string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1]; 53 string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2]; 56 LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input."; 78 LOG(ERROR) << argv[0] << ": Unknown selection type \""
|
| fstminimize.cc | 28 int main(int argc, char **argv) { 35 usage += argv[0]; 39 SET_FLAGS(usage.c_str(), &argc, &argv, true); 45 string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : ""; 46 string out1_name = (argc > 2 && strcmp(argv[2], "-") != 0) ? argv[2] : ""; 47 string out2_name = (argc > 3 && strcmp(argv[3], "-") != 0) ? argv[3] : "";
|
| /external/openfst/src/extensions/far/ |
| farcreate.cc | 37 int main(int argc, char **argv) { 41 usage += argv[0]; 45 SET_FLAGS(usage.c_str(), &argc, &argv, true); 49 in_fnames.push_back(strcmp(argv[i], "") != 0 ? argv[i] : ""); 51 in_fnames.push_back(argc == 2 && strcmp(argv[1], "-") != 0 ? argv[1] : ""); 54 argc > 2 && strcmp(argv[argc - 1], "-") != 0 ? argv[argc - 1] : "";
|
| /frameworks/base/cmds/backup/ |
| backup.cpp | 29 usage(int argc, const char** argv) 31 const char* p = argv[0]; 105 main(int argc, const char** argv) 110 if (argc == 3 && 0 == strcmp(argv[1], "list")) { 111 return perform_list(argv[2]); 113 if (argc == 4 && 0 == strcmp(argv[1], "print")) { 114 return perform_print(argv[2], argv[3]); 116 return usage(argc, argv);
|