arc: Merge ARCv2 string routines in generic ARC .S files
[uclibc-ng.git] / librt / spawn_int.h
blob89c88dba91d5d27352db2e7b919c251dca3f1367
1 /* Data structure to contain the action information. */
2 struct __spawn_action {
3 enum {
4 spawn_do_close,
5 spawn_do_dup2,
6 spawn_do_open
7 } tag;
9 union {
10 struct {
11 int fd;
12 } close_action;
13 struct {
14 int fd;
15 int newfd;
16 } dup2_action;
17 struct {
18 int fd;
19 const char *path;
20 int oflag;
21 mode_t mode;
22 } open_action;
23 } action;
26 int __posix_spawn_file_actions_realloc(posix_spawn_file_actions_t *fa);