/external/llvm/unittests/Support/ |
D | ProgramTest.cpp | 62 char **envp = *_NSGetEnviron(); in CopyEnvironment() local 65 char **envp = environ; in CopyEnvironment() 67 while (*envp != nullptr) { in CopyEnvironment() 68 out.push_back(*envp); in CopyEnvironment() 69 ++envp; in CopyEnvironment() 143 std::vector<const char *> envp; in TEST() local 144 CopyEnvironment(envp); in TEST() 145 envp.push_back("LLVM_PROGRAM_TEST_CHILD=1"); in TEST() 146 envp.push_back(nullptr); in TEST() 157 int rc = ExecuteAndWait(my_exe, argv, &envp[0], redirects, in TEST() [all …]
|
/external/openssh/openbsd-compat/ |
D | setproctitle.c | 74 char **envp = environ; in compat_init_setproctitle() local 87 for (i = 0; envp[i] != NULL; i++) in compat_init_setproctitle() 90 environ = envp; /* put it back */ in compat_init_setproctitle() 102 for (i = 0; envp[i] != NULL; i++) { in compat_init_setproctitle() 103 if (lastargv + 1 == envp[i]) in compat_init_setproctitle() 104 lastargv = envp[i] + strlen(envp[i]); in compat_init_setproctitle() 115 for (i = 0; envp[i] != NULL; i++) in compat_init_setproctitle() 116 environ[i] = strdup(envp[i]); in compat_init_setproctitle()
|
/external/valgrind/coregrind/ |
D | m_libcproc.c | 111 HChar **VG_(env_setenv) ( HChar ***envp, const HChar* varname, in VG_() 114 HChar **env = (*envp); in VG_() 134 *envp = env; in VG_() 145 oldenv = *envp; in VG_() 147 *envp = newenv; in VG_() 221 void VG_(env_remove_valgrind_env_stuff)(HChar** envp) in VG_() 242 for (i = 0; envp[i] != NULL; i++) { in VG_() 243 if (VG_(strncmp)(envp[i], "LD_PRELOAD=", 11) == 0) { in VG_() 244 envp[i] = VG_(strdup)("libcproc.erves.1", envp[i]); in VG_() 245 ld_preload_str = &envp[i][11]; in VG_() [all …]
|
D | launcher-darwin.c | 204 int main(int argc, char** argv, char** envp) in main() argument 362 for (i = 0; envp[i]; i++) in main() 365 if (envp[i+1][0] != '/') { in main() 369 if (strlen(launcher_name) + strlen(envp[i+1]) > PATH_MAX) in main() 371 strcat(launcher_name, envp[i+1]); in main() 382 for (j = 0; envp[j]; j++) in main() 388 new_env[i] = envp[i]; in main() 392 new_env[i ] = envp[i-2]; // the 'apple' arg == the executable_path in main() 396 for (i = 0; envp[i]; i++) { in main() 397 if (0 == strncmp(envp[i], "DYLD_", 5)) { in main() [all …]
|
D | vg_preloaded.c | 152 HChar **envp = (HChar**)*_NSGetEnviron(); in vg_cleanup_env() local 153 env_unsetenv(envp, "VALGRIND_LAUNCHER"); in vg_cleanup_env() 154 env_unsetenv(envp, "DYLD_SHARED_REGION"); in vg_cleanup_env() 156 env_unsetenv(envp, "DYLD_INSERT_LIBRARIES"); in vg_cleanup_env()
|
D | pub_core_initimg.h | 80 HChar** envp; member 104 HChar** envp; member
|
/external/apache-harmony/support/src/test/java/tests/support/ |
D | Support_Exec.java | 36 public static Object[] runJava(List<String> args, String[] envp, in runJava() argument 55 return run(executable, args, envp, displayOutput); in runJava() 61 public static Object[] run(String command, List<String> args, String[] envp, in run() argument 64 Object[] arr = exec(command, args, envp, displayOutput); in run() 106 String[] envp, boolean displayOutput) in execJava() argument 109 execJavaCommon(args, classpath, envp, displayOutput, false); in execJava() 157 String[] envp, in execJavaCommon() argument 207 return exec(executable, execArgs, envp, displayOutput); in execJavaCommon() 211 String[] envp, in exec() argument 232 envp); in exec()
|
/external/bison/lib/ |
D | spawni.c | 99 char *const envp[], int use_path) in __spawni() argument 112 script_execute (const char *file, char *const argv[], char *const envp[]) in script_execute() argument 131 execve (new_argv[0], new_argv, envp); in script_execute() 142 char *const envp[], int use_path) in __spawni() argument 294 execve (file, argv, envp); in __spawni() 297 script_execute (file, argv, envp); in __spawni() 345 execve (startp, argv, envp); in __spawni() 348 script_execute (startp, argv, envp); in __spawni()
|
D | spawnp.c | 30 char *const envp[]) in posix_spawnp() argument 32 return __spawni (pid, file, file_actions, attrp, argv, envp, 1); in posix_spawnp()
|
/external/llvm/lib/Support/ |
D | Program.cpp | 30 int sys::ExecuteAndWait(StringRef Program, const char **args, const char **envp, in ExecuteAndWait() argument 35 if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) { in ExecuteAndWait() 50 const char **envp, const StringRef **redirects, in ExecuteNoWait() argument 56 if (!Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteNoWait()
|
/external/ipsec-tools/ |
D | setup.c | 585 static char *get_env(char * const *envp, char *key) in get_env() argument 588 while (*envp && (strncmp(*envp, key, length) || (*envp)[length] != '=')) { in get_env() 589 ++envp; in get_env() 591 return *envp ? &(*envp)[length + 1] : ""; in get_env() 595 extern const char *android_hook(char **envp); 597 int privsep_script_exec(char *script, int name, char * const *envp) in privsep_script_exec() argument 609 struct sockaddr *addr4 = str2saddr(get_env(envp, "INTERNAL_ADDR4"), in privsep_script_exec() 611 struct sockaddr *local = str2saddr(get_env(envp, "LOCAL_ADDR"), in privsep_script_exec() 612 get_env(envp, "LOCAL_PORT")); in privsep_script_exec() 613 struct sockaddr *remote = str2saddr(get_env(envp, "REMOTE_ADDR"), in privsep_script_exec() [all …]
|
D | main.c | 105 const char *android_hook(char **envp) in android_hook() argument 111 while (*envp && strncmp(*envp, "INTERNAL_WINS4_LIST=", 20)) { in android_hook() 112 ++envp; in android_hook() 114 if (!*envp) { in android_hook() 122 sprintf(*envp, "INTERFACE=%s", ifr.ifr_name); in android_hook()
|
/external/valgrind/none/tests/darwin/ |
D | apple-main-arg.c | 12 int main(int argc, char *argv[], char *envp[], char *apple[]) in main() argument 18 for (i = 0; envp[i]; i++) in main() 22 assert(envp[i+1] == apple[0]); in main()
|
/external/libcxx/include/ |
D | cfenv | 48 int fegetenv(fenv_t* envp); 49 int feholdexcept(fenv_t* envp); 50 int fesetenv(const fenv_t* envp); 51 int feupdateenv(const fenv_t* envp);
|
/external/fio/arch/ |
D | arch-sh.h | 43 static inline int arch_init(char *envp[]) in arch_init() argument 47 while (*envp++ != NULL) in arch_init() 50 for (auxv = (Elf32_auxv_t *) envp; auxv->a_type != AT_NULL; auxv++) { in arch_init()
|
/external/valgrind/memcheck/tests/linux/ |
D | proc-auxv.c | 13 main (int argc, char **argv, char **envp) in main() argument 25 while (*envp++ != NULL) in main() 28 for (auxv_p = (ElfW(auxv_t) *) envp; in main()
|
/external/valgrind/memcheck/tests/ |
D | thread_alloca.c | 34 int main(int argc, char **argv, char** envp) in main() argument 58 for (j = 0; envp[j]; j++) in main() 63 new_env[i] = envp[i]; in main()
|
D | execve2.c | 4 int main ( int argc, char** argv, char** envp ) in main() argument 9 execve("../../tests/true", NULL, envp); in main()
|
/external/ipsec-tools/src/racoon/ |
D | privsep.c | 379 char **envp = NULL; in privsep_init() local 417 envp = racoon_malloc((envc + 1) * sizeof(char *)); in privsep_init() 418 if (envp == NULL) { in privsep_init() 424 bzero(envp, (envc + 1) * sizeof(char *)); in privsep_init() 441 envp[i++] = bufs[count]; in privsep_init() 447 script, name, envp); in privsep_init() 454 if ((unsafe_env(envp) == 0) && in privsep_init() 457 (void)script_exec(script, name, envp); in privsep_init() 463 racoon_free(envp); in privsep_init() 780 privsep_script_exec(script, name, envp) in privsep_script_exec() argument [all …]
|
/external/fio/ |
D | fio.c | 31 int main(int argc, char *argv[], char *envp[]) in main() argument 33 if (initialize_fio(envp)) in main()
|
/external/clang/examples/clang-interpreter/ |
D | main.cpp | 53 static int Execute(std::unique_ptr<llvm::Module> Mod, char *const *envp) { in Execute() argument 77 return EE->runFunctionAsMain(EntryFn, Args, envp); in Execute() 80 int main(int argc, const char **argv, char * const *envp) { in main() argument 168 Res = Execute(std::move(Module), envp); in main()
|
/external/strace/tests/ |
D | umovestr2.c | 23 char *envp[] = { addr, NULL }; in main() local 24 execve("", argv, envp); in main()
|
/external/lldb/tools/debugserver/source/MacOSX/ |
D | MachProcess.h | 51 char const *envp[], 62 …hildForPTraceDebugging (const char *path, char const *argv[], char const *envp[], MachProcess* pro… 66 char const *envp[], 80 …nchForDebug (const char *app_bundle_path, char const *argv[], char const *envp[], bool no_stdio, D… 81 …hildForPTraceDebugging (const char *path, char const *argv[], char const *envp[], bool no_stdio, M…
|
/external/libunwind/tests/ |
D | forker.c | 33 main (int argc, char **argv, char **envp) in main() argument 56 execve (program, child_argv, envp); in main()
|
/external/llvm/test/ExecutionEngine/MCJIT/ |
D | 2003-08-21-EnvironmentTest.ll | 14 define i32 @main(i32 %argc.1, i8** %argv.1, i8** %envp.1) { 15 %tmp.2 = load i8*, i8** %envp.1 ; <i8*> [#uses=1]
|