home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 56 / af056sub.adf / parnfs.lha / dos.h < prev    next >
C/C++ Source or Header  |  1993-12-02  |  3KB  |  121 lines

  1.  
  2. /*
  3.  * $Id: dos.h,v 1.1 1993/12/02 20:45:46 Rhialto Exp $
  4.  * $Log: dos.h,v $
  5.  * Revision 1.1  1993/12/02  20:45:46  Rhialto
  6.  * Initial revision
  7.  *
  8.  */
  9.  
  10. #ifndef DOS_H
  11. #define DOS_H
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include "exec/types.h"
  15. #endif
  16. #ifndef EXEC_MEMORY_H
  17. #include "exec/memory.h"
  18. #endif
  19. #ifndef EXEC_INTERRUPTS_H
  20. #include "exec/interrupts.h"
  21. #endif
  22. #ifndef EXEC_NODES_H
  23. #include "exec/nodes.h"
  24. #endif
  25. #ifndef EXEC_PORTS_H
  26. #include "exec/ports.h"
  27. #endif
  28. #ifndef EXEC_IO_H
  29. #include "exec/io.h"
  30. #endif
  31. #ifndef DOS_DOS_H
  32. #include "dos/dos.h"
  33. #endif
  34. #ifndef DOS_DOSEXTENS_H
  35. #include "dos/dosextens.h"
  36. #endif
  37. #ifndef DOS_FILEHANDLER_H
  38. #include "dos/filehandler.h"
  39. #endif
  40. #ifndef DEVICES_TRACKDISK_H
  41. #include "devices/trackdisk.h"
  42. #endif
  43. #ifndef DEVICES_TIMER_H
  44. #include "devices/timer.h"
  45. #endif
  46.  
  47. #ifndef CLIB_DOS_PROTOS_H
  48. #include <clib/dos_protos.h>
  49. #endif
  50.  
  51. extern struct DosLibrary *DOSBase;
  52.  
  53. /*
  54.  *  ACTIONS which do not exist in dosextens.h but which indeed exist on
  55.  *  the Amiga.
  56.  */
  57.  
  58. #define ACTION_MORECACHE    18L
  59. #ifndef ACTION_FLUSH
  60. #define ACTION_FLUSH        27L
  61. #endif
  62. #define ACTION_RAWMODE        994L
  63. #define ACTION_OPENRW        1004L
  64. #define ACTION_OPENOLD        1005L
  65. #define ACTION_OPENNEW        1006L
  66. #define ACTION_CLOSE        1007L
  67. #ifndef ACTION_SEEK
  68. #define ACTION_SEEK        1008L
  69. #endif
  70.  
  71. #ifndef FIBB_HIDDEN
  72. #define FIBB_HIDDEN 7L
  73. #define FIBF_HIDDEN (1L<<FIBB_HIDDEN)
  74. #endif
  75.  
  76. #ifndef DE_DOSTYPE
  77. #define DE_DOSTYPE        16L
  78. #endif
  79.  
  80. #define MSH_MAGIC        'Msh\0'
  81.  
  82. #define CTOB(x)         (((long)(x))>>2)    /*  BCPL conversion */
  83. #define BTOC(x) (void *)(((long)(x))<<2)
  84.  
  85. #define bmov(ss,dd,nn) CopyMem(ss,dd,(ulong)(nn))   /* Matt's habit */
  86.  
  87. #define DOS_FALSE   0L
  88. #define DOS_TRUE    -1L
  89.  
  90. typedef struct Interrupt    INTERRUPT;
  91. typedef struct Task        TASK;
  92. typedef struct FileLock     LOCK;
  93. typedef struct FileInfoBlock    FIB;
  94. typedef struct DosPacket    PACKET;
  95. typedef struct Process        PROC;
  96. typedef struct DeviceNode    DEVNODE;
  97. typedef struct DeviceList    DEVLIST;
  98. typedef struct DosInfo        DOSINFO;
  99. typedef struct RootNode     ROOTNODE;
  100. typedef struct FileHandle    FH;
  101. typedef struct MsgPort        PORT;
  102. typedef struct Message        MSG;
  103. typedef struct MinList        LIST;
  104. typedef struct MinNode        NODE;
  105. typedef struct DateStamp    STAMP;
  106. typedef struct InfoData     INFODATA;
  107. typedef struct DosLibrary    DOSLIB;
  108.  
  109. #define PType (packet->dp_Type)
  110. #define PArg1 (packet->dp_Arg1)
  111. #define PArg2 (packet->dp_Arg2)
  112. #define PArg3 (packet->dp_Arg3)
  113. #define PArg4 (packet->dp_Arg4)
  114. #define PArg5 (packet->dp_Arg5)
  115. #define PRes1 (packet->dp_Res1)
  116. #define PRes2 (packet->dp_Res2)
  117.  
  118. #define dl_NetFileLockList   dl_unused
  119.  
  120. #endif
  121.