Back to index

glibc  2.9
spawn_int.h
Go to the documentation of this file.
00001 /* Data structure to contain the action information.  */
00002 struct __spawn_action
00003 {
00004   enum
00005   {
00006     spawn_do_close,
00007     spawn_do_dup2,
00008     spawn_do_open
00009   } tag;
00010 
00011   union
00012   {
00013     struct
00014     {
00015       int fd;
00016     } close_action;
00017     struct
00018     {
00019       int fd;
00020       int newfd;
00021     } dup2_action;
00022     struct
00023     {
00024       int fd;
00025       const char *path;
00026       int oflag;
00027       mode_t mode;
00028     } open_action;
00029   } action;
00030 };
00031 
00032 extern int __posix_spawn_file_actions_realloc (posix_spawn_file_actions_t *
00033                                           file_actions);
00034 
00035 extern int __spawni (pid_t *pid, const char *path,
00036                    const posix_spawn_file_actions_t *file_actions,
00037                    const posix_spawnattr_t *attrp, char *const argv[],
00038                    char *const envp[], int use_path);