home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c063 / 1.ddi / INCLUDE.ZIP / PROCESS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  2.2 KB  |  67 lines

  1. /*  process.h
  2.  
  3.     Symbols and structures for process management.
  4.  
  5.     Copyright (c) 1987, 1991 by Borland International
  6.     All Rights Reserved.
  7. */
  8.  
  9. #if !defined( __PROCESS_H )
  10. #define __PROCESS_H
  11.  
  12. #if !defined( __DEFS_H )
  13. #include <_defs.h>
  14. #endif
  15.  
  16. /*  Modes available as first argument to the spawnxx functions. */
  17.  
  18. #define P_WAIT    0 /* child runs separately, parent waits until exit */
  19. #define P_NOWAIT  1 /* both concurrent -- not implemented */
  20. #define P_OVERLAY 2 /* child replaces parent, parent no longer exists */
  21.  
  22. #define P_NOWAITO 3 /* ASYNCH,       toss RC    */
  23. #define P_DETACH  4 /* DETACHED,     toss RC    */
  24.  
  25. #define WAIT_CHILD       0
  26. #define WAIT_GRANDCHILD      1
  27.  
  28. /*  MSDOS does not have any abstract identifier for a process, but the
  29.     process Program Segment Prefix location provides a similar token.
  30. */
  31.  
  32. extern  unsigned _Cdecl _psp;    /* provided unconditionally in dos.h */
  33.  
  34. #define  getpid()   (_psp)
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. void _Cdecl abort(void);
  40. void _Cdecl _cexit(void);
  41. void _Cdecl _c_exit(void);
  42. int  _Cdecl execl(char *__path, char *__arg0, ...);
  43. int  _Cdecl execle(char *__path, char *__arg0, ...);
  44. int  _Cdecl execlp(char *__path, char *__arg0, ...);
  45. int  _Cdecl execlpe(char *__path, char *__arg0, ...);
  46. int  _Cdecl execv(char *__path, char *__argv[]);
  47. int  _Cdecl execve(char *__path, char *__argv[], char **__env);
  48. int  _Cdecl execvp(char *__path, char *__argv[]);
  49. int  _Cdecl execvpe(char *__path, char *__argv[], char **__env);
  50. void _Cdecl exit(int __status);
  51. void _Cdecl _exit(int __status);
  52. int  _Cdecl spawnl(int __mode, char *__path, char *__arg0, ...);
  53. int  _Cdecl spawnle(int __mode, char *__path, char *__arg0, ...);
  54. int  _Cdecl spawnlp(int __mode, char *__path, char *__arg0, ...);
  55. int  _Cdecl spawnlpe(int __mode, char *__path, char *__arg0, ...);
  56. int  _Cdecl spawnv(int __mode, char *__path, char *__argv[]);
  57. int  _Cdecl spawnve(int __mode, char *__path, char *__argv[], char **__env);
  58. int  _Cdecl spawnvp(int __mode, char *__path, char *__argv[]);
  59. int  _Cdecl spawnvpe(int __mode, char *__path, char *__argv[], char **__env);
  60. int  _Cdecl system(const char *__command);
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65. #endif  /* __PROCESS_H */
  66.  
  67.