2011-05-28 22:36:30 +00:00
|
|
|
#include <spawn.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2012-10-18 20:41:27 +00:00
|
|
|
int __execvpe(const char *, char *const *, char *const *);
|
|
|
|
|
2012-09-07 02:44:55 +00:00
|
|
|
int __posix_spawnx(pid_t *restrict, const char *restrict,
|
2012-10-18 20:41:27 +00:00
|
|
|
int (*)(const char *, char *const *, char *const *),
|
2011-05-28 22:36:30 +00:00
|
|
|
const posix_spawn_file_actions_t *,
|
2012-09-07 02:44:55 +00:00
|
|
|
const posix_spawnattr_t *restrict, char *const *restrict, char *const *restrict);
|
2011-05-28 22:36:30 +00:00
|
|
|
|
2012-09-07 02:44:55 +00:00
|
|
|
int posix_spawnp(pid_t *restrict res, const char *restrict file,
|
2011-05-28 22:36:30 +00:00
|
|
|
const posix_spawn_file_actions_t *fa,
|
2012-09-07 02:44:55 +00:00
|
|
|
const posix_spawnattr_t *restrict attr,
|
|
|
|
char *const argv[restrict], char *const envp[restrict])
|
2011-05-28 22:36:30 +00:00
|
|
|
{
|
2012-10-18 20:41:27 +00:00
|
|
|
return __posix_spawnx(res, file, __execvpe, fa, attr, argv, envp);
|
2011-05-28 22:36:30 +00:00
|
|
|
}
|