OLD | NEW |
1 #include <spawn.h> | 1 #include <spawn.h> |
2 #include <unistd.h> | 2 #include <unistd.h> |
3 | 3 |
4 int __execvpe(const char *, char *const *, char *const *); | 4 int __execvpe(const char*, char* const*, char* const*); |
5 | 5 |
6 int __posix_spawnx(pid_t *restrict, const char *restrict, | 6 int __posix_spawnx(pid_t* restrict, |
7 » int (*)(const char *, char *const *, char *const *), | 7 const char* restrict, |
8 » const posix_spawn_file_actions_t *, | 8 int (*)(const char*, char* const*, char* const*), |
9 » const posix_spawnattr_t *restrict, char *const *restrict, char *const *r
estrict); | 9 const posix_spawn_file_actions_t*, |
| 10 const posix_spawnattr_t* restrict, |
| 11 char* const* restrict, |
| 12 char* const* restrict); |
10 | 13 |
11 int posix_spawnp(pid_t *restrict res, const char *restrict file, | 14 int posix_spawnp(pid_t* restrict res, |
12 » const posix_spawn_file_actions_t *fa, | 15 const char* restrict file, |
13 » const posix_spawnattr_t *restrict attr, | 16 const posix_spawn_file_actions_t* fa, |
14 » char *const argv[restrict], char *const envp[restrict]) | 17 const posix_spawnattr_t* restrict attr, |
15 { | 18 char* const argv[restrict], |
16 » return __posix_spawnx(res, file, __execvpe, fa, attr, argv, envp); | 19 char* const envp[restrict]) { |
| 20 return __posix_spawnx(res, file, __execvpe, fa, attr, argv, envp); |
17 } | 21 } |
OLD | NEW |