GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
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
27
enum
signal_action
{
28
SSA_NONE
,
29
SSA_IGNORE
,
30
SSA_DEFAULT
,
31
SSA_BLOCK
,
32
SSA_UNBLOCK
,
33
};
34
35
enum
signal_type
{
36
SST_PRE
,
37
SST_POST
,
38
SST_CHILD
,
39
};
40
41
#include <
grass/defs/spawn.h
>
42
43
#endif
spawn.h
signal_action
signal_action
Definition:
spawn.h:27
SSA_UNBLOCK
@ SSA_UNBLOCK
Definition:
spawn.h:32
SSA_NONE
@ SSA_NONE
Definition:
spawn.h:28
SSA_IGNORE
@ SSA_IGNORE
Definition:
spawn.h:29
SSA_DEFAULT
@ SSA_DEFAULT
Definition:
spawn.h:30
SSA_BLOCK
@ SSA_BLOCK
Definition:
spawn.h:31
signal_type
signal_type
Definition:
spawn.h:35
SST_POST
@ SST_POST
Definition:
spawn.h:37
SST_CHILD
@ SST_CHILD
Definition:
spawn.h:38
SST_PRE
@ SST_PRE
Definition:
spawn.h:36
include
grass
spawn.h
Generated on Sun Dec 22 2024 07:38:20 for GRASS GIS 8 Programmer's Manual by
1.9.1