/bionic/libc/bionic/ |
D | exec.cpp | 47 extern "C" int __execve(const char* pathname, char* const* argv, char* const* envp); 63 char* argv[n + 1]; in __execl() local 64 argv[0] = const_cast<char*>(argv0); in __execl() 66 while ((argv[n] = va_arg(ap, char*)) != nullptr) { in __execl() 75 return (variant == ExecLP) ? execvp(name, argv) : execve(name, argv, argp); in __execl() 102 int execv(const char* name, char* const* argv) { in execv() argument 103 return execve(name, argv, environ); in execv() 106 int execvp(const char* name, char* const* argv) { in execvp() argument 107 return execvpe(name, argv, environ); in execvp() 110 static int __exec_as_script(const char* buf, char* const* argv, char* const* envp) { in __exec_as_script() argument [all …]
|
D | spawn.cpp | 185 char* const argv[], in posix_spawn() argument 187 int exec_fn(const char* path, char* const argv[], char* const env[])) { in posix_spawn() 204 exec_fn(path, argv, env ? env : environ); in posix_spawn() 214 const posix_spawnattr_t* attr, char* const argv[], char* const env[]) { in posix_spawn() argument 215 return posix_spawn(pid, path, actions, attr, argv, env, execve); in posix_spawn() 219 const posix_spawnattr_t* attr, char* const argv[], char* const env[]) { in posix_spawnp() argument 220 return posix_spawn(pid, file, actions, attr, argv, env, execvpe); in posix_spawnp()
|
D | libc_init_static.cpp | 72 static void call_array(init_func_t** list, int argc, char* argv[], char* envp[]) { in call_array() argument 75 (*list)(argc, argv, envp); in call_array() 144 const char* progname = args.argv[0]; in layout_static_tls() 400 __libc_shared_globals()->init_progname = args.argv[0]; in __real_libc_init() 417 call_array(structors->preinit_array, args.argc, args.argv, args.envp); in __real_libc_init() 418 call_array(structors->init_array, args.argc, args.argv, args.envp); in __real_libc_init() 429 exit(slingshot(args.argc, args.argv, args.envp)); in __real_libc_init()
|
D | system.cpp | 59 const char* argv[] = {"sh", "-c", "--", command, nullptr}; in system() local 62 const_cast<char**>(argv), environ)) != 0) { in system()
|
D | fts.c | 71 __fts_open(char * const *argv, int options, in __fts_open() argument 82 if (*argv == NULL) { in __fts_open() 101 if (fts_palloc(sp, MAXIMUM(fts_maxarglen(argv), PATH_MAX))) in __fts_open() 110 for (root = prev = NULL, nitems = 0; *argv; ++argv, ++nitems) { in __fts_open() 111 if ((p = fts_alloc(sp, *argv, strlen(*argv))) == NULL) in __fts_open() 1006 fts_maxarglen(char * const *argv) in fts_maxarglen() argument 1010 for (max = 0; *argv; ++argv) in fts_maxarglen() 1011 if ((len = strlen(*argv)) > max) in fts_maxarglen() 1051 fts_open(char * const *argv, int options, in fts_open() argument 1060 return __fts_open(argv, options, compar); in fts_open()
|
D | libc_init_common.h | 45 extern int main(int argc, char** argv, char** env);
|
/bionic/benchmarks/spawn/ |
D | spawn_benchmark.cpp | 41 void BM_spawn_test(benchmark::State& state, const char* const* argv) { in BM_spawn_test() argument 44 if (int spawn_err = posix_spawn(&child, argv[0], nullptr, nullptr, const_cast<char**>(argv), in BM_spawn_test() 47 "posix_spawn of %s failed: %s", argv[0], strerror(spawn_err)).c_str()); in BM_spawn_test() 56 static_cast<int>(child), argv[0], strerror(errno)).c_str()); in BM_spawn_test() 60 state.SkipWithError(android::base::StringPrintf("could not exec %s", argv[0]).c_str()); in BM_spawn_test()
|
D | bench_cxa_atexit.cpp | 43 int main(int argc, char* argv[]) { in main() argument 44 auto usage = [&argv]() { in main() 45 fprintf(stderr, "usage: %s COUNT MODE\n", argv[0]); in main() 52 int count = atoi(argv[1]); in main() 55 std::string mode = argv[2]; in main()
|
/bionic/tests/libs/ |
D | exec_linker_helper.cpp | 36 static void ctor(int argc, char* argv[]) { in ctor() argument 37 printf("ctor: argc=%d argv[0]=%s\n", argc, argv[0]); in ctor() 40 int main(int argc, char* argv[]) { in main() argument 41 printf("main: argc=%d argv[0]=%s\n", argc, argv[0]); in main()
|
D | bionic_tests_zipalign.cpp | 119 int main(int argc, char* argv[]) { in main() argument 126 unsigned long int alignment = strtoul(argv[1], &end, 10); in main() 128 fprintf(stderr, "ALIGNMENT value is not a valid number: %s\n", argv[1]); in main() 133 fprintf(stderr, "ALIGNMENT value is not a power of 2: %s\n", argv[1]); in main() 139 int32_t return_value = OpenArchive(argv[2], &handle); in main() 142 fprintf(stderr, "Unable to open '%s': %s\n", argv[2], ErrorCodeString(return_value)); in main() 146 FILE* zip_dst = fopen(argv[3], "we"); in main() 148 fprintf(stderr, "Unable to create '%s': %s\n", argv[3], strerror(errno)); in main()
|
D | stack_tagging_helper.cpp | 83 const char* argv[] = {"/system/bin/true", nullptr}; in vfork_child2() local 85 execve("/system/bin/true", const_cast<char**>(argv), const_cast<char**>(envp)); in vfork_child2() 338 int main(int argc, char** argv) { in main() argument 344 if (strcmp(argv[1], "vfork_execve") == 0) { in main() 349 if (strcmp(argv[1], "vfork_execl") == 0) { in main() 354 if (strcmp(argv[1], "vfork_exit") == 0) { in main() 359 if (strcmp(argv[1], "longjmp") == 0) { in main() 364 if (strcmp(argv[1], "longjmp_sigaltstack") == 0) { in main() 369 if (strcmp(argv[1], "android_mallopt") == 0) { in main() 374 if (strcmp(argv[1], "exception_cleanup") == 0) { in main() [all …]
|
D | ns_hidden_child_helper.cpp | 41 int main(int argc, char* argv[]) { in main() argument 43 fprintf(stderr, "usage: %s NS_PATH\n", argv[0]); in main() 52 const char* app_lib_dir = argv[1]; in main()
|
/bionic/tests/ |
D | gtest_main.cpp | 38 int main(int argc, char** argv, char** envp) { in main() argument 40 g_argv = argv; in main() 43 return IsolateMain(argc, argv, envp); in main()
|
/bionic/tools/ |
D | generate-version-script.py | 27 arch = sys.argv[1] 28 in_filename = sys.argv[2] 29 out_filename = sys.argv[3]
|
/bionic/libc/private/ |
D | KernelArgumentBlock.h | 35 argv = reinterpret_cast<char**>(args + 1); in KernelArgumentBlock() 36 envp = argv + argc + 1; in KernelArgumentBlock() 61 char** argv; variable
|
/bionic/benchmarks/ |
D | malloc_rss_benchmark.cpp | 143 int main(int argc, char* argv[]) { in main() argument 145 std::cerr << "usage: " << argv[0] << " $NUM_THREADS $ALLOC_SIZE" << std::endl; in main() 149 size_t numThreads = atoi(argv[1]); in main() 150 size_t allocSize = atoi(argv[2]); in main()
|
D | bionic_benchmarks.cpp | 121 void SanitizeOpts(int argc, char** argv, std::vector<char*>* new_argv) { in SanitizeOpts() argument 123 (*new_argv)[0] = argv[0]; in SanitizeOpts() 125 char* optarg = argv[i]; in SanitizeOpts() 149 bench_opts_t ParseOpts(int argc, char** argv) { in ParseOpts() argument 158 while ((opt = getopt_long(argc, argv, "c:x:i:a:h", g_long_options, &option_index)) != -1) { in ParseOpts() 569 int main(int argc, char** argv) { in main() argument 571 bench_opts_t opts = ParseOpts(argc, argv); in main() 573 SanitizeOpts(argc, argv, &new_argv); in main()
|
/bionic/tools/versioner/ |
D | run_tests.py | 68 if len(sys.argv) > 2: 70 elif len(sys.argv) == 2: 71 if sys.argv[1] != "-f":
|
/bionic/linker/ |
D | linker_main.cpp | 355 get_executable_info(args.argv[0]); in linker_main() 405 __libc_init_mte(somain->phdr, somain->phnum, somain->load_bias, args.argv); in linker_main() 728 if (!tmp_linker_so.prelink_image()) __linker_cannot_link(args.argv[0]); in __linker_init() 729 …lLookupList(&tmp_linker_so), &tmp_linker_so, nullptr, nullptr)) __linker_cannot_link(args.argv[0]); in __linker_init() 747 if (!tmp_linker_so.protect_relro()) __linker_cannot_link(args.argv[0]); in __linker_init_post_relocation() 771 if (args.argc == 3 && !strcmp(args.argv[1], "--list")) { in __linker_init_post_relocation() 774 exe_to_load = args.argv[2]; in __linker_init_post_relocation() 775 } else if (args.argc <= 1 || !strcmp(args.argv[1], "--help")) { in __linker_init_post_relocation() 788 args.argv[0], args.argv[0]); in __linker_init_post_relocation() 791 exe_to_load = args.argv[1]; in __linker_init_post_relocation() [all …]
|
/bionic/libc/tools/ |
D | check-symbols-glibc.py | 26 if len(sys.argv) > 1: 27 if sys.argv[1] in ('-u', '--unwanted'):
|
D | gensyscalls.py | 494 if len(sys.argv) < 2: 498 arch = sys.argv[1] 499 syscall_file = sys.argv[2]
|
/bionic/libc/kernel/tools/ |
D | clean_header.py | 142 """ % os.path.basename(sys.argv[0])) 146 optlist, args = getopt.getopt(sys.argv[1:], 'uvk:d:')
|
D | update_all.py | 24 """ % { "progname" : os.path.basename(sys.argv[0]) }) 124 optlist, args = getopt.getopt(sys.argv[1:], '')
|
/bionic/benchmarks/spawn/include/ |
D | spawn_benchmark.h | 34 void BM_spawn_test(benchmark::State& state, const char* const* argv);
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | res_random.c | 259 main(int argc, char **argv) 273 n = argc > 1 ? atoi(argv[1]) : 60001;
|