| /external/oprofile/libutil/ |
| op_popt.c | 18 int argc, char const ** argv, 24 xmalloc_set_program_name(argv[0]); 27 optcon = poptGetContext(name, argc, argv, options, flags); 29 optcon = poptGetContext((char *)name, argc, (char **)argv, options, flags); 35 fprintf(stderr, "%s: %s: %s\n", argv[0],
|
| /external/valgrind/main/none/tests/darwin/ |
| apple-main-arg.c | 9 // to a string that contains the executable path, like argv[0], but unlike 10 // argv[0] it can't be changed using exec(). 12 int main(int argc, char *argv[], char *envp[], char *apple[]) 24 // Make sure realpath(argv[0]) == realpath(apple[0]). (realpath resolves 26 realpath(argv[0], pargv);
|
| /external/iproute2/ip/ |
| iptuntap.c | 107 static int parse_args(int argc, char **argv, struct ifreq *ifr, uid_t *uid, gid_t *gid) 116 if (matches(*argv, "mode") == 0) { 118 if (matches(*argv, "tun") == 0) { 124 } else if (matches(*argv, "tap") == 0) { 134 } else if (uid && matches(*argv, "user") == 0) { 139 if (**argv && ((user = strtol(*argv, &end, 10)), !*end)) 142 struct passwd *pw = getpwnam(*argv); 144 fprintf(stderr, "invalid user \"%s\"\n", *argv); 149 } else if (gid && matches(*argv, "group") == 0) [all...] |
| iproute.c | 631 char **argv = *argvp; local 633 while (++argv, --argc > 0) { 634 if (strcmp(*argv, "via") == 0) { 636 rta_addattr32(rta, 4096, RTA_GATEWAY, get_addr32(*argv)); 638 } else if (strcmp(*argv, "dev") == 0) { 640 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { 641 fprintf(stderr, "Cannot find device \"%s\"\n", *argv); 644 } else if (strcmp(*argv, "weight") == 0) { 647 if (get_unsigned(&w, *argv, 0) || w == 0 || w > 256) 648 invarg("\"weight\" is invalid\n", *argv); [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...] |
| xfrm_state.c | 178 char **argv = *argvp; local 180 if (get_u32(seq, *argv, 0)) 181 invarg("\"SEQ\" is invalid", *argv); 186 *argvp = argv; 194 char **argv = *argvp; local 195 int len = strlen(*argv); 197 if (len > 2 && strncmp(*argv, "0x", 2) == 0) { 200 if (get_u8(&val, *argv, 16)) 201 invarg("\"FLAG\" is invalid", *argv); 205 if (strcmp(*argv, "noecn") == 0 [all...] |
| /system/core/libzipfile/ |
| test_zipfile.c | 9 main(int argc, char** argv)
20 if (strcmp(argv[2], "-l") == 0 && argc == 3) {
23 else if (strcmp(argv[2], "-u") == 0 && argc == 5) {
34 f = fopen(argv[1], "r");
36 fprintf(stderr, "couldn't open %s\n", argv[1]);
64 entry = lookup_zipentry(zip, argv[3]);
67 argv[1], argv[1]);
70 f = fopen(argv[4], "w");
72 fprintf(stderr, "can't open file for writing '%s'\n", argv[4]); [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...] |
| route.c | 51 int route_main(int argc, char *argv[]) 60 if (argc > 2 && !strcmp(argv[1], "add")) { 61 if (!strcmp(argv[2], "default")) { 63 if (argc > 4 && !strcmp(argv[3], "dev")) { 65 rt.rt_dev = argv[4]; 71 if (argc > 6 && !strcmp(argv[3], "gw") && !strcmp(argv[5], "dev")) { 73 rt.rt_dev = argv[6]; 74 if (set_address(argv[4], &rt.rt_gateway)) { 82 if (argc > 7 && !strcmp(argv[2], "-net") & [all...] |
| swapon.c | 27 int swapon_main(int argc, char **argv) 35 int c = getopt(argc, argv, "hp:"); 47 usage(argv[0]); 54 usage(argv[0]); 63 usage(argv[0]); 67 err = swapon(argv[argc - 1], flags); 69 fprintf(stderr, "swapon failed for %s\n", argv[argc - 1]);
|
| /external/qemu/distrib/sdl-1.2.15/test/ |
| testcdrom.c | 93 int main(int argc, char *argv[]) 118 if ( argv[i] && isdigit(argv[i][0]) ) { 119 drive = atoi(argv[i++]); 132 for ( ; argv[i]; ++i ) { 133 if ( strcmp(argv[i], "-status") == 0 ) { 136 if ( strcmp(argv[i], "-list") == 0 ) { 139 if ( strcmp(argv[i], "-play") == 0 ) { 144 if ( argv[i+1] && isdigit(argv[i+1][0]) ) [all...] |
| /external/chromium_org/third_party/libxml/src/ |
| testSchemas.c | 57 int main(int argc, char **argv) { 64 if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) 69 if ((!strcmp(argv[i], "-memory")) || (!strcmp(argv[i], "--memory"))) { 73 if ((!strcmp(argv[i], "-noout")) || (!strcmp(argv[i], "--noout"))) { 79 if (argv[i][0] != '-') { 88 if (stat(argv[i], &info) < 0) 90 if ((fd = open(argv[i], O_RDONLY)) < 0 [all...] |
| testReader.c | 104 int main(int argc, char **argv) { 109 usage(argv[0]); 114 if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug"))) 116 else if ((!strcmp(argv[i], "-dump")) || (!strcmp(argv[i], "--dump"))) 118 else if ((!strcmp(argv[i], "-count")) || (!strcmp(argv[i], "--count"))) 120 else if ((!strcmp(argv[i], "-consumed")) || (!strcmp(argv[i], "--consumed")) [all...] |
| /external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/ |
| mbo_getopt.c | 14 static int mbo_opt_error(int argc, char * const *argv, int oint, int optchr, int err, int show_err) 28 fprintf(stderr, "option not found %c\n", argv[oint][optchr]); 32 fprintf(stderr, "no argument for option %c\n", argv[oint][optchr]); 44 int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct opts[], char **optarg, int *optind, int show_err) 59 if ((argv[*optind][0] != '-')) 65 if (!argv[*optind][1]) 76 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) 89 else if (opts[opts_idx].opt_name && !strcmp(&argv[*optind][2], opts[opts_idx].opt_name)) 107 if (argv[*optind][optchr] == ':' [all...] |
| /external/e2fsprogs/lib/ss/ |
| parse.c | 31 * the "argc" and "argv" values. 38 * argv (char **) 50 register char **argv, *cp; local 54 argv = (char **) malloc (sizeof(char *)); 55 if (argv == (char **)NULL) { 58 return(argv); 60 *argv = (char *)NULL; 83 argv = NEW_ARGV (argv, argc); 84 argv[argc++] = cp [all...] |
| execute_cmd.c | 26 char *argv[], int sci_idx)); 28 char **argv[])); 63 * check_request_table(rqtbl, argc, argv, sci_idx) 66 * If the command string in argv[0] is in the request table, execute 73 * number of elements in argv[] 74 * argv (char *[]) 84 static int check_request_table (rqtbl, argc, argv, sci_idx) 87 char *argv[]; 97 char *string = argv[0]; 102 info->argv = argv 208 char **argv; local [all...] |
| /external/iproute2/tc/ |
| tc_stab.c | 53 char **argv = *argvp; local 60 if (matches(*argv, "help") == 0) { 65 if (matches(*argv, "mtu") == 0) { 68 duparg("mtu", *argv); 69 if (get_u32(&s.mtu, *argv, 10)) { 73 } else if (matches(*argv, "mpu") == 0) { 76 duparg("mpu", *argv); 77 if (get_u32(&s.mpu, *argv, 10)) { 81 } else if (matches(*argv, "overhead") == 0) { 84 duparg("overhead", *argv); [all...] |
| 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_rsvp.c | 44 char **argv = *argv_p; local 45 char *p = strchr(*argv, '/'); 66 if (get_addr_1(addr, *argv, family)) 71 argc--; argv++; 76 if (strcmp(*argv, "spi/ah") == 0 || 77 strcmp(*argv, "gpi/ah") == 0) { 80 if (get_u32(&gpi, *argv, 0)) 87 argc--; argv++; 88 } else if (strcmp(*argv, "spi/esp") == 0 || 89 strcmp(*argv, "gpi/esp") == 0) [all...] |
| /external/chromium/testing/gmock/test/ |
| gmock_test.cc | 45 // Verifies that calling InitGoogleMock() on argv results in new_argv, 48 void TestInitGoogleMock(const Char* (&argv)[M], const Char* (&new_argv)[N], 53 InitGoogleMock(&argc, const_cast<Char**>(argv)); 54 ASSERT_EQ(N, argc) << "The new argv has wrong number of elements."; 57 EXPECT_STREQ(new_argv[i], argv[i]); 65 const char* argv[] = { local 73 TestInitGoogleMock(argv, new_argv, GMOCK_FLAG(verbose)); 77 const char* argv[] = { local 87 TestInitGoogleMock(argv, new_argv, GMOCK_FLAG(verbose)); 91 const char* argv[] = local 106 const char* argv[] = { local 122 const char* argv[] = { local 140 const char* argv[] = { local 158 const wchar_t* argv[] = { local 170 const wchar_t* argv[] = { local 184 const wchar_t* argv[] = { local 199 const wchar_t* argv[] = { local 215 const wchar_t* argv[] = { local 233 const wchar_t* argv[] = { local [all...] |
| /external/linux-tools-perf/ |
| builtin-kvm.c | 58 static int __cmd_record(int argc, const char **argv) 69 rec_argv[i] = argv[j]; 76 static int __cmd_report(int argc, const char **argv) 87 rec_argv[i] = argv[j]; 94 static int __cmd_buildid_list(int argc, const char **argv) 105 rec_argv[i] = argv[j]; 112 int cmd_kvm(int argc, const char **argv, const char *prefix __used) 116 argc = parse_options(argc, argv, kvm_options, kvm_usage, 134 if (!strncmp(argv[0], "rec", 3)) 135 return __cmd_record(argc, argv); [all...] |
| /external/chromium_org/third_party/simplejson/ |
| tool.py | 17 if len(sys.argv) == 1: 20 elif len(sys.argv) == 2: 21 infile = open(sys.argv[1], 'rb') 23 elif len(sys.argv) == 3: 24 infile = open(sys.argv[1], 'rb') 25 outfile = open(sys.argv[2], 'wb') 27 raise SystemExit(sys.argv[0] + " [infile [outfile]]")
|
| /external/e2fsprogs/lib/ext2fs/ |
| tst_getsectsize.c | 28 int main(int argc, char **argv) 34 fprintf(stderr, "Usage: %s device\n", argv[0]); 38 retval = ext2fs_get_device_sectsize(argv[1], &lsectsize); 40 com_err(argv[0], retval, 44 retval = ext2fs_get_device_phys_sectsize(argv[1], &psectsize); 46 com_err(argv[0], retval, 51 argv[1], lsectsize, psectsize);
|
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/ |
| tool.py | 17 if len(sys.argv) == 1: 20 elif len(sys.argv) == 2: 21 infile = open(sys.argv[1], 'rb') 23 elif len(sys.argv) == 3: 24 infile = open(sys.argv[1], 'rb') 25 outfile = open(sys.argv[2], 'wb') 27 raise SystemExit(sys.argv[0] + " [infile [outfile]]")
|
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/ |
| tool.py | 17 if len(sys.argv) == 1: 20 elif len(sys.argv) == 2: 21 infile = open(sys.argv[1], 'rb') 23 elif len(sys.argv) == 3: 24 infile = open(sys.argv[1], 'rb') 25 outfile = open(sys.argv[2], 'wb') 27 raise SystemExit(sys.argv[0] + " [infile [outfile]]")
|