summaryrefslogtreecommitdiff
path: root/librt/spawn_int.h
diff options
context:
space:
mode:
authorIsmael Luceno <ismael.luceno@gmail.com>2012-03-05 06:43:49 -0200
committerMike Frysinger <vapier@gentoo.org>2012-03-25 01:45:23 -0400
commit0dcf66744f533e160232072bd03273ca1c448879 (patch)
tree3658f9d75614bede75cfd49e00da4e73da2e8436 /librt/spawn_int.h
parentd1bc0c9915e3b1db796f4466de6167c0a0f0f108 (diff)
librt: add posix_spawn support
Signed-off-by: Ismael Luceno <ismael.luceno@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'librt/spawn_int.h')
-rw-r--r--librt/spawn_int.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/librt/spawn_int.h b/librt/spawn_int.h
new file mode 100644
index 000000000..89c88dba9
--- /dev/null
+++ b/librt/spawn_int.h
@@ -0,0 +1,26 @@
+/* Data structure to contain the action information. */
+struct __spawn_action {
+ enum {
+ spawn_do_close,
+ spawn_do_dup2,
+ spawn_do_open
+ } tag;
+
+ union {
+ struct {
+ int fd;
+ } close_action;
+ struct {
+ int fd;
+ int newfd;
+ } dup2_action;
+ struct {
+ int fd;
+ const char *path;
+ int oflag;
+ mode_t mode;
+ } open_action;
+ } action;
+};
+
+int __posix_spawn_file_actions_realloc(posix_spawn_file_actions_t *fa);