about summary refs log tree commit diff
path: root/src/process/posix_spawnp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process/posix_spawnp.c')
-rw-r--r--src/process/posix_spawnp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/process/posix_spawnp.c b/src/process/posix_spawnp.c
new file mode 100644
index 00000000..7434bb69
--- /dev/null
+++ b/src/process/posix_spawnp.c
@@ -0,0 +1,14 @@
+#include <spawn.h>
+#include <unistd.h>
+
+int __posix_spawnx(pid_t *, const char *,
+	int (*)(const char *, char *const *),
+	const posix_spawn_file_actions_t *,
+	const posix_spawnattr_t *, char **, char **);
+
+int posix_spawnp(pid_t *res, const char *file,
+	const posix_spawn_file_actions_t *fa,
+	const posix_spawnattr_t *attr, char **argv, char **envp)
+{
+	return __posix_spawnx(res, file, execvp, fa, attr, argv, envp);
+}