Lines Matching refs:args
15 struct args {
37 struct args *args = args_vp;
38 int p = args->p[1];
39 const posix_spawn_file_actions_t *fa = args->fa;
40 const posix_spawnattr_t *restrict attr = args->attr;
43 close(args->p[0]);
150 ? &attr->__mask : &args->oldmask, 0);
155 exec(args->path, args->argv, args->envp);
178 struct args args;
183 args.path = path;
184 args.fa = fa;
185 args.attr = attr ? attr : &(const posix_spawnattr_t){0};
186 args.argv = argv;
187 args.envp = envp;
188 pthread_sigmask(SIG_BLOCK, SIGALL_SET, &args.oldmask);
194 if (pipe2(args.p, O_CLOEXEC)) {
201 CLONE_VM|CLONE_VFORK|SIGCHLD, &args);
202 close(args.p[1]);
206 if (read(args.p[0], &ec, sizeof ec) != sizeof ec) ec = 0;
212 close(args.p[0]);
217 pthread_sigmask(SIG_SETMASK, &args.oldmask, 0);