home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / BCPPOWL3.ZIP / PATINC.ZIP / PROCESS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-28  |  2.5 KB  |  65 lines

  1. /*  process.h
  2.  
  3.     Symbols and structures for process management.
  4.  
  5.     Copyright (c) Borland International 1987,1988,1990,1991
  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. int _Cdecl _FARFUNC execl(char _FAR *__path, char _FAR *__arg0, ...);
  41. int _Cdecl _FARFUNC execle(char _FAR *__path, char _FAR *__arg0, ...);
  42. int _Cdecl _FARFUNC execlp(char _FAR *__path, char _FAR *__arg0, ...);
  43. int _Cdecl _FARFUNC execlpe(char _FAR *__path, char _FAR *__arg0, ...);
  44. int _Cdecl _FARFUNC execv(char _FAR *__path, char _FAR *__argv[]);
  45. int _Cdecl _FARFUNC execve(char _FAR *__path, char _FAR *__argv[], char _FAR *_FAR *__env);
  46. int _Cdecl _FARFUNC execvp(char _FAR *__path, char _FAR *__argv[]);
  47. int _Cdecl _FARFUNC execvpe(char _FAR *__path, char _FAR *__argv[], char _FAR *_FAR *__env);
  48. void    _Cdecl exit(int __status);
  49. void    _Cdecl _exit(int __status);
  50. int _Cdecl _FARFUNC spawnl(int __mode, char _FAR *__path, char _FAR *__arg0, ...);
  51. int _Cdecl _FARFUNC spawnle(int __mode, char _FAR *__path, char _FAR *__arg0, ...);
  52. int _Cdecl _FARFUNC spawnlp(int __mode, char _FAR *__path, char _FAR *__arg0, ...);
  53. int _Cdecl _FARFUNC spawnlpe(int __mode, char _FAR *__path, char _FAR *__arg0, ...);
  54. int _Cdecl _FARFUNC spawnv(int __mode, char _FAR *__path, char _FAR *__argv[]);
  55. int _Cdecl _FARFUNC spawnve(int __mode, char _FAR *__path, char _FAR *__argv[], char _FAR *_FAR *__env);
  56. int _Cdecl _FARFUNC spawnvp(int __mode, char _FAR *__path, char _FAR *__argv[]);
  57. int _Cdecl _FARFUNC spawnvpe(int __mode, char _FAR *__path, char _FAR *__argv[], char _FAR *_FAR *__env);
  58. int _Cdecl _FARFUNC system(const char _FAR *__command);
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62.  
  63. #endif  /* __PROCESS_H */
  64.  
  65.