GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
spawn.h File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <grass/defs/spawn.h>
Include dependency graph for spawn.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SF_MODE_IN   ((const char *) (O_RDONLY))
 
#define SF_MODE_OUT   ((const char *) (O_WRONLY|O_CREAT|O_TRUNC))
 
#define SF_MODE_APPEND   ((const char *) (O_WRONLY|O_CREAT|O_APPEND))
 
#define SF_STDIN   ((const char *) STDIN_FILENO)
 
#define SF_STDOUT   ((const char *) STDOUT_FILENO)
 
#define SF_STDERR   ((const char *) STDERR_FILENO)
 
#define SF_REDIRECT_FILE   ((const char *) 1)
 
#define SF_REDIRECT_DESCRIPTOR   ((const char *) 2)
 
#define SF_CLOSE_DESCRIPTOR   ((const char *) 3)
 
#define SF_SIGNAL   ((const char *) 4)
 
#define SF_VARIABLE   ((const char *) 5)
 
#define SF_BINDING   ((const char *) 6)
 
#define SF_BACKGROUND   ((const char *) 7)
 
#define SF_DIRECTORY   ((const char *) 8)
 
#define SF_ARGVEC   ((const char *) 9)
 

Enumerations

enum  signal_action {
  SSA_NONE, SSA_IGNORE, SSA_DEFAULT, SSA_BLOCK,
  SSA_UNBLOCK
}
 
enum  signal_type { SST_PRE, SST_POST, SST_CHILD }
 

Macro Definition Documentation

◆ SF_ARGVEC

#define SF_ARGVEC   ((const char *) 9)

Definition at line 25 of file spawn.h.

Referenced by G_spawn().

◆ SF_BACKGROUND

#define SF_BACKGROUND   ((const char *) 7)

Definition at line 23 of file spawn.h.

◆ SF_BINDING

#define SF_BINDING   ((const char *) 6)

Definition at line 22 of file spawn.h.

◆ SF_CLOSE_DESCRIPTOR

#define SF_CLOSE_DESCRIPTOR   ((const char *) 3)

Definition at line 19 of file spawn.h.

◆ SF_DIRECTORY

#define SF_DIRECTORY   ((const char *) 8)

Definition at line 24 of file spawn.h.

◆ SF_MODE_APPEND

#define SF_MODE_APPEND   ((const char *) (O_WRONLY|O_CREAT|O_APPEND))

Definition at line 11 of file spawn.h.

◆ SF_MODE_IN

#define SF_MODE_IN   ((const char *) (O_RDONLY))

Definition at line 9 of file spawn.h.

◆ SF_MODE_OUT

#define SF_MODE_OUT   ((const char *) (O_WRONLY|O_CREAT|O_TRUNC))

Definition at line 10 of file spawn.h.

◆ SF_REDIRECT_DESCRIPTOR

#define SF_REDIRECT_DESCRIPTOR   ((const char *) 2)

Definition at line 18 of file spawn.h.

◆ SF_REDIRECT_FILE

#define SF_REDIRECT_FILE   ((const char *) 1)

Definition at line 17 of file spawn.h.

◆ SF_SIGNAL

#define SF_SIGNAL   ((const char *) 4)

Definition at line 20 of file spawn.h.

Referenced by G_spawn().

◆ SF_STDERR

#define SF_STDERR   ((const char *) STDERR_FILENO)

Definition at line 15 of file spawn.h.

◆ SF_STDIN

#define SF_STDIN   ((const char *) STDIN_FILENO)

Definition at line 13 of file spawn.h.

◆ SF_STDOUT

#define SF_STDOUT   ((const char *) STDOUT_FILENO)

Definition at line 14 of file spawn.h.

◆ SF_VARIABLE

#define SF_VARIABLE   ((const char *) 5)

Definition at line 21 of file spawn.h.

Enumeration Type Documentation

◆ signal_action

Enumerator
SSA_NONE 
SSA_IGNORE 
SSA_DEFAULT 
SSA_BLOCK 
SSA_UNBLOCK 

Definition at line 27 of file spawn.h.

◆ signal_type

Enumerator
SST_PRE 
SST_POST 
SST_CHILD 

Definition at line 36 of file spawn.h.