home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c031 / 4.ddi / INCLUDE / PROCESS.H$ / PROCESS
Encoding:
Text File  |  1991-11-06  |  3.5 KB  |  134 lines

  1. /***
  2. *process.h - definition and declarations for process control functions
  3. *
  4. *    Copyright (c) 1985-1992, 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. #ifndef _INC_PROCESS
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #if (_MSC_VER <= 600)
  19. #define __cdecl     _cdecl
  20. #define __far       _far
  21. #define __near      _near
  22. #endif
  23.  
  24. /* mode values for spawnxx routines
  25.  * (only P_WAIT and P_OVERLAY are supported on MS-DOS)
  26.  */
  27.  
  28. extern int __near __cdecl _p_overlay;
  29.  
  30. #define _P_WAIT     0
  31. #define _P_NOWAIT    1
  32. #define _P_OVERLAY    _p_overlay
  33. #define _OLD_P_OVERLAY    2
  34. #define _P_NOWAITO    3
  35. #define _P_DETACH    4
  36.  
  37.  
  38. /* function prototypes */
  39.  
  40. void __cdecl abort(void);
  41. void __cdecl _cexit(void);
  42. void __cdecl _c_exit(void);
  43. #ifndef _WINDOWS
  44. int __cdecl _execl(const char *, const char *, ...);
  45. int __cdecl _execle(const char *, const char *, ...);
  46. int __cdecl _execlp(const char *, const char *, ...);
  47. int __cdecl _execlpe(const char *, const char *, ...);
  48. int __cdecl _execv(const char *,
  49.     const char * const *);
  50. int __cdecl _execve(const char *,
  51.     const char * const *, const char * const *);
  52. int __cdecl _execvp(const char *,
  53.     const char * const *);
  54. int __cdecl _execvpe(const char *,
  55.     const char * const *, const char * const *);
  56. #endif
  57. #ifndef _WINDLL
  58. void __cdecl exit(int);
  59. void __cdecl _exit(int);
  60. #endif
  61. int __cdecl _getpid(void);
  62. #ifndef _WINDOWS
  63. int __cdecl _spawnl(int, const char *, const char *,
  64.     ...);
  65. int __cdecl _spawnle(int, const char *, const char *,
  66.     ...);
  67. int __cdecl _spawnlp(int, const char *, const char *,
  68.     ...);
  69. int __cdecl _spawnlpe(int, const char *, const char *,
  70.     ...);
  71. int __cdecl _spawnv(int, const char *,
  72.     const char * const *);
  73. int __cdecl _spawnve(int, const char *,
  74.     const char * const *, const char * const *);
  75. int __cdecl _spawnvp(int, const char *,
  76.     const char * const *);
  77. int __cdecl _spawnvpe(int, const char *,
  78.     const char * const *, const char * const *);
  79. int __cdecl system(const char *);
  80. #endif
  81.  
  82. #ifndef __STDC__
  83. /* Non-ANSI names for compatibility */
  84.  
  85. #define P_WAIT        _P_WAIT
  86. #define P_NOWAIT    _P_NOWAIT
  87. #define P_OVERLAY    _P_OVERLAY
  88. #define OLD_P_OVERLAY    _OLD_P_OVERLAY
  89. #define P_NOWAITO    _P_NOWAITO
  90. #define P_DETACH    _P_DETACH
  91.  
  92. #ifndef _WINDOWS
  93. int __cdecl execl(const char *, const char *, ...);
  94. int __cdecl execle(const char *, const char *, ...);
  95. int __cdecl execlp(const char *, const char *, ...);
  96. int __cdecl execlpe(const char *, const char *, ...);
  97. int __cdecl execv(const char *,
  98.     const char * const *);
  99. int __cdecl execve(const char *,
  100.     const char * const *, const char * const *);
  101. int __cdecl execvp(const char *,
  102.     const char * const *);
  103. int __cdecl execvpe(const char *,
  104.     const char * const *, const char * const *);
  105. #endif
  106. int __cdecl getpid(void);
  107. #ifndef _WINDOWS
  108. int __cdecl spawnl(int, const char *, const char *,
  109.     ...);
  110. int __cdecl spawnle(int, const char *, const char *,
  111.     ...);
  112. int __cdecl spawnlp(int, const char *, const char *,
  113.     ...);
  114. int __cdecl spawnlpe(int, const char *, const char *,
  115.     ...);
  116. int __cdecl spawnv(int, const char *,
  117.     const char * const *);
  118. int __cdecl spawnve(int, const char *,
  119.     const char * const *, const char * const *);
  120. int __cdecl spawnvp(int, const char *,
  121.     const char * const *);
  122. int __cdecl spawnvpe(int, const char *,
  123.     const char * const *, const char * const *);
  124. #endif
  125.  
  126. #endif    /* __STDC__ */
  127.  
  128. #ifdef __cplusplus
  129. }
  130. #endif
  131.  
  132. #define _INC_PROCESS
  133. #endif    /* _INC_PROCESS */
  134.