home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c034 / 4.ddi / INCLUDE / PROCESS.H$ / PROCESS.bin
Encoding:
Text File  |  1989-11-08  |  2.8 KB  |  92 lines

  1. /***
  2. *process.h - definition and declarations for process control functions
  3. *
  4. *    Copyright (c) 1985-1990, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file contains the declarations and definitions for the
  8. *    spawnxx, execxx, and various other process control routines.
  9. *
  10. ****/
  11.  
  12. #if defined(_DLL) && !defined(_MT)
  13. #error Cannot define _DLL without _MT
  14. #endif
  15.  
  16. #ifdef _MT
  17. #define _FAR_ _far
  18. #else
  19. #define _FAR_
  20. #endif
  21.  
  22. /* mode values for spawnxx routines
  23.  * (only P_WAIT and P_OVERLAY are supported on MS-DOS)
  24.  */
  25.  
  26. #ifndef _MT
  27. extern int _near _cdecl _p_overlay;
  28. #endif
  29.  
  30. #define P_WAIT        0
  31. #define P_NOWAIT    1
  32. #ifdef _MT
  33. #define P_OVERLAY    2
  34. #else
  35. #define P_OVERLAY    _p_overlay
  36. #endif
  37. #define OLD_P_OVERLAY    2
  38. #define P_NOWAITO    3
  39. #define P_DETACH    4
  40.  
  41.  
  42. /* action codes used with cwait() */
  43.  
  44. #define WAIT_CHILD 0
  45. #define WAIT_GRANDCHILD 1
  46.  
  47.  
  48. /* function prototypes */
  49.  
  50. #ifdef _MT
  51. int _FAR_ _cdecl _beginthread(void(_cdecl _FAR_ *)(void _FAR_ *),
  52.     void _FAR_ *, unsigned, void _FAR_ *);
  53. void _FAR_ _cdecl _endthread(void);
  54. #endif
  55. void _FAR_ _cdecl abort(void);
  56. void _FAR_ _cdecl _cexit(void);
  57. void _FAR_ _cdecl _c_exit(void);
  58. int _FAR_ _cdecl cwait(int _FAR_ *, int, int);
  59. int _FAR_ _cdecl execl(const char _FAR_ *, const char _FAR_ *, ...);
  60. int _FAR_ _cdecl execle(const char _FAR_ *, const char _FAR_ *, ...);
  61. int _FAR_ _cdecl execlp(const char _FAR_ *, const char _FAR_ *, ...);
  62. int _FAR_ _cdecl execlpe(const char _FAR_ *, const char _FAR_ *, ...);
  63. int _FAR_ _cdecl execv(const char _FAR_ *,
  64.     const char _FAR_ * const _FAR_ *);
  65. int _FAR_ _cdecl execve(const char _FAR_ *,
  66.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  67. int _FAR_ _cdecl execvp(const char _FAR_ *,
  68.     const char _FAR_ * const _FAR_ *);
  69. int _FAR_ _cdecl execvpe(const char _FAR_ *,
  70.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  71. void _FAR_ _cdecl exit(int);
  72. void _FAR_ _cdecl _exit(int);
  73. int _FAR_ _cdecl getpid(void);
  74. int _FAR_ _cdecl spawnl(int, const char _FAR_ *, const char _FAR_ *,
  75.     ...);
  76. int _FAR_ _cdecl spawnle(int, const char _FAR_ *, const char _FAR_ *,
  77.     ...);
  78. int _FAR_ _cdecl spawnlp(int, const char _FAR_ *, const char _FAR_ *,
  79.     ...);
  80. int _FAR_ _cdecl spawnlpe(int, const char _FAR_ *, const char _FAR_ *,
  81.     ...);
  82. int _FAR_ _cdecl spawnv(int, const char _FAR_ *,
  83.     const char _FAR_ * const _FAR_ *);
  84. int _FAR_ _cdecl spawnve(int, const char _FAR_ *,
  85.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  86. int _FAR_ _cdecl spawnvp(int, const char _FAR_ *,
  87.     const char _FAR_ * const _FAR_ *);
  88. int _FAR_ _cdecl spawnvpe(int, const char _FAR_ *,
  89.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  90. int _FAR_ _cdecl system(const char _FAR_ *);
  91. int _FAR_ _cdecl wait(int _FAR_ *);
  92.