home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MNLDOS.ZIP / src / spawn.h < prev    next >
C/C++ Source or Header  |  2004-07-13  |  1KB  |  52 lines

  1. /* $Id: spawn.h,v 1.2 2004/07/13 07:39:08 ozzmosis Exp $ */
  2.  
  3. /*
  4.  *  SPAWN.H
  5.  *
  6.  *  Prototypes for SPAWN.ASM.  This file released to the public domain.
  7.  *
  8.  *  These swap routines imply the use of Thomas Wagner's EXEC module
  9.  *  somewhere in the executable.  If you don't have this (it's free, and
  10.  *  PD), then simply define NODOSSWAP.
  11.  */
  12.  
  13. #ifndef __SPAWN_H__
  14. #define __SPAWN_H__
  15.  
  16. /* Return codes (only upper byte significant) */
  17.  
  18. #define RC_PREPERR   0x0100
  19. #define RC_NOFILE    0x0200
  20. #define RC_EXECERR   0x0300
  21. #define RC_ENVERR    0x0400
  22. #define RC_SWAPERR   0x0500
  23.  
  24. /* Swap method and option flags */
  25.  
  26. #define USE_EMS      0x01
  27. #define USE_XMS      0x02
  28. #define USE_FILE     0x04
  29. #define EMS_FIRST    0x00
  30. #define XMS_FIRST    0x10
  31. #define HIDE_FILE    0x40
  32. #define NO_PREALLOC  0x100
  33. #define CHECK_NET    0x200
  34.  
  35. #define USE_ALL      (USE_EMS | USE_XMS | USE_FILE)
  36.  
  37. /* internal flags for prep_swap */
  38.  
  39. #define CREAT_TEMP      0x0080
  40. #define DONT_SWAP_ENV   0x4000
  41.  
  42. #if defined(__DOS__) && defined(__WATCOMC__)
  43. #define DOSPREF cdecl
  44. #else
  45. #define DOSPREF
  46. #endif
  47.  
  48. int DOSPREF do_spawn(int swapping, char *execfname, const char *cmdtail, unsigned envlen, char *envp);
  49. int DOSPREF prep_swap(unsigned method, char *swapfname);
  50.  
  51. #endif
  52.