Home
last modified time | relevance | path

Searched refs:envp (Results 1 – 25 of 101) sorted by relevance

12345

/external/minijail/
Dlibminijailpreload.c32 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
76 unset_in_env(envp, kLdPreloadEnvVar); in fake_main()
82 return real_main(argc, argv, envp); in fake_main()
/external/valgrind/coregrind/
Dm_libcproc.c116 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 …]
Dvg_preloaded.c152 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()
312 char **envp, in VG_REPLACE_FUNCTION_ZU()
340 err = posix_spawn(&pid, command, NULL, &attr, argv, envp ? envp : environ); in VG_REPLACE_FUNCTION_ZU()
Dlauncher-darwin.c204 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 …]
Dpub_core_initimg.h80 HChar** envp; member
104 HChar** envp; member
133 HChar** envp; member
/external/valgrind/memcheck/tests/solaris/
Dspawn.c21 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()
Dexecx.c25 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/
DSupport_Exec.java36 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/
Dspawni.c99 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()
Dspawnp.c30 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/
DProgram.cpp30 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/
Dsetup.c585 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 …]
Dmain.c105 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/solaris/
Dproc_auxv.c52 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/valgrind/none/tests/darwin/
Dapple-main-arg.c12 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/dbus/dbus/
Ddbus-spawn-win.c77 char **envp; member
127 sitter->envp = NULL; in _dbus_babysitter_new()
220 if (sitter->envp != NULL) in _dbus_babysitter_unref()
222 char **e = sitter->envp; in _dbus_babysitter_unref()
226 dbus_free (sitter->envp); in _dbus_babysitter_unref()
227 sitter->envp = NULL; in _dbus_babysitter_unref()
536 build_env_string (char** envp) in build_env_string() argument
538 return compose_string (envp, '\0'); in build_env_string()
542 spawn_program (char* name, char** argv, char** envp) in spawn_program() argument
560 env_string = build_env_string(envp); in spawn_program()
[all …]
/external/libcxx/include/
Dcfenv48 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/
Darch-sh.h43 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/
Dproc-auxv.c13 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/
Dthread_alloca.c34 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()
Dexecve2.c4 int main ( int argc, char** argv, char** envp ) in main() argument
11 execve("../../tests/true", argv_exe, envp); in main()
/external/iproute2/tc/
De_bpf.c46 char **envp; in bpf_num_env_entries() local
49 for (num = 0, envp = environ; *envp != NULL; envp++) in bpf_num_env_entries()
/external/ipsec-tools/src/racoon/
Dprivsep.c379 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/strace/tests/
Dexecve.c33 static const char * const envp[] = variable
39 execve(FILENAME, (char * const *) argv, (char * const *) envp); in main()
/external/fio/
Dfio.c31 int main(int argc, char *argv[], char *envp[]) in main() argument
33 if (initialize_fio(envp)) in main()

12345