home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v37.lha / V37 / include / dos / dostags.i < prev    next >
Text File  |  1991-11-27  |  4KB  |  103 lines

  1.     IFND    DOS_DOSTAGS_I
  2. DOS_DOSTAGS_I SET    1
  3. **
  4. **    $Filename: dos/dostags.i $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 36.13 $
  7. **    $Date: 91/04/29 $
  8. **
  9. **    Tag definitions for all Dos routines using tags
  10. **
  11. **    (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.  
  16.      IFND  UTILITY_TAGITEM_I
  17.      INCLUDE "utility/tagitem.i"
  18.      ENDC
  19.  
  20. *****************************************************************************
  21. * definitions for the System() call
  22.  
  23. SYS_Dummy    EQU    TAG_USER+32
  24. SYS_Input    EQU    SYS_Dummy+1    ; specifies the input filehandle
  25. SYS_Output    EQU    SYS_Dummy+2    ; specifies the output filehandle
  26. SYS_Asynch    EQU    SYS_Dummy+3    ; run asynch, close input/output(!)
  27. SYS_UserShell    EQU    SYS_Dummy+4   ; send to user shell instead of boot shell
  28. SYS_CustomShell    EQU    SYS_Dummy+5   ; send to a specific shell (data is name)
  29. *SYS_Error    EQU    SYS_Dummy+?
  30.  
  31.  
  32. *****************************************************************************
  33. * definitions for the CreateNewProc() call
  34. * you MUST specify one of NP_Seglist or NP_Entry.  All else is optional.
  35.  
  36. NP_Dummy    EQU TAG_USER+1000
  37. NP_Seglist    EQU NP_Dummy+1     ; seglist of code to run for the process
  38. NP_FreeSeglist    EQU NP_Dummy+2     ; free seglist on exit - only valid for
  39.                  ; for NP_Seglist.  Default is TRUE.
  40. NP_Entry    EQU NP_Dummy+3     ; entry point to run - mutually exclusive
  41.                  ; with NP_Seglist.
  42. NP_Input    EQU NP_Dummy+4     ; filehandle - default is Open("NIL:"...)
  43. NP_Output    EQU NP_Dummy+5     ; filehandle - default is Open("NIL:"...)
  44. NP_CloseInput    EQU NP_Dummy+6     ; close input filehandle on exit
  45.                  ; default TRUE
  46. NP_CloseOutput    EQU NP_Dummy+7     ; close output filehandle on exit
  47.                  ; default TRUE
  48. NP_Error    EQU NP_Dummy+8     ; filehandle - default is Open("NIL:"...)
  49. NP_CloseError    EQU NP_Dummy+9     ; close error filehandle on exit
  50.                  ; default TRUE
  51. NP_CurrentDir    EQU NP_Dummy+10     ; lock - default is parent's current dir  
  52. NP_StackSize    EQU NP_Dummy+11     ; stacksize for process - default 4000    
  53. NP_Name        EQU NP_Dummy+12     ; name for process - default "New Process"
  54. NP_Priority    EQU NP_Dummy+13     ; priority - default same as parent
  55. NP_ConsoleTask    EQU NP_Dummy+14     ; consoletask - default same as parent    
  56. NP_WindowPtr    EQU NP_Dummy+15     ; window ptr - default is same as parent  
  57. NP_HomeDir    EQU NP_Dummy+16     ; home directory - default current home dir   
  58. NP_CopyVars    EQU NP_Dummy+17     ; boolean to copy local vars-default TRUE 
  59. NP_Cli        EQU NP_Dummy+18     ; create cli structure - default FALSE
  60. NP_Path        EQU NP_Dummy+19     ; path - default is copy of parents path  
  61.                  ; only valid if a cli process!
  62. NP_CommandName    EQU NP_Dummy+20  ; commandname - valid only for CLI
  63. NP_Arguments    EQU NP_Dummy+21
  64. ; cstring of arguments - passed with str in a0, length in d0.
  65. ; (copied and freed on exit.)  Default is 0-length NULL ptr.
  66. ; NOTE: not operational until V37 - see BIX/TechNotes for
  67. ; more info/workaround.  In V36, the registers were random.
  68. ; You must NEVER use NP_Arguments with a NP_Input of NULL.
  69.  
  70. NP_NotifyOnDeath EQU NP_Dummy+22 ; notify parent on death - default FALSE
  71.                  ; Not functional yet.
  72. NP_Synchronous    EQU NP_Dummy+23     ; don't return until process finishes -
  73.                  ; default FALSE.
  74.                  ; Not functional yet.
  75. NP_ExitCode    EQU NP_Dummy+24     ; code to be called on process exit
  76. NP_ExitData    EQU NP_Dummy+25     ; optional argument for NP_EndCode rtn -
  77.                  ; default NULL
  78.  
  79. *****************************************************************************
  80. * tags for AllocDosObject
  81. ADO_Dummy    EQU    TAG_USER+2000
  82. ADO_FH_Mode    EQU    ADO_Dummy+1    ; for type DOS_FILEHANDLE only
  83.                 ; sets up FH for the type of open being done
  84.                 ; This can make a big difference for buffered
  85.                 ; files.
  86.  
  87.     ; The following are for DOS_CLI
  88.     ; If you do not specify these, dos will use it's preferred values
  89.     ; which may change from release to release.  The BPTRs to these
  90.     ; will be set up correctly for you.  Everything will be zero,
  91.     ; except cli_FailLevel (10) and cli_Background (DOSTRUE).
  92.     ; NOTE: you may also use these 4 tags with CreateNewProc.
  93.  
  94. ADO_DirLen    EQU    ADO_Dummy+2    ; size in bytes for current dir buffer
  95. ADO_CommNameLen    EQU    ADO_Dummy+3    ; size in bytes for command name buffer
  96. ADO_CommFileLen    EQU    ADO_Dummy+4    ; size in bytes for command file buffer
  97. ADO_PromptLen    EQU    ADO_Dummy+5    ; size in bytes for the prompt buffer
  98.  
  99. * tags for NewLoadSeg
  100. * no tags are defined yet for NewLoadSeg
  101.  
  102.     ENDC    ; DOS_DOSTAGS_I
  103.