/bionic/libc/bionic/ |
D | exec.cpp | 61 char* argv[n + 1]; in __execl() local 62 argv[0] = const_cast<char*>(argv0); in __execl() 64 while ((argv[n] = va_arg(ap, char*)) != nullptr) { in __execl() 73 return (variant == ExecLP) ? execvp(name, argv) : execve(name, argv, argp); in __execl() 100 int execv(const char* name, char* const* argv) { in execv() argument 101 return execve(name, argv, environ); in execv() 104 int execvp(const char* name, char* const* argv) { in execvp() argument 105 return execvpe(name, argv, environ); in execvp() 108 static int __exec_as_script(const char* buf, char* const* argv, char* const* envp) { in __exec_as_script() argument 110 while (argv[arg_count] != nullptr) ++arg_count; in __exec_as_script() [all …]
|
D | spawn.cpp | 140 char* const argv[], in posix_spawn() argument 142 int exec_fn(const char* path, char* const argv[], char* const env[])) { in posix_spawn() 159 exec_fn(path, argv, env ? env : environ); in posix_spawn() 169 const posix_spawnattr_t* attr, char* const argv[], char* const env[]) { in posix_spawn() argument 170 return posix_spawn(pid, path, actions, attr, argv, env, execve); in posix_spawn() 174 const posix_spawnattr_t* attr, char* const argv[], char* const env[]) { in posix_spawnp() argument 175 return posix_spawn(pid, file, actions, attr, argv, env, execvpe); in posix_spawnp()
|
D | fts.c | 73 FTS* __fts_open(char* const* argv, int options, int (*compar)(const FTSENT**, const FTSENT**)) { in __fts_open() argument 94 if (fts_palloc(sp, MAX(fts_maxarglen(argv), PATH_MAX))) in __fts_open() 103 for (root = NULL, nitems = 0; *argv; ++argv, ++nitems) { in __fts_open() 105 if ((len = strlen(*argv)) == 0) { in __fts_open() 110 if ((p = fts_alloc(sp, *argv, len)) == NULL) in __fts_open() 997 fts_maxarglen(char * const *argv) in fts_maxarglen() argument 1001 for (max = 0; *argv; ++argv) in fts_maxarglen() 1002 if ((len = strlen(*argv)) > max) in fts_maxarglen() 1041 FTS* fts_open(char* const* argv, int options, int (*compar)(const FTSENT**, const FTSENT**)) { in fts_open() argument 1047 return __fts_open(argv, options, compar); in fts_open()
|
D | system.cpp | 59 const char* argv[] = { "sh", "-c", command, nullptr }; in system() local 62 const_cast<char**>(argv), environ)) != 0) { in system()
|
D | libc_init_static.cpp | 135 const char* progname = args.argv[0]; in layout_static_tls() 172 __libc_shared_globals()->init_progname = args.argv[0]; in __real_libc_init() 195 exit(slingshot(args.argc, args.argv, args.envp)); in __real_libc_init()
|
D | libc_init_common.h | 41 extern int main(int argc, char** argv, char** env);
|
D | libc_init_dynamic.cpp | 152 args.argv + __libc_shared_globals()->initial_linker_arg_count, in __libc_init()
|
D | __libc_init_main_thread.cpp | 84 main_thread.stack_top = reinterpret_cast<uintptr_t>(args.argv); in __libc_init_main_thread_early()
|
/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()
|
/bionic/tests/libs/ |
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 | 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 | 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/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 | 670 if (!tmp_linker_so.prelink_image()) __linker_cannot_link(args.argv[0]); in __linker_init() 671 …lLookupList(&tmp_linker_so), &tmp_linker_so, nullptr, nullptr)) __linker_cannot_link(args.argv[0]); in __linker_init() 689 if (!tmp_linker_so.protect_relro()) __linker_cannot_link(args.argv[0]); in __linker_init_post_relocation() 706 if (args.argc == 3 && !strcmp(args.argv[1], "--list")) { in __linker_init_post_relocation() 709 exe_to_load = args.argv[2]; in __linker_init_post_relocation() 710 } else if (args.argc <= 1 || !strcmp(args.argv[1], "--help")) { in __linker_init_post_relocation() 723 args.argv[0], args.argv[0]); in __linker_init_post_relocation() 726 exe_to_load = args.argv[1]; in __linker_init_post_relocation() 733 g_argv = args.argv + __libc_shared_globals()->initial_linker_arg_count; in __linker_init_post_relocation()
|
/bionic/benchmarks/ |
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/libc/tools/ |
D | check-symbols-glibc.py | 26 if len(sys.argv) > 1: 27 if sys.argv[1] in ('-u', '--unwanted'):
|
D | gensyscalls.py | 464 if len(sys.argv) < 2: 468 arch = sys.argv[1] 469 syscall_file = sys.argv[2]
|
/bionic/libc/kernel/tools/ |
D | clean_header.py | 145 """ % os.path.basename(sys.argv[0]) 149 optlist, args = getopt.getopt(sys.argv[1:], 'uvk:d:')
|
D | update_all.py | 24 """ % { "progname" : os.path.basename(sys.argv[0]) } 119 optlist, args = getopt.getopt(sys.argv[1:], '')
|
/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;
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 494 int main(int argc, char** argv) { in main() argument 505 while ((c = getopt(argc, argv, "a:r:p:so:fdj:vhFi")) != -1) { in main() 620 if (!android::base::Realpath(argv[optind], &location.header_path)) { in main() 621 err(1, "failed to get realpath for path '%s'", argv[optind]); in main() 625 location.dependency_dir = argv[optind + 1]; in main()
|
/bionic/benchmarks/spawn/include/ |
D | spawn_benchmark.h | 34 void BM_spawn_test(benchmark::State& state, const char* const* argv);
|