GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72651
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
28 {
34 };
35 
37 {
41 };
42 
43 #include <grass/defs/spawn.h>
44 
45 #endif
Definition: spawn.h:39
Definition: spawn.h:29
signal_action
Definition: spawn.h:27
signal_type
Definition: spawn.h:36
Definition: spawn.h:38