Lines Matching refs:envp
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()
614 get_env(envp, "REMOTE_PORT")); in privsep_script_exec()
619 script = (char *)android_hook((char **)envp); in privsep_script_exec()
631 return script_exec(script, name, envp); in privsep_script_exec()