/external/ltp/testcases/kernel/syscalls/swapon/ |
libswapon.c | 43 const char *argv[2 + 1]; local 44 argv[0] = "mkswap"; 45 argv[1] = swapfile; 46 argv[2] = NULL; 48 tst_run_cmd(cleanup, argv, "/dev/null", "/dev/null", 0);
|
/system/core/logwrapper/ |
android_fork_execvp_ext_benchmark.cpp | 23 const char* argv[] = {"/system/bin/echo", "hello", "world"}; local 27 argc, (char**)argv, NULL /* status */, false /* ignore_int_quit */, LOG_NONE,
|
/system/extras/tests/kernel.config/ |
scrape_mmap_addr.cpp | 8 int main(int argc, char * argv[]) { 10 std::cerr << "usage: " << argv[0] << ": libname\n"; local 13 std::regex reg(std::string("^([a-f0-9]+)\\-[0-9a-f]+\\s+.+\\s+(\\d+)\\s+.+\\s+\\d+\\s+") + std::string(argv[1]) + std::string("\\s*$"));
|
/external/adhd/cras/src/common/ |
cras_metrics.c | 16 const char *argv[] = {METRICS_CLIENT, "-v", event, NULL} ; local 17 execvp(argv[0], (char * const *)argv); 31 const char *argv[] = {METRICS_CLIENT, name, tmp[0], tmp[1], local 33 execvp(argv[0], (char * const *)argv);
|
/external/iproute2/tc/ |
p_eth.c | 32 char **argv = *argv_p; local 42 if (strcmp(*argv, "type") == 0) { 45 res = parse_cmd(&argc, &argv, 2, TU32, RU16, sel, tkey); 49 if (strcmp(*argv, "dst") == 0) { 52 res = parse_cmd(&argc, &argv, 6, TMAC, RU32, sel, tkey); 56 if (strcmp(*argv, "src") == 0) { 59 res = parse_cmd(&argc, &argv, 6, TMAC, RU32, sel, tkey); 67 *argv_p = argv;
|
p_ip.c | 32 char **argv = *argv_p; local 41 if (strcmp(*argv, "src") == 0) { 44 res = parse_cmd(&argc, &argv, 4, TIPV4, RU32, sel, tkey); 47 if (strcmp(*argv, "dst") == 0) { 50 res = parse_cmd(&argc, &argv, 4, TIPV4, RU32, sel, tkey); 57 if (strcmp(*argv, "tos") == 0 || matches(*argv, "dsfield") == 0) { 60 res = parse_cmd(&argc, &argv, 1, TU32, RU8, sel, tkey); 63 if (strcmp(*argv, "ihl") == 0) { 66 res = parse_cmd(&argc, &argv, 1, TU32, 0x0f, sel, tkey) [all...] |
p_ip6.c | 32 char **argv = *argv_p; local 42 if (strcmp(*argv, "src") == 0) { 45 res = parse_cmd(&argc, &argv, 16, TIPV6, RU32, sel, tkey); 48 if (strcmp(*argv, "dst") == 0) { 51 res = parse_cmd(&argc, &argv, 16, TIPV6, RU32, sel, tkey); 54 if (strcmp(*argv, "flow_lbl") == 0) { 57 res = parse_cmd(&argc, &argv, 4, TU32, 0x0007ffff, sel, tkey); 60 if (strcmp(*argv, "payload_len") == 0) { 63 res = parse_cmd(&argc, &argv, 2, TU32, RU16, sel, tkey); 66 if (strcmp(*argv, "nexthdr") == 0) [all...] |
p_tcp.c | 32 char **argv = *argv_p; local 42 if (strcmp(*argv, "sport") == 0) { 45 res = parse_cmd(&argc, &argv, 2, TU32, RU16, sel, tkey); 49 if (strcmp(*argv, "dport") == 0) { 52 res = parse_cmd(&argc, &argv, 2, TU32, RU16, sel, tkey); 56 if (strcmp(*argv, "flags") == 0) { 59 res = parse_cmd(&argc, &argv, 1, TU32, RU8, sel, tkey); 67 *argv_p = argv;
|
p_udp.c | 32 char **argv = *argv_p; local 42 if (strcmp(*argv, "sport") == 0) { 45 res = parse_cmd(&argc, &argv, 2, TU32, RU16, sel, tkey); 49 if (strcmp(*argv, "dport") == 0) { 52 res = parse_cmd(&argc, &argv, 2, TU32, RU16, sel, tkey); 60 *argv_p = argv;
|
m_estimator.c | 40 char **argv = *p_argv; local 45 duparg("estimator", *argv); 46 if (matches(*argv, "help") == 0) 48 if (get_time(&A, *argv)) 51 if (matches(*argv, "help") == 0) 53 if (get_time(&time_const, *argv)) 62 *p_argv = argv;
|
/system/bt/service/test/ |
settings_unittest.cc | 47 const base::CommandLine::CharType* argv[] = {"program"}; local 48 EXPECT_TRUE(base::CommandLine::Init(arraysize(argv), argv)); 53 const base::CommandLine::CharType* argv[] = { local 55 EXPECT_TRUE(base::CommandLine::Init(arraysize(argv), argv)); 60 const base::CommandLine::CharType* argv[] = {"program", "--foobarbaz"}; local 61 EXPECT_TRUE(base::CommandLine::Init(arraysize(argv), argv)); 66 const base::CommandLine::CharType* argv[] = {"program", "foobarbaz"} local 72 const base::CommandLine::CharType* argv[] = { local 79 const base::CommandLine::CharType* argv[] = { local 87 const base::CommandLine::CharType* argv[] = {"program", local 94 const base::CommandLine::CharType* argv[] = { local [all...] |
/external/google-breakpad/src/common/mac/ |
launch_reporter.cc | 38 const char* argv[] = { reporter_executable_path, config_file_path, NULL }; local 52 execv(argv[0], (char* const*)argv);
|
/external/gptfdisk/ |
cgdisk.cc | 30 int main(int argc, char *argv[]) { 45 device = (string) argv[1]; 48 if (strcmp(argv[1], "-a") == 0) { 49 device = (string) argv[2]; 50 } else if (strcmp(argv[2], "-a") == 0) { 51 device = (string) argv[1]; 53 cerr << "Usage: " << argv[0] << " [-a] device_file\n"; local 59 cerr << "Usage: " << argv[0] << " [-a] device_file\n"; local
|
fixparts.cc | 25 int main(int argc, char* argv[]) { 39 device = argv[1]; 42 cerr << "Usage: " << argv[0] << " device_filename\n"; local
|
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/libbrillo/brillo/ |
flag_helper_unittest.cc | 43 const char* argv[] = {"test_program"}; local 44 base::CommandLine command_line(arraysize(argv), argv); local 48 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDefaultTrue"); local 88 const char* argv[] = {"test_program", local 106 base::CommandLine command_line(arraysize(argv), argv); local 110 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDefaultTrue") local 150 const char* argv[] = {"test_program", local 166 base::CommandLine command_line(arraysize(argv), argv); local 170 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDefaultTrue"); local 194 const char* argv[] = {"test_program", "--int32_1=5", "--int32_1=10"}; local 195 base::CommandLine command_line(arraysize(argv), argv); local 199 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDuplicateSetvalue"); local 208 const char* argv[] = {"test_program", "--int32_1=5", "--", "--int32_1=10"}; local 209 base::CommandLine command_line(arraysize(argv), argv); local 213 brillo::FlagHelper::Init(arraysize(argv), argv, "TestFlagTerminator"); local 228 const char* argv[] = {"test_program", "--int_1=value", "--help"}; local 229 base::CommandLine command_line(arraysize(argv), argv); local 255 const char* argv[] = {"test_program", "--flag=value"}; local 256 base::CommandLine command_line(arraysize(argv), argv); local 276 const char* argv[] = {"test_program", "--bool_1=value"}; local 277 base::CommandLine command_line(arraysize(argv), argv); local 298 const char* argv[] = {"test_program", "--int_1=value"}; local 299 base::CommandLine command_line(arraysize(argv), argv); local 321 const char* argv[] = {"test_program", "--int64_1=value"}; local 322 base::CommandLine command_line(arraysize(argv), argv); local 344 const char* argv[] = {"test_program", "--uint64_1=value"}; local 345 base::CommandLine command_line(arraysize(argv), argv); local [all...] |
/external/ltp/testcases/kernel/security/tomoyo/ |
newns.c | 35 char **argv = (char **)arg; local 36 argv++; 38 execvp(argv[0], argv); 42 int main(int argc, char *argv[]) 45 const pid_t pid = ltp_clone_quick(CLONE_NEWNS, child, (void *)argv);
|
/external/strace/tests/ |
umovestr2.c | 44 char *argv[] = { NULL }; local 46 execve("", argv, envp);
|
/external/strace/tests-m32/ |
umovestr2.c | 44 char *argv[] = { NULL }; local 46 execve("", argv, envp);
|
/external/strace/tests-mx32/ |
umovestr2.c | 44 char *argv[] = { NULL }; local 46 execve("", argv, envp);
|
/external/v8/testing/gmock/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 108 const char* argv[] = { local 124 const char* argv[] = { local 141 const wchar_t* argv[] = { local 153 const wchar_t* argv[] = { local 167 const wchar_t* argv[] = { local 182 const wchar_t* argv[] = { local 198 const wchar_t* argv[] = { local [all...] |
/external/valgrind/none/tests/amd64/ |
allexec.c | 26 /* Solaris requires that the argv parameter to execve() isn't NULL, so 28 char *const argv[] = {exec, NULL}; local 29 FORKEXECWAIT (execve(exec, argv, environ)); 42 int main(int argc, char **argv, char **envp) 44 if ( (argc == 2) && (strcmp (argv[1], "exec") == 0)) { 45 S("%s will exec ./allexec32\n", argv[0]); 47 S("%s will exec ./allexec64\n", argv[0]); 52 for (i = 0; i < argc; i++) S(" %s", argv[i]);
|
/external/valgrind/none/tests/arm/ |
allexec.c | 26 /* Solaris requires that the argv parameter to execve() isn't NULL, so 28 char *const argv[] = {exec, NULL}; local 29 FORKEXECWAIT (execve(exec, argv, environ)); 42 int main(int argc, char **argv, char **envp) 44 if ( (argc == 2) && (strcmp (argv[1], "exec") == 0)) { 45 S("%s will exec ./allexec32\n", argv[0]); 47 S("%s will exec ./allexec64\n", argv[0]); 52 for (i = 0; i < argc; i++) S(" %s", argv[i]);
|
/external/valgrind/none/tests/arm64/ |
allexec.c | 26 /* Solaris requires that the argv parameter to execve() isn't NULL, so 28 char *const argv[] = {exec, NULL}; local 29 FORKEXECWAIT (execve(exec, argv, environ)); 42 int main(int argc, char **argv, char **envp) 44 if ( (argc == 2) && (strcmp (argv[1], "exec") == 0)) { 45 S("%s will exec ./allexec32\n", argv[0]); 47 S("%s will exec ./allexec64\n", argv[0]); 52 for (i = 0; i < argc; i++) S(" %s", argv[i]);
|
/external/valgrind/none/tests/mips32/ |
allexec.c | 26 /* Solaris requires that the argv parameter to execve() isn't NULL, so 28 char *const argv[] = {exec, NULL}; local 29 FORKEXECWAIT (execve(exec, argv, environ)); 42 int main(int argc, char **argv, char **envp) 44 if ( (argc == 2) && (strcmp (argv[1], "exec") == 0)) { 45 S("%s will exec ./allexec32\n", argv[0]); 47 S("%s will exec ./allexec64\n", argv[0]); 52 for (i = 0; i < argc; i++) S(" %s", argv[i]);
|