home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / comms / network / dnet.lzh / dnet / snfs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-04  |  1.6 KB  |  99 lines

  1.  
  2. #define ulong unsigned long
  3. #define ubyte unsigned char
  4. #define uword unsigned short
  5.  
  6. typedef struct {
  7.     long    ds_Days;
  8.     long    ds_Minute;
  9.     long    ds_Tick;
  10. } STAMP;
  11.  
  12. typedef struct {
  13.     long    DirHandle;        /*  relative to directory (0=root)  */
  14.     uword   Modes;        /*  open modes                */
  15.     uword   Dummy;
  16. } OpOpen;
  17.  
  18. typedef struct {
  19.     long    Handle;
  20.     ulong   Prot;
  21.     long    Type;
  22.     long    Size;
  23.     STAMP   Date;
  24. } RtOpen;
  25.  
  26.  
  27. typedef struct {
  28.     long    Handle;     /*  file handle to read from        */
  29.     long    Bytes;        /*  # of bytes to read            */
  30. } OpRead;
  31.  
  32. typedef struct {
  33.     long    Bytes;        /*  < 0 == error            */
  34. } RtRead;
  35.  
  36. typedef struct {
  37.     long   Handle;     /*  file handle to read from        */
  38.     long    Bytes;        /*  # of bytes to read            */
  39. } OpWrite;
  40.  
  41. typedef struct {
  42.     long    Bytes;        /*  < 0 == error            */
  43. } RtWrite;
  44.  
  45. typedef struct {
  46.     long    Handle;
  47. } OpClose;
  48.  
  49. typedef struct {
  50.     long    Handle;
  51.     long    Offset;
  52.     long    How;
  53. } OpSeek;
  54.  
  55. typedef struct {
  56.     long    OldOffset;
  57.     long    NewOffset;        /*    -1 = error  */
  58. } RtSeek;
  59.  
  60. typedef struct {
  61.     long    Handle;
  62. } OpParent;
  63.  
  64. typedef RtOpen RtParent;
  65.  
  66. typedef struct {
  67.     long    DirHandle;
  68. } OpDelete;
  69.  
  70. typedef struct {
  71.     long    Error;
  72. } RtDelete;
  73.  
  74. typedef OpDelete OpCreateDir;
  75. typedef RtParent RtCreateDir;
  76.  
  77. typedef struct {
  78.     long    Handle;
  79.     long    Index;
  80. } OpNextDir;
  81.  
  82. typedef RtOpen RtNextDir;
  83.  
  84. typedef struct {
  85.     long    Handle;
  86. } OpDup;
  87.  
  88. typedef RtOpen    RtDup;
  89.  
  90. typedef struct {
  91.     long    DirHandle1;
  92.     long    DirHandle2;
  93. } OpRename;
  94.  
  95. typedef struct {
  96.     long    Error;
  97. } RtRename;
  98.  
  99.