Lines Matching refs:envp
103 static pid_t path_pfexecve(Shell_t *shp,const char *path, char *argv[],char *const envp[],int spawn)
116 return(execve(path, argv, envp));
123 return(execve(path, argv, envp));
127 return(execve("/usr/bin/pfexec", argv, envp));
129 return(execve(path, argv, envp));
134 static pid_t _spawnveg(Shell_t *shp,const char *path, char* const argv[], char* const envp[], pid_t pgid)
140 pid = spawnveg(path,argv,envp,pgid);
152 static pid_t path_xargs(Shell_t *shp,const char *path, char *argv[],char *const envp[], int spawn)
163 for(ev=envp; cp= *ev; ev++)
197 if((pid=_spawnveg(shp,path,argv,envp,0)) < 0)
215 return(_spawnveg(shp,path,argv,envp,spawn>>1));
221 return(path_pfexecve(shp,path,argv,envp,spawn));
1001 char **envp;
1006 envp = sh_envgen();
1032 path_spawn(shp,opath,argv,envp,libpath,0);
1045 pid_t path_spawn(Shell_t *shp,const char *opath,register char **argv, char **envp, Pathcomp_t *libpath, int spawn)
1054 envp--;
1119 xp = envp + 1;
1132 *envp-- = v;
1138 envp[0] = (char*)opath-(PATH_OFFSET+pidsize);
1139 envp[0][0] = '_';
1140 envp[0][1] = '=';
1159 pid = _spawnveg(shp,opath, &argv[0],envp, spawn>>1);
1161 pid = path_pfexecve(shp,opath, &argv[0] ,envp,spawn);
1207 exscript(shp,path,argv,envp);
1218 exscript(shp,path,argv,envp);
1242 pid = path_xargs(shp,opath, &argv[0] ,envp,spawn);
1258 static void exscript(Shell_t *shp,register char *path,register char *argv[],char **envp)
1315 path_pfexecve(shp,e_suidexec,argv,envp,0);