home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 191.lha / ARequester / reqdir.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-04-28  |  719 b   |  32 lines

  1. #ifndef REQDIR_H
  2. #define REQDIR_H 1
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. /* stuffing as much as possible into a 4 byte header */
  9.  
  10. typedef struct
  11. {
  12. UWORD size    :10;        /* size of this directory entry in bytes */
  13. UWORD archive :1;
  14. UWORD read    :1;
  15. UWORD write   :1;
  16. UWORD execute :1;
  17. UWORD delete  :1;
  18. UWORD dir     :1;
  19.  
  20. UWORD month   :4;         /* month value 1-12 */
  21. UWORD day     :5;         /* day of the month 0-31 */
  22. UWORD year    :6;         /* years since 1978 (no Amigas left in 2041?) */
  23. UWORD spare   :1;
  24.  
  25. /* char name[];  name of this directory entry */
  26. } Entry;
  27.  
  28. #define NextEntry(E) ( (Entry *) (((char *)E) + ((Entry *)E)->size) )
  29. #define EntryName(E) ( (char *) (E + 1) )
  30.  
  31. #endif
  32.