HomeSort by relevance Sort by last modified time
    Searched refs:argv (Results 376 - 400 of 5111) sorted by null

<<11121314151617181920>>

  /system/core/fs_mgr/
fs_mgr_main.c 33 * Return the number of argv[] entries consumed.
35 static void parse_options(int argc, char *argv[], int *a_flag, int *u_flag, int *n_flag,
38 me = basename(strdup(argv[0]));
44 if (!strcmp(argv[1], "-a")) {
50 if (!strcmp(argv[1], "-n")) {
55 *n_name = argv[2];
56 *n_blk_dev = argv[3];
58 if (!strcmp(argv[1], "-u")) {
78 int main(int argc, char *argv[])
91 parse_options(argc, argv, &a_flag, &u_flag, &n_flag, &n_name, &n_blk_dev)
    [all...]
  /system/core/toolbox/
mkdir.c 16 int mkdir_main(int argc, char *argv[])
20 if(argc < 2 || strcmp(argv[1], "--help") == 0) {
24 int recursive = (strcmp(argv[1], "-p") == 0 ||
25 strcmp(argv[1], "--parents") == 0) ? 1 : 0;
34 argv++;
42 argv++;
47 pathpiece = strtok(argv[0], "/");
48 if(argv[0][0] == '/') {
69 ret = mkdir(argv[0], 0777);
71 fprintf(stderr, "mkdir failed for %s, %s\n", argv[0], strerror(errno))
    [all...]
  /external/iproute2/ip/
iptunnel.c 50 static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p)
67 if (strcmp(*argv, "mode") == 0) {
69 if (strcmp(*argv, "ipip") == 0 ||
70 strcmp(*argv, "ip/ip") == 0) {
76 } else if (strcmp(*argv, "gre") == 0 ||
77 strcmp(*argv, "gre/ip") == 0) {
83 } else if (strcmp(*argv, "sit") == 0 ||
84 strcmp(*argv, "ipv6/ip") == 0) {
90 } else if (strcmp(*argv, "isatap") == 0) {
101 } else if (strcmp(*argv, "key") == 0)
    [all...]
iplink_can.c 97 static int can_parse_opt(struct link_util *lu, int argc, char **argv,
105 if (matches(*argv, "bitrate") == 0) {
107 if (get_u32(&bt.bitrate, *argv, 0))
108 invarg("invalid \"bitrate\" value\n", *argv);
109 } else if (matches(*argv, "sample-point") == 0) {
113 if (get_float(&sp, *argv))
115 *argv);
117 } else if (matches(*argv, "tq") == 0) {
119 if (get_u32(&bt.tq, *argv, 0))
120 invarg("invalid \"tq\" value\n", *argv);
    [all...]
ip6tunnel.c 109 static int parse_args(int argc, char **argv, int cmd, struct ip6_tnl_parm *p)
117 if (strcmp(*argv, "mode") == 0) {
119 if (strcmp(*argv, "ipv6/ipv6") == 0 ||
120 strcmp(*argv, "ip6ip6") == 0)
122 else if (strcmp(*argv, "ip/ipv6") == 0 ||
123 strcmp(*argv, "ipv4/ipv6") == 0 ||
124 strcmp(*argv, "ipip6") == 0 ||
125 strcmp(*argv, "ip4ip6") == 0)
127 else if (strcmp(*argv, "any/ipv6") == 0 ||
128 strcmp(*argv, "any") == 0
    [all...]
  /external/iproute2/tc/
tc_qdisc.c 47 int tc_qdisc_modify(int cmd, unsigned flags, int argc, char **argv)
75 if (strcmp(*argv, "dev") == 0) {
78 duparg("dev", *argv);
79 strncpy(d, *argv, sizeof(d)-1);
80 } else if (strcmp(*argv, "handle") == 0) {
83 duparg("handle", *argv);
85 if (get_qdisc_handle(&handle, *argv))
86 invarg(*argv, "invalid qdisc ID");
88 } else if (strcmp(*argv, "root") == 0) {
95 } else if (strcmp(*argv, "ingress") == 0)
    [all...]
f_u32.c 200 char **argv = *argv_p; local
201 char *p = *argv;
210 } else if (matches(*argv, "nexthdr+") == 0) {
213 p = *argv;
218 argc--; argv++;
221 *argv_p = argv;
231 char **argv = *argv_p; local
238 if (get_u32(&key, *argv, 0))
240 argc--; argv++;
242 if (get_u32(&mask, *argv, 16)
263 char **argv = *argv_p; local
294 char **argv = *argv_p; local
329 char **argv = *argv_p; local
364 char **argv = *argv_p; local
410 char **argv = *argv_p; local
449 char **argv = *argv_p; local
487 char **argv = *argv_p; local
547 char **argv = *argv_p; local
591 char **argv = *argv_p; local
617 char **argv = *argv_p; local
641 char **argv = *argv_p; local
664 char **argv = *argv_p; local
699 char **argv = *argv_p; local
746 char **argv = *argv_p; local
797 char **argv = *argv_p; local
    [all...]
p_icmp.c 33 char **argv = *argv_p;
38 if (strcmp(*argv, "type") == 0) {
40 res = parse_u8(&argc, &argv, 0);
43 if (strcmp(*argv, "code") == 0) {
45 res = parse_u8(&argc, &argv, 1);
52 *argv_p = argv;
  /external/wpa_supplicant_8/hostapd/
hostapd_cli.c 207 static int hostapd_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[])
213 static int hostapd_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[])
219 static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[])
270 static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
278 snprintf(buf, sizeof(buf), "STA %s", argv[0]);
284 char *argv[])
292 snprintf(buf, sizeof(buf), "NEW_STA %s", argv[0]);
298 char *argv[])
308 argv[0], argv[1])
980 char *argv[max_args]; local
    [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...]
  /sdk/emulator/opengl/host/renderer/
main.cpp 44 int main(int argc, char *argv[])
57 if (!strcmp(argv[i], "-windowid")) {
58 if (++i >= argc || sscanf(argv[i],"%d", &iWindowId) != 1) {
59 printUsage(argv[0]);
62 else if (!strncmp(argv[i], "-x", 2)) {
63 if (++i >= argc || sscanf(argv[i],"%d", &winX) != 1) {
64 printUsage(argv[0]);
67 else if (!strncmp(argv[i], "-y", 2)) {
68 if (++i >= argc || sscanf(argv[i],"%d", &winY) != 1) {
69 printUsage(argv[0])
    [all...]
  /bootable/recovery/mtdutils/
flash_image.c 51 int main(int argc, char **argv) {
58 fprintf(stderr, "usage: %s partition file.img\n", argv[0]);
63 const MtdPartition *partition = mtd_find_partition_by_name(argv[1]);
64 if (partition == NULL) die("can't find %s partition", argv[1]);
68 int fd = open(argv[2], O_RDONLY);
69 if (fd < 0) die("error opening %s", argv[2]);
73 if (headerlen <= 0) die("error reading %s header", argv[2]);
77 ALOGW("error opening %s: %s\n", argv[1], strerror(errno));
83 ALOGW("error reading %s: %s\n", argv[1], strerror(errno));
86 ALOGI("header is the same, not flashing %s\n", argv[1])
    [all...]
  /device/generic/goldfish/opengl/shared/OpenglOsUtils/
osProcessUnix.cpp 41 char **argv = NULL; local
52 if (!argv) { \
54 argv = (char **)malloc(argvSize * sizeof(char *)); \
58 argv = (char **)realloc(argv, argvSize * sizeof(char *)); \
60 argv[nArgs-1] = t; \
91 return argv;
115 char **argv = buildArgList(command); local
116 if (!argv) {
119 execvp(argv[0], argv)
    [all...]
  /external/chromium_org/third_party/sfntly/cpp/src/sample/subtly/
merger_main.cc 43 int main(int argc, const char** argv) {
45 PrintUsage(argv[0]);
52 font.Attach(LoadFont(argv[i]));
53 CheckLoading(argv[i], font);
61 fprintf(stderr, "Serializing font to %s\n", argv[argc - 1]);
62 SerializeFont(argv[argc - 1], new_font);
  /external/chromium_org/third_party/yasm/source/patched-yasm/frontends/yasm/
yasm-options.c 45 parse_cmdline(int argc, char **argv, opt_option *options, size_t nopts,
56 argv++;
58 if (argv[0][0] == '-') { /* opt */
60 if (argv[0][1] == '-') { /* lopt */
61 if (argv[0][2] == '\0') { /* --, end of options */
64 argv++;
65 if (not_an_option_handler(argv[0]))
74 strncmp(&argv[0][2], options[i].lopt,
77 char c = argv[0][2 + optlen];
83 param = strchr(&argv[0][2], '=')
    [all...]
  /external/e2fsprogs/lib/e2p/
percent.c 37 main(int argc, char **argv)
45 fprintf(stderr, "Usage: %s percent base\n", argv[0]);
49 percent = strtoul(argv[1], &p, 0);
51 fprintf(stderr, "Bad percent: %s\n", argv[1]);
55 base = strtoul(argv[2], &p, 0);
57 fprintf(stderr, "Bad base: %s\n", argv[2]);
  /external/linux-tools-perf/util/
alias.c 25 int split_cmdline(char *cmdline, const char ***argv)
30 *argv = malloc(sizeof(char*) * size);
33 (*argv)[count++] = cmdline;
43 *argv = realloc(*argv, sizeof(char*) * size);
45 (*argv)[count++] = cmdline + dst;
57 free(*argv);
58 *argv = NULL;
70 free(*argv);
71 *argv = NULL
    [all...]
  /external/openfst/src/bin/
fstclosure.cc 28 int main(int argc, char **argv) {
33 usage += argv[0];
37 SET_FLAGS(usage.c_str(), &argc, &argv, true);
43 string in_fname = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
44 string out_fname = argc > 2 ? argv[2] : "";
fstconvert.cc 27 int main(int argc, char **argv) {
32 usage += argv[0];
36 SET_FLAGS(usage.c_str(), &argc, &argv, true);
42 string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
43 string out_name = argc > 2 ? argv[2] : "";
fstepsnormalize.cc 27 int main(int argc, char **argv) {
34 usage += argv[0];
38 SET_FLAGS(usage.c_str(), &argc, &argv, true);
44 string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
45 string out_name = argc > 2 ? argv[2] : "";
fstproject.cc 27 int main(int argc, char **argv) {
34 usage += argv[0];
38 SET_FLAGS(usage.c_str(), &argc, &argv, true);
44 string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
45 string out_name = argc > 2 ? argv[2] : "";
fstreverse.cc 31 int main(int argc, char **argv) {
37 usage += argv[0];
41 SET_FLAGS(usage.c_str(), &argc, &argv, true);
47 string in_name = (argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
48 string out_name = argc > 2 ? argv[2] : "";
fstreweight.cc 28 int main(int argc, char **argv) {
34 usage += argv[0];
38 SET_FLAGS(usage.c_str(), &argc, &argv, true);
44 string in_fname = argv[1];
45 string potentials_fname = argv[2];
46 string out_fname = argc > 3 ? argv[3] : "";
fstsynchronize.cc 25 int main(int argc, char **argv) {
31 usage += argv[0];
35 SET_FLAGS(usage.c_str(), &argc, &argv, true);
41 string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
42 string out_name = argc > 2 ? argv[2] : "";
  /external/openfst/src/extensions/pdt/
pdtinfo.cc 28 int main(int argc, char **argv) {
32 usage += argv[0];
37 SET_FLAGS(usage.c_str(), &argc, &argv, true);
43 string in_name = (argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
49 LOG(ERROR) << argv[0] << ": No PDT parenthesis label pairs provided";

Completed in 290 milliseconds

<<11121314151617181920>>