summaryrefslogtreecommitdiff
path: root/librt/spawn_int.h
diff options
context:
space:
mode:
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);