home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / DIRENT.H < prev    next >
C/C++ Source or Header  |  1992-08-28  |  1KB  |  36 lines

  1. /* sys/dirent.h (emx+gcc) */
  2.  
  3. #if !defined (_SYS_DIRENT_H)
  4. #define _SYS_DIRENT_H
  5.  
  6. #if !defined (MAXNAMLEN)
  7. #define MAXNAMLEN  260
  8. #endif
  9.  
  10. #if !defined (MAXPATHLEN)
  11. #define MAXPATHLEN 260
  12. #endif
  13.  
  14. #if !defined (A_RONLY)
  15. #define A_RONLY   0x01
  16. #define A_HIDDEN  0x02
  17. #define A_SYSTEM  0x04
  18. #define A_LABEL   0x08
  19. #define A_DIR     0x10
  20. #define A_ARCHIVE 0x20
  21. #endif
  22.  
  23. struct dirent
  24. {
  25.   ino_t          d_ino;                 /* Almost not used           */
  26.   int            d_reclen;              /* Almost not used           */
  27.   int            d_namlen;              /* Length of d_name          */
  28.   char           d_name[MAXNAMLEN + 1]; /* File name, 0 terminated   */
  29.   long           d_size;                /* File size (bytes)         */
  30.   unsigned short d_mode;                /* OS file attributes        */
  31.   unsigned short d_time;                /* OS file modification time */
  32.   unsigned short d_date;                /* OS file modification date */
  33. };
  34.  
  35. #endif /* !defined (SYS_DIRENT_H) */
  36.