Lines Matching refs:envp
76 static pid_t path_pfexecve(const char *path, char *argv[],char *const envp[],int spawn) in path_pfexecve() argument
89 return(execve(path, argv, envp)); in path_pfexecve()
104 int r = execve(path, argv, envp); in path_pfexecve()
119 return(execve("/usr/bin/pfexec", argv, envp)); in path_pfexecve()
121 return(execve(path, argv, envp)); in path_pfexecve()
126 static pid_t _spawnveg(const char *path, char* const argv[], char* const envp[], pid_t pgid) in _spawnveg() argument
134 pid = spawnveg(path,argv,envp,pgid); in _spawnveg()
151 static pid_t path_xargs(const char *path, char *argv[],char *const envp[], int spawn) in path_xargs() argument
162 for(ev=envp; cp= *ev; ev++) in path_xargs()
196 if((pid=_spawnveg(path,argv,envp,0)) < 0) in path_xargs()
212 return(_spawnveg(path,argv,envp,spawn>>1)); in path_xargs()
215 return(path_pfexecve(path,argv,envp,spawn)); in path_xargs()
966 char **envp; in path_exec() local
972 envp = sh_envgen(); in path_exec()
998 path_spawn(opath,argv,envp,libpath,0); in path_exec()
1011 pid_t path_spawn(const char *opath,register char **argv, char **envp, Pathcomp_t *libpath, int spaw… in path_spawn() argument
1021 envp--; in path_spawn()
1086 xp = envp + 1; in path_spawn()
1099 *envp-- = v; in path_spawn()
1105 envp[0] = (char*)opath-(PATH_OFFSET+pidsize); in path_spawn()
1106 envp[0][0] = '_'; in path_spawn()
1107 envp[0][1] = '='; in path_spawn()
1126 pid = _spawnveg(opath, &argv[0],envp, spawn>>1); in path_spawn()
1128 pid = path_pfexecve(opath, &argv[0] ,envp,spawn); in path_spawn()
1174 exscript(shp,path,argv,envp); in path_spawn()
1185 exscript(shp,path,argv,envp); in path_spawn()
1209 pid = path_xargs(opath, &argv[0] ,envp,spawn); in path_spawn()
1225 static void exscript(Shell_t *shp,register char *path,register char *argv[],char **envp) in exscript() argument
1281 path_pfexecve(e_suidexec,argv,envp,0); in exscript()