home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / PROCESS.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  3KB  |  107 lines

  1. /*  process.h
  2.  
  3.     Symbols and structures for process management.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 1.5
  9.  *
  10.  *      Copyright (c) 1987, 1994 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. #if !defined(__PROCESS_H)
  16. #define __PROCESS_H
  17.  
  18. #if !defined(___DEFS_H)
  19. #include <_defs.h>
  20. #endif
  21.  
  22.  
  23. #if !defined(RC_INVOKED)
  24.  
  25. #if defined(__STDC__)
  26. #pragma warn -nak
  27. #endif
  28.  
  29. #endif  /* !RC_INVOKED */
  30.  
  31.  
  32. /*  Modes available as first argument to the spawnxx functions. */
  33.  
  34. #define P_WAIT    0 /* child runs separately, parent waits until exit */
  35. #define P_NOWAIT  1 /* both concurrent -- not implemented */
  36. #define P_OVERLAY 2 /* child replaces parent, parent no longer exists */
  37.  
  38. #define P_NOWAITO 3 /* ASYNCH,       toss RC    */
  39. #define P_DETACH  4 /* DETACHED,     toss RC    */
  40.  
  41. #define WAIT_CHILD       0
  42. #define WAIT_GRANDCHILD      1
  43.  
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47.  
  48.  
  49. int  _RTLENTRY _EXPFUNC getpid(void);
  50. void _RTLENTRY _EXPFUNC abort(void);
  51. void _RTLENTRY _EXPFUNC _cexit(void);
  52. void _RTLENTRY _EXPFUNC _c_exit(void);
  53. int  _RTLENTRY _EXPFUNC execl(const char * __path, const char * __arg0, ...);
  54. int  _RTLENTRY _EXPFUNC execle(const char * __path, const char * __arg0, ...);
  55. int  _RTLENTRY _EXPFUNC execlp(const char * __path, const char * __arg0, ...);
  56. int  _RTLENTRY _EXPFUNC execlpe(const char * __path, const char * __arg0, ...);
  57. int  _RTLENTRY _EXPFUNC execv(const char * __path, char * const * __argv);
  58. int  _RTLENTRY _EXPFUNC execve(const char * __path, char * const * __argv,
  59.                               char * const * __env);
  60. int  _RTLENTRY _EXPFUNC execvp(const char * __path, char * const * __argv);
  61. int  _RTLENTRY _EXPFUNC execvpe(const char * __path, char * const * __argv,
  62.                                 char * const * __env);
  63. void _RTLENTRY _EXPFUNC exit(int __status);
  64. void _RTLENTRY _EXPFUNC _exit(int __status);
  65. int  _RTLENTRY _EXPFUNC spawnl(int __mode, const char * __path, const char * __arg0, ...);
  66. int  _RTLENTRY _EXPFUNC spawnle(int __mode, const char * __path, const char * __arg0, ...);
  67. int  _RTLENTRY _EXPFUNC spawnlp(int __mode, const char * __path, const char * __arg0, ...);
  68. int  _RTLENTRY _EXPFUNC spawnlpe(int __mode, const char * __path, const char * __arg0, ...);
  69. int  _RTLENTRY _EXPFUNC spawnv(int __mode, const char * __path, char * const * __argv);
  70. int  _RTLENTRY _EXPFUNC spawnve(int __mode, const char * __path, char * const * __argv,
  71.                                char * const * __env);
  72. int  _RTLENTRY _EXPFUNC spawnvp(int __mode, const char * __path, char * const * __argv);
  73. int  _RTLENTRY _EXPFUNC spawnvpe(int __mode, const char * __path, char * const * __argv,
  74.                                 char * const * __env);
  75. int  _RTLENTRY _EXPFUNC system(const char * __command);
  76.  
  77. #if defined(__MT__)
  78.  
  79. int _RTLENTRY _EXPFUNC _beginthread(void (_USERENTRY *__start)(void *),
  80.                                     unsigned __stksize, void *__arg);
  81.  
  82.  
  83. void _RTLENTRY _EXPFUNC _endthread     (void);
  84.  
  85. #endif  /* __MT__ */
  86.  
  87. int  _RTLENTRY _EXPFUNC cwait          (int *__term_stat, int __pid, int __action);
  88. int  _RTLENTRY _EXPFUNC wait           (int *__term_stat);
  89.  
  90.  
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94.  
  95.  
  96. #if !defined(RC_INVOKED)
  97.  
  98. #if defined(__STDC__)
  99. #pragma warn .nak
  100. #endif
  101.  
  102. #endif  /* !RC_INVOKED */
  103.  
  104.  
  105. #endif  /* __PROCESS_H */
  106.  
  107.