/external/iproute2/ip/ |
iplink_bridge_slave.c | 258 static int bridge_slave_parse_opt(struct link_util *lu, int argc, char **argv, 266 if (matches(*argv, "fdb_flush") == 0) { 268 } else if (matches(*argv, "state") == 0) { 270 if (get_u8(&state, *argv, 0)) 271 invarg("state is invalid", *argv); 273 } else if (matches(*argv, "priority") == 0) { 275 if (get_u16(&priority, *argv, 0)) 276 invarg("priority is invalid", *argv); 278 } else if (matches(*argv, "cost") == 0) { 280 if (get_u32(&cost, *argv, 0) [all...] |
iprule.c | 405 static int iprule_list_flush_or_save(int argc, char **argv, int action) 435 if (matches(*argv, "preference") == 0 || 436 matches(*argv, "order") == 0 || 437 matches(*argv, "priority") == 0) { 441 if (get_u32(&pref, *argv, 0)) 442 invarg("preference value is invalid\n", *argv); 445 } else if (strcmp(*argv, "not") == 0) { 447 } else if (strcmp(*argv, "tos") == 0) { 451 if (rtnl_dsfield_a2n(&tos, *argv)) 452 invarg("TOS value is invalid\n", *argv); [all...] |
iplink_hsr.c | 46 static int hsr_parse_opt(struct link_util *lu, int argc, char **argv, 54 if (matches(*argv, "supervision") == 0) { 56 if (get_u8(&multicast_spec, *argv, 0)) 57 invarg("ADDR-BYTE is invalid", *argv); 60 } else if (matches(*argv, "version") == 0) { 62 if (!(get_u8(&protocol_version, *argv, 0) == 0 || 63 get_u8(&protocol_version, *argv, 0) == 1)) 64 invarg("version is invalid", *argv); 67 } else if (matches(*argv, "slave1") == 0) { 69 ifindex = ll_name_to_index(*argv); [all...] |
link_ip6tnl.c | 71 static int ip6tunnel_parse_opt(struct link_util *lu, int argc, char **argv, 164 if (matches(*argv, "mode") == 0) { 166 if (strcmp(*argv, "ipv6/ipv6") == 0 || 167 strcmp(*argv, "ip6ip6") == 0) 169 else if (strcmp(*argv, "ip/ipv6") == 0 || 170 strcmp(*argv, "ipv4/ipv6") == 0 || 171 strcmp(*argv, "ipip6") == 0 || 172 strcmp(*argv, "ip4ip6") == 0) 174 else if (strcmp(*argv, "any/ipv6") == 0 || 175 strcmp(*argv, "any") == 0 [all...] |
iplink_ipvlan.c | 26 static int ipvlan_parse_opt(struct link_util *lu, int argc, char **argv, 30 if (matches(*argv, "mode") == 0) { 35 if (strcmp(*argv, "l2") == 0) 37 else if (strcmp(*argv, "l3") == 0) 39 else if (strcmp(*argv, "l3s") == 0) 46 } else if (matches(*argv, "help") == 0) { 51 *argv); 56 argv++; 80 static void ipvlan_print_help(struct link_util *lu, int argc, char **argv,
|
/external/google-breakpad/src/testing/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/googletest/googlemock/test/ |
gmock_test.cc | 47 // Verifies that calling InitGoogleMock() on argv results in new_argv, 50 void TestInitGoogleMock(const Char* (&argv)[M], const Char* (&new_argv)[N], 55 InitGoogleMock(&argc, const_cast<Char**>(argv)); 56 ASSERT_EQ(N, argc) << "The new argv has wrong number of elements."; 59 EXPECT_STREQ(new_argv[i], argv[i]); 67 const char* argv[] = { local 75 TestInitGoogleMock(argv, new_argv, GMOCK_FLAG(verbose)); 79 const char* argv[] = { local 89 TestInitGoogleMock(argv, new_argv, GMOCK_FLAG(verbose)); 93 const char* argv[] = local 109 const wchar_t* argv[] = { local 128 const char* argv[] = { local 144 const char* argv[] = { local 161 const wchar_t* argv[] = { local 173 const wchar_t* argv[] = { local 187 const wchar_t* argv[] = { local 203 const wchar_t* argv[] = { local 222 const wchar_t* argv[] = { local 238 const wchar_t* argv[] = { local [all...] |
/external/iw/ |
ibss.c | 22 int argc, char **argv, 70 NLA_PUT(msg, NL80211_ATTR_SSID, strlen(argv[0]), argv[0]); 71 argv++; 75 freq = strtoul(argv[0], &end, 10); 80 argv++; 85 if (strcasecmp(chanmode[i].name, argv[0]) == 0) { 100 argv++; 106 if (argc && strcmp(argv[0], "fixed-freq") == 0) { 108 argv++ [all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/ |
HwIoDebug.c | 28 Argv[0] - "ioread"[.#] # is optional width 1, 2, or 4. Default 1
29 Argv[1] - Hex IO address
34 @param Argc Number of command arguments in Argv
35 @param Argv Array of strings that represent the parsed command line.
36 Argv[0] is the command name
45 IN CHAR8 **Argv
56 Port = AsciiStrHexToUintn (Argv[1]);
57 Width = WidthFromCommandName (Argv[0], 1);
78 Argv[0] - "iowrite"[.#] # is optional width 1, 2, or 4. Default 1
79 Argv[1] - Hex IO address [all...] |
/external/libxml2/ |
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...] |
/prebuilts/misc/common/swig/include/2.0.11/python/ |
argcargv.i | 2 * --- Argc & Argv --- 9 size_t *argc, char ***argv, int *owner) 21 if (argv) { 22 *argv = %new_array(size + 1, char*); 29 (*argv)[i] = (alloc == SWIG_NEWOBJ) ? cptr : %new_copy_array(cptr, sz, char); 31 (*argv)[i] = 0; 37 (*argv)[i] = 0; 54 if (argv) { while (*argv[i] != 0) ++i;} 67 %typemap(in,noblock=0,fragment="SWIG_AsArgcArgv") (int ARGC, char **ARGV) (int res,char **argv = 0, size_t argc = 0, int owner= 0) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/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]]")
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/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]]")
|
/external/e2fsprogs/lib/ext2fs/ |
tst_getsectsize.c | 29 int main(int argc, char **argv) 35 fprintf(stderr, "Usage: %s device\n", argv[0]); 39 retval = ext2fs_get_device_sectsize(argv[1], &lsectsize); 41 com_err(argv[0], retval, 45 retval = ext2fs_get_device_phys_sectsize(argv[1], &psectsize); 47 com_err(argv[0], retval, 52 argv[1], lsectsize, psectsize);
|
/external/libnl/src/ |
nl-link-enslave.c | 16 int main(int argc, char *argv[]) 32 if (!(master = rtnl_link_get_by_name(link_cache, argv[1]))) { 33 fprintf(stderr, "Unknown link: %s\n", argv[1]); 37 if (!(slave = rtnl_link_get_by_name(link_cache, argv[2]))) { 38 fprintf(stderr, "Unknown link: %s\n", argv[2]); 44 argv[2], argv[1], nl_geterror(err));
|
/external/python/cpython2/Lib/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/gdb/darwin-x86/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/gdb/linux-x86/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/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]]")
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/ |
udpecho.py | 15 if len(sys.argv) < 2:
17 if sys.argv[1] == '-s':
19 elif sys.argv[1] == '-c':
31 if len(sys.argv) > 2:
32 port = eval(sys.argv[2])
44 if len(sys.argv) < 3:
46 host = sys.argv[2]
47 if len(sys.argv) > 3:
48 port = eval(sys.argv[3])
|
/external/gptfdisk/ |
gdisk.cc | 14 int main(int argc, char* argv[]) { 40 if (theGPT.LoadPartitions(argv[1])) { 43 theGPT.MainMenu(argv[1]); 47 if (strcmp(argv[1], "-l") == 0) { 48 device = (string) argv[2]; 49 } else if (strcmp(argv[2], "-l") == 0) { 50 device = (string) argv[1]; 52 cerr << "Usage: " << argv[0] << " [-l] device_file\n"; local 64 cerr << "Usage: " << argv[0] << " [-l] device_file\n"; local
|
/external/ltp/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ |
ext4_file_time.c | 32 int main(int argc, char *argv[]) 42 if (stat(argv[1], &st) != 0) { 47 if (strcmp(argv[3], "sec") == 0) { 48 if (strcmp(argv[2], "atime") == 0) 50 else if (strcmp(argv[2], "mtime") == 0) 54 } else if (strcmp(argv[3], "nsec") == 0) { 55 if (strcmp(argv[2], "atime") == 0) 57 else if (strcmp(argv[2], "mtime") == 0) 62 fprintf(stderr, "Wrong argument: %s\n", argv[3]);
|
/external/python/cpython2/Demo/sockets/ |
udpecho.py | 15 if len(sys.argv) < 2: 17 if sys.argv[1] == '-s': 19 elif sys.argv[1] == '-c': 31 if len(sys.argv) > 2: 32 port = eval(sys.argv[2]) 44 if len(sys.argv) < 3: 46 host = sys.argv[2] 47 if len(sys.argv) > 3: 48 port = eval(sys.argv[3])
|
/external/tensorflow/tensorflow/python/platform/ |
app_test.py | 29 def main(argv): 30 if (len(argv) != 3): 31 print("Length of argv was not 3: ", argv) 34 if argv[1] != "--passthrough": 35 print("--passthrough argument not in argv") 38 if argv[2] != "extra": 39 print("'extra' argument not in argv") 44 sys.argv.extend(["--myflag", "--passthrough", "extra"])
|