Lines Matching defs:envp
133 _cleanup_strv_free_ char **envp = NULL;
149 envp = new0(char *, length + 8);
150 if (!envp)
162 envp[n_env++] = k;
175 envp[n_env] = strdup(n);
176 if (!envp[n_env])
190 envp[n_env] = strdup(n);
191 if (!envp[n_env])
221 if (asprintf((char**)(envp + n_env++), "LISTEN_FDS=%i", n_fds) < 0)
224 if (asprintf((char**)(envp + n_env++), "LISTEN_PID=" PID_FMT, getpid()) < 0)
247 envp[n_env++] = e;
256 execvpe(name, argv, envp);
298 static int do_accept(const char* name, char **argv, char **envp, int fd) {
310 return fork_and_exec_process(name, argv, envp, fd_accepted);
464 int main(int argc, char **argv, char **envp) {
501 r = do_accept(argv[optind], argv + optind, envp, event.data.fd);
508 exec_process(argv[optind], argv + optind, envp, SD_LISTEN_FDS_START, n);