/external/clang/tools/scan-build-py/libear/ |
D | ear.c | 70 static char const **bear_update_environment(char *const envp[], bear_env_t *env); 106 char *const envp[]); 113 char *const envp[]); 121 char *const envp[]); 128 char *const envp[restrict]); 135 char *const envp[restrict]); 161 int execve(const char *path, char *const argv[], char *const envp[]) { in execve() argument 163 return call_execve(path, argv, envp); in execve() 173 char * const * envp = bear_get_environment(); in execv() local 174 return call_execve(path, argv, envp); in execv() [all …]
|
/external/minijail/ |
D | libminijailpreload.c | 32 static void unset_in_env(char **envp, const char *name) in unset_in_env() argument 35 for (i = 0; envp[i]; i++) in unset_in_env() 36 if (!strncmp(envp[i], name, strlen(name))) in unset_in_env() 37 envp[i][0] = '\0'; in unset_in_env() 47 static int fake_main(int argc, char **argv, char **envp) in fake_main() argument 78 unset_in_env(envp, kLdPreloadEnvVar); in fake_main() 84 return real_main(argc, argv, envp); in fake_main()
|
/external/valgrind/coregrind/ |
D | m_libcproc.c | 116 HChar **VG_(env_setenv) ( HChar ***envp, const HChar* varname, in VG_() 119 HChar **env = (*envp); in VG_() 139 *envp = env; in VG_() 150 oldenv = *envp; in VG_() 152 *envp = newenv; in VG_() 230 void VG_(env_remove_valgrind_env_stuff)(HChar** envp, Bool ro_strings, in VG_() 244 for (i = 0; envp[i] != NULL; i++) { in VG_() 245 if (VG_(strncmp)(envp[i], "LD_PRELOAD=", 11) == 0) { in VG_() 247 envp[i] = VG_(strdup)("libcproc.erves.1", envp[i]); in VG_() 248 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 | 174 HChar **envp = (HChar**)*_NSGetEnviron(); in vg_cleanup_env() local 175 env_unsetenv(envp, "VALGRIND_LAUNCHER"); in vg_cleanup_env() 176 env_unsetenv(envp, "DYLD_SHARED_REGION"); in vg_cleanup_env() 178 env_unsetenv(envp, "DYLD_INSERT_LIBRARIES"); in vg_cleanup_env() 334 char **envp, in VG_REPLACE_FUNCTION_ZU() 362 err = posix_spawn(&pid, command, NULL, &attr, argv, envp ? envp : environ); in VG_REPLACE_FUNCTION_ZU()
|
/external/clang/tools/scan-build-py/tests/functional/exec/ |
D | main.c | 131 char *const envp[] = {"THIS=THAT", 0}; in call_execve() local 136 FORK(execve(compiler, argv, envp);) in call_execve() 171 char *const envp[] = {"THIS=THAT", 0}; in call_execvpe() local 176 FORK(execvpe(compiler, argv, envp);) in call_execvpe() 185 char *const envp[] = {"THIS=THAT", 0}; in call_exect() local 190 FORK(exect(compiler, argv, envp);) in call_exect() 222 char *const envp[] = {"THIS=THAT", 0}; in call_execle() local 227 FORK(execle(compiler, compiler, "-c", file, (char *)0, envp);) in call_execle()
|
/external/valgrind/memcheck/tests/solaris/ |
D | spawn.c | 21 int main(int argc, char *const argv[], char *const envp[]) { in main() argument 34 ret = posix_spawn(&child, EXE_NAME, NULL, NULL, argv_exe, envp); in main() 47 ret = posix_spawn(&child, EXE_NAME, &fa, NULL, argv_exe, envp); in main() 63 ret = posix_spawn(&child, EXE_NAME, NULL, &spa, argv_exe, envp); in main() 80 ret = posix_spawn(&child, EXE_NAME, NULL, NULL, argv_exe, envp); in main() 98 ret = posix_spawn(&child, EXE_NAME, NULL, &spa, argv_exe, envp); in main()
|
D | execx.c | 25 static int test_fexecve(char * const *envp) { in test_fexecve() argument 41 if (fexecve(fd, argv, envp) < 0) { in test_fexecve() 52 int main(int argc, const char *argv[], char * const *envp) { in main() argument 57 return test_fexecve(envp); in main()
|
/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/strace/tests/ |
D | execve.c | 46 static const char * const envp[] = { variable 58 char ** const tail_envp = tail_memdup(envp, sizeof(envp)); in main() 72 , q_envp[0], q_envp[1], envp[2], envp[3], envp[4] in main()
|
D | execveat.c | 51 static const char * const envp[] = { variable 63 const char ** const tail_envp = tail_memdup(envp, sizeof(envp)); in main() 77 q_envp[0], q_envp[1], envp[2], envp[3], envp[4], in main()
|
/external/strace/tests-m32/ |
D | execve.c | 46 static const char * const envp[] = { variable 58 char ** const tail_envp = tail_memdup(envp, sizeof(envp)); in main() 72 , q_envp[0], q_envp[1], envp[2], envp[3], envp[4] in main()
|
D | execveat.c | 51 static const char * const envp[] = { variable 63 const char ** const tail_envp = tail_memdup(envp, sizeof(envp)); in main() 77 q_envp[0], q_envp[1], envp[2], envp[3], envp[4], in main()
|
/external/strace/tests-mx32/ |
D | execve.c | 46 static const char * const envp[] = { variable 58 char ** const tail_envp = tail_memdup(envp, sizeof(envp)); in main() 72 , q_envp[0], q_envp[1], envp[2], envp[3], envp[4] in main()
|
D | execveat.c | 51 static const char * const envp[] = { variable 63 const char ** const tail_envp = tail_memdup(envp, sizeof(envp)); in main() 77 q_envp[0], q_envp[1], envp[2], envp[3], envp[4], in main()
|
/external/ipsec-tools/ |
D | setup.c | 613 static char *get_env(char * const *envp, char *key) in get_env() argument 616 while (*envp && (strncmp(*envp, key, length) || (*envp)[length] != '=')) { in get_env() 617 ++envp; in get_env() 619 return *envp ? &(*envp)[length + 1] : ""; in get_env() 623 extern const char *android_hook(char **envp); 625 int privsep_script_exec(char *script, int name, char * const *envp) in privsep_script_exec() argument 637 struct sockaddr *addr4 = str2saddr(get_env(envp, "INTERNAL_ADDR4"), in privsep_script_exec() 639 struct sockaddr *local = str2saddr(get_env(envp, "LOCAL_ADDR"), in privsep_script_exec() 640 get_env(envp, "LOCAL_PORT")); in privsep_script_exec() 641 struct sockaddr *remote = str2saddr(get_env(envp, "REMOTE_ADDR"), in privsep_script_exec() [all …]
|
D | main.c | 103 const char *android_hook(char **envp) in android_hook() argument 109 while (*envp && strncmp(*envp, "INTERNAL_WINS4_LIST=", 20)) { in android_hook() 110 ++envp; in android_hook() 112 if (!*envp) { in android_hook() 120 sprintf(*envp, "INTERFACE=%s", ifr.ifr_name); in android_hook()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | Program.cpp | 27 const char** envp, in ExecuteAndWait() argument 33 if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg)) in ExecuteAndWait() 42 const char** envp, in ExecuteNoWait() argument 47 prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg); in ExecuteNoWait()
|
/external/libmojo/jni/java/lang/ |
D | Runtime.class | ... io.IOException
String[] progArray
String[] envp
public java.lang.Process exec (java. ... |
/external/swiftshader/third_party/llvm-subzero/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/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/linux-kselftest/tools/testing/selftests/x86/ |
D | test_syscall_vdso.c | 36 int main(int argc, char **argv, char **envp) in main() argument 44 long get_syscall(char **envp) in get_syscall() argument 47 while (*envp++ != NULL) in get_syscall() 49 for (auxv = (void *)envp; auxv->a_type != AT_NULL; auxv++) in get_syscall() 377 int main(int argc, char **argv, char **envp) in main() argument 393 syscall_addr = get_syscall(envp); in main()
|
/external/valgrind/none/tests/solaris/ |
D | proc_auxv.c | 52 int main(int argc, char *argv[], char *envp[]) in main() argument 58 while (*envp) in main() 59 envp++; in main() 60 auxv = (auxv_t*)(envp + 1); in main()
|
/external/swiftshader/third_party/LLVM/tools/llvm-ld/ |
D | llvm-ld.cpp | 166 static char ** CopyEnv(char ** const envp) { in CopyEnv() argument 169 for (entries = 0; envp[entries] != NULL; entries++) in CopyEnv() 186 while (envp[entries] != NULL) { in CopyEnv() 187 size_t len = strlen(envp[entries]) + 1; in CopyEnv() 189 memcpy(newenv[entries], envp[entries], len); in CopyEnv() 211 static void RemoveEnv(const char * name, char ** const envp) { in RemoveEnv() argument 212 for (unsigned index=0; envp[index] != NULL; index++) { in RemoveEnv() 214 char *p = strchr (envp[index], '='); in RemoveEnv() 222 if (!strcmp(name, envp[index])) in RemoveEnv() 223 *envp[index] = '\0'; in RemoveEnv() [all …]
|
/external/python/cpython3/Modules/ |
D | _posixsubprocess.c | 391 char *const envp[], in child_exec() argument 500 if (envp) { in child_exec() 501 execve(executable, argv, envp); in child_exec() 558 char *const *exec_array, *const *argv = NULL, *const *envp = NULL; in subprocess_fork_exec() local 648 envp = _PySequence_BytesToCharpArray(env_list); in subprocess_fork_exec() 649 if (!envp) in subprocess_fork_exec() 689 child_exec(exec_array, argv, envp, cwd, in subprocess_fork_exec() 714 if (envp) in subprocess_fork_exec() 715 _Py_FreeCharPArray(envp); in subprocess_fork_exec() 737 if (envp) in subprocess_fork_exec() [all …]
|