GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
GIS Library - Handles process spawning. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <stdarg.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <grass/config.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include <grass/spawn.h>
Go to the source code of this file.
Macros | |
#define | MAX_ARGS 256 |
#define | MAX_BINDINGS 256 |
#define | MAX_SIGNALS 32 |
#define | MAX_REDIRECTS 32 |
#define | NEXT_ARG(var, type) ((type) * (var)++) |
#define | NEXT_ARG_INT(var) (int)((intptr_t) * (var)++) |
Functions | |
int | G_vspawn_ex (const char *command, const char **args) |
Spawn new process based on command. More... | |
int | G_spawn_ex (const char *command,...) |
Spawn new process based on command. More... | |
int | G_spawn (const char *command,...) |
Spawn new process based on command. More... | |
int | G_wait (int i_pid) |
GIS Library - Handles process spawning.
(C) 2001-2014 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file spawn.c.
int G_spawn | ( | const char * | command, |
... | |||
) |
Spawn new process based on command.
[in] | command |
Definition at line 919 of file spawn.c.
References G_spawn_ex(), MAX_ARGS, NULL, SF_ARGVEC, SF_SIGNAL, SSA_BLOCK, SSA_IGNORE, and SST_PRE.
int G_spawn_ex | ( | const char * | command, |
... | |||
) |
int G_vspawn_ex | ( | const char * | command, |
const char ** | args | ||
) |
int G_wait | ( | int | i_pid | ) |
Definition at line 949 of file spawn.c.
References FALSE.
Referenced by db_shutdown_driver(), and G_popen_close().