home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / qc25 / include / process.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-25  |  2.9 KB  |  94 lines

  1. /***
  2. *process.h - Definition und Deklarationen für Ablaufsteuerungs-Funktionen
  3. *
  4. *    Copyright (c) 1985-1990, Microsoft Corporation.  Alle Rechte vorbehalten.
  5. *
  6. * Zweck:
  7. *    Diese Datei definiert die modeflag-Werte für spawnxx-Aufrufe.
  8. *    In MS-DOS sind gegenwärtig nur P_WAIT und P_OVERLAY verwirklicht.
  9. *    Enthält ferner die Deklarationen von Funktionsargumenten für alle 
  10. *    Routinen im Zusammenhang mit Ablaufsteuerung.
  11. *
  12. ***/
  13.  
  14. #if defined(_DLL) && !defined(_MT)
  15. #error _DLL kann ohne _MT nicht definiert werden
  16. #endif
  17.  
  18. #ifdef _MT
  19. #define _FAR_ _far
  20. #else
  21. #define _FAR_
  22. #endif
  23.  
  24. /* modeflag-Werte für spawnxx-Routinen
  25.  * (es werden nur P_WAIT und P_OVERLAY bei MS-DOS unterstützt)
  26.  */
  27.  
  28. #ifndef _MT
  29. extern int _near _cdecl _p_overlay;
  30. #endif
  31.  
  32. #define P_WAIT        0
  33. #define P_NOWAIT    1
  34. #ifdef _MT
  35. #define P_OVERLAY    2
  36. #else
  37. #define P_OVERLAY    _p_overlay
  38. #endif
  39. #define OLD_P_OVERLAY    2
  40. #define P_NOWAITO    3
  41. #define P_DETACH    4
  42.  
  43.  
  44. /* mit Cwait() benutzte Aktionscodes */
  45.  
  46. #define WAIT_CHILD 0
  47. #define WAIT_GRANDCHILD 1
  48.  
  49.  
  50. /* Funktionsprototypen */
  51.  
  52. #ifdef _MT
  53. int _FAR_ _cdecl _beginthread(void(_cdecl _FAR_ *)(void _FAR_ *),
  54.     void _FAR_ *, unsigned, void _FAR_ *);
  55. void _FAR_ _cdecl _endthread(void);
  56. #endif
  57. void _FAR_ _cdecl abort(void);
  58. void _FAR_ _cdecl _cexit(void);
  59. void _FAR_ _cdecl _c_exit(void);
  60. int _FAR_ _cdecl cwait(int _FAR_ *, int, int);
  61. int _FAR_ _cdecl execl(const char _FAR_ *, const char _FAR_ *, ...);
  62. int _FAR_ _cdecl execle(const char _FAR_ *, const char _FAR_ *, ...);
  63. int _FAR_ _cdecl execlp(const char _FAR_ *, const char _FAR_ *, ...);
  64. int _FAR_ _cdecl execlpe(const char _FAR_ *, const char _FAR_ *, ...);
  65. int _FAR_ _cdecl execv(const char _FAR_ *,
  66.     const char _FAR_ * const _FAR_ *);
  67. int _FAR_ _cdecl execve(const char _FAR_ *,
  68.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  69. int _FAR_ _cdecl execvp(const char _FAR_ *,
  70.     const char _FAR_ * const _FAR_ *);
  71. int _FAR_ _cdecl execvpe(const char _FAR_ *,
  72.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  73. void _FAR_ _cdecl exit(int);
  74. void _FAR_ _cdecl _exit(int);
  75. int _FAR_ _cdecl getpid(void);
  76. int _FAR_ _cdecl spawnl(int, const char _FAR_ *, const char _FAR_ *,
  77.     ...);
  78. int _FAR_ _cdecl spawnle(int, const char _FAR_ *, const char _FAR_ *,
  79.     ...);
  80. int _FAR_ _cdecl spawnlp(int, const char _FAR_ *, const char _FAR_ *,
  81.     ...);
  82. int _FAR_ _cdecl spawnlpe(int, const char _FAR_ *, const char _FAR_ *,
  83.     ...);
  84. int _FAR_ _cdecl spawnv(int, const char _FAR_ *,
  85.     const char _FAR_ * const _FAR_ *);
  86. int _FAR_ _cdecl spawnve(int, const char _FAR_ *,
  87.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  88. int _FAR_ _cdecl spawnvp(int, const char _FAR_ *,
  89.     const char _FAR_ * const _FAR_ *);
  90. int _FAR_ _cdecl spawnvpe(int, const char _FAR_ *,
  91.     const char _FAR_ * const _FAR_ *, const char _FAR_ * const _FAR_ *);
  92. int _FAR_ _cdecl system(const char _FAR_ *);
  93. int _FAR_ _cdecl wait(int _FAR_ *);
  94.