[GRASS-SVN] r47964 - grass/branches/develbranch_6/include
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 30 02:10:14 EDT 2011
Author: mmetz
Date: 2011-08-29 23:10:14 -0700 (Mon, 29 Aug 2011)
New Revision: 47964
Modified:
grass/branches/develbranch_6/include/spawn.h
Log:
inlcude: backport G_wait()
Modified: grass/branches/develbranch_6/include/spawn.h
===================================================================
--- grass/branches/develbranch_6/include/spawn.h 2011-08-29 20:29:53 UTC (rev 47963)
+++ grass/branches/develbranch_6/include/spawn.h 2011-08-30 06:10:14 UTC (rev 47964)
@@ -2,6 +2,19 @@
#ifndef GRASS_SPAWN_H
#define GRASS_SPAWN_H
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <fcntl.h>
+
+#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)
@@ -29,7 +42,8 @@
};
extern int G_spawn(const char *command, ...);
+extern int G_vspawn_ex(const char *command, const char **args);
extern int G_spawn_ex(const char *command, ...);
-extern int G_vspawn_ex(const char *command, const char **args);
+extern int G_wait(int i_pid);
#endif
More information about the grass-commit
mailing list