GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-76958057df
spawn.h
Go to the documentation of this file.
1 #ifndef GRASS_SPAWN_H
2 #define GRASS_SPAWN_H
3 
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <unistd.h>
7 #include <fcntl.h>
8 
9 #define SF_MODE_IN ((const char *)(O_RDONLY))
10 #define SF_MODE_OUT ((const char *)(O_WRONLY | O_CREAT | O_TRUNC))
11 #define SF_MODE_APPEND ((const char *)(O_WRONLY | O_CREAT | O_APPEND))
12 
13 #define SF_STDIN ((const char *)STDIN_FILENO)
14 #define SF_STDOUT ((const char *)STDOUT_FILENO)
15 #define SF_STDERR ((const char *)STDERR_FILENO)
16 
17 #define SF_REDIRECT_FILE ((const char *)1)
18 #define SF_REDIRECT_DESCRIPTOR ((const char *)2)
19 #define SF_CLOSE_DESCRIPTOR ((const char *)3)
20 #define SF_SIGNAL ((const char *)4)
21 #define SF_VARIABLE ((const char *)5)
22 #define SF_BINDING ((const char *)6)
23 #define SF_BACKGROUND ((const char *)7)
24 #define SF_DIRECTORY ((const char *)8)
25 #define SF_ARGVEC ((const char *)9)
26 
33 };
34 
39 };
40 
41 #include <grass/defs/spawn.h>
42 
43 #endif
signal_action
Definition: spawn.h:27
@ SSA_UNBLOCK
Definition: spawn.h:32
@ SSA_NONE
Definition: spawn.h:28
@ SSA_IGNORE
Definition: spawn.h:29
@ SSA_DEFAULT
Definition: spawn.h:30
@ SSA_BLOCK
Definition: spawn.h:31
signal_type
Definition: spawn.h:35
@ SST_POST
Definition: spawn.h:37
@ SST_CHILD
Definition: spawn.h:38
@ SST_PRE
Definition: spawn.h:36