home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / dcmd_408.lzh / DCmd / defs.h < prev    next >
C/C++ Source or Header  |  1990-11-21  |  2KB  |  91 lines

  1.  
  2. /*
  3.  *  DEFS.H
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <exec/nodes.h>
  8. #include <exec/lists.h>
  9. #include <exec/ports.h>
  10. #include <exec/memory.h>
  11.  
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <time.h>
  15.  
  16. #include <libraries/dos.h>
  17. #include <libraries/dosextens.h>
  18. #include <libraries/filehandler.h>
  19.  
  20. /*
  21.  *  ACTIONS which do not exist in dosextens.h but which indeed exist on
  22.  *  the Amiga.
  23.  */
  24.  
  25. #define ACTION_OPENAPPEND   8192
  26. #define ACTION_OPENRW        1004
  27. #define ACTION_OPENOLD        1005
  28. #define ACTION_OPENNEW        1006
  29. #define ACTION_CLOSE        1007
  30. #define ACTION_SEEK        1008
  31. #define ACTION_RAWMODE        994
  32. #define ACTION_MORECACHE    18
  33. #define ACTION_FLUSH        27
  34.  
  35. #define CTOB(x) (void *)(((long)(x))>>2)    /*  BCPL conversion */
  36. #define BTOC(x) (void *)(((long)(x))<<2)
  37.  
  38. #define DOS_FALSE   0
  39. #define DOS_TRUE    -1
  40.  
  41. typedef unsigned char    ubyte;            /*    unsigned quantities        */
  42. typedef unsigned short    uword;
  43. typedef unsigned long    ulong;
  44.  
  45. typedef struct Interrupt    Interrupt;
  46. typedef struct Task        Task;
  47. typedef struct FileInfoBlock    FIB;
  48. typedef struct DosPacket    DosPacket;
  49. typedef struct Process        Process;
  50. typedef struct CommandLineInterface CLI;
  51. typedef struct DeviceNode    DeviceNode;
  52. typedef struct DeviceList    DeviceList;
  53. typedef struct DosInfo        DosInfo;
  54. typedef struct RootNode     RootNode;
  55. typedef struct FileHandle    FileHandle;
  56. typedef struct MsgPort        MsgPort;
  57. typedef struct Message        Message;
  58. typedef struct MinList        MinList;
  59. typedef struct MinNode        MinNode;
  60. typedef struct Node        Node;
  61. typedef struct DateStamp    DateStamp;
  62. typedef struct InfoData     InfoData;
  63. typedef struct DosLibrary    DosLibrary;
  64.  
  65. #define Prototype   extern
  66. #define Local        static
  67.  
  68. typedef struct XMsgPort {
  69.     MsgPort Port;
  70.     Process *Proc;
  71.     char    *FileName;
  72.     APTR    OldConsoleTask;
  73.     long    Segment;
  74. } XMsgPort;
  75.  
  76. Prototype void *FindTask();
  77. Prototype void *CreatePort();
  78. Prototype void *GetMsg();
  79. Prototype void *FindPort();
  80. Prototype void *AllocMem();
  81. Prototype void *GetHead();
  82. Prototype void *GetTail();
  83. Prototype void *GetSucc();
  84. Prototype void *GetPred();
  85. Prototype void *RemHead();
  86. Prototype void *RemTail();
  87.  
  88. static char *_File = __BASE_FILE__;
  89.  
  90.  
  91.