4 int __execvpe(const char *, char *const *, char *const *);
6 int posix_spawnp(pid_t *restrict res, const char *restrict file,
7 const posix_spawn_file_actions_t *fa,
8 const posix_spawnattr_t *restrict attr,
9 char *const argv[restrict], char *const envp[restrict])
11 posix_spawnattr_t spawnp_attr = { 0 };
12 if (attr) spawnp_attr = *attr;
13 spawnp_attr.__fn = (void *)__execvpe;
14 return posix_spawn(res, file, fa, &spawnp_attr, argv, envp);