Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9 KiB

  1. /***
  2. *process.h - definition and declarations for process control functions
  3. *
  4. * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the modeflag values for spawnxx calls. Only
  8. * P_WAIT and P_OVERLAY are currently implemented on DOS 2 & 3.
  9. * P_NOWAIT is also enabled on DOS 4. Also contains the function
  10. * argument declarations for all process control related routines.
  11. *
  12. *******************************************************************************/
  13. #ifndef NO_EXT_KEYS /* extensions enabled */
  14. #define _CDECL cdecl
  15. #define _NEAR near
  16. #else /* extensions not enabled */
  17. #define _CDECL
  18. #define _NEAR
  19. #endif /* NO_EXT_KEYS */
  20. /* modeflag values for spawnxx routines */
  21. extern int _NEAR _CDECL _p_overlay;
  22. #define P_WAIT 0
  23. #define P_NOWAIT 1
  24. #define P_OVERLAY _p_overlay
  25. #define OLD_P_OVERLAY 2
  26. #define P_NOWAITO 3
  27. /* Action Codes used with Cwait() */
  28. #define WAIT_CHILD 0
  29. #define WAIT_GRANDCHILD 1
  30. /* function prototypes */
  31. void _CDECL abort(void);
  32. int _CDECL cwait(int *, int, int);
  33. int _CDECL execl(char *, char *, ...);
  34. int _CDECL execle(char *, char *, ...);
  35. int _CDECL execlp(char *, char *, ...);
  36. int _CDECL execlpe(char *, char *, ...);
  37. int _CDECL execv(char *, char * *);
  38. int _CDECL execve(char *, char * *, char * *);
  39. int _CDECL execvp(char *, char * *);
  40. int _CDECL execvpe(char *, char * *, char * *);
  41. void _CDECL exit(int);
  42. void _CDECL _exit(int);
  43. int _CDECL getpid(void);
  44. int _CDECL spawnl(int, char *, char *, ...);
  45. int _CDECL spawnle(int, char *, char *, ...);
  46. int _CDECL spawnlp(int, char *, char *, ...);
  47. int _CDECL spawnlpe(int, char *, char *, ...);
  48. int _CDECL spawnv(int, char *, char * *);
  49. int _CDECL spawnve(int, char *, char * *, char * *);
  50. int _CDECL spawnvp(int, char *, char * *);
  51. int _CDECL spawnvpe(int, char *, char * *, char * *);
  52. int _CDECL system(const char *);
  53. int _CDECL wait(int *);