spawn.h 771 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef GRASS_SPAWN_H
  2. #define GRASS_SPAWN_H
  3. #define SF_REDIRECT_FILE ((const char *) 1)
  4. #define SF_REDIRECT_DESCRIPTOR ((const char *) 2)
  5. #define SF_CLOSE_DESCRIPTOR ((const char *) 3)
  6. #define SF_SIGNAL ((const char *) 4)
  7. #define SF_VARIABLE ((const char *) 5)
  8. #define SF_BINDING ((const char *) 6)
  9. #define SF_BACKGROUND ((const char *) 7)
  10. #define SF_DIRECTORY ((const char *) 8)
  11. #define SF_ARGVEC ((const char *) 9)
  12. enum signal_action
  13. {
  14. SSA_NONE,
  15. SSA_IGNORE,
  16. SSA_DEFAULT,
  17. SSA_BLOCK,
  18. SSA_UNBLOCK,
  19. };
  20. enum signal_type
  21. {
  22. SST_PRE,
  23. SST_POST,
  24. SST_CHILD,
  25. };
  26. extern int G_spawn(const char *command, ...);
  27. extern int G_spawn_ex(const char *command, ...);
  28. extern int G_vspawn_ex(const char *command, const char **args);
  29. #endif