home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / HITECH-C / Z80V309.EXE / lha / STAT.H < prev    next >
Text File  |  1979-11-30  |  768b  |  23 lines

  1. struct stat
  2. {
  3.     short    st_mode;    /* flags */
  4.     long    st_atime;    /* access time */
  5.     long    st_mtime;    /* modification time */
  6.     long    st_size;    /* file size in bytes */
  7. };
  8.  
  9. /* Flag bits in st_mode */
  10.  
  11. #define    S_IFMT        0x600    /* type bits */
  12. #define        S_IFDIR    0x400    /* is a directory */
  13. #define        S_IFREG    0x200    /* is a regular file */
  14. #define    S_IREAD        0400    /* file can be read */
  15. #define    S_IWRITE    0200    /* file can be written */
  16. #define    S_IEXEC        0100    /* file can be executed */
  17. #define    S_HIDDEN    0x1000    /* file is hidden */
  18. #define    S_SYSTEM    0x2000    /* file is marked system */
  19. #define    S_ARCHIVE    0x4000    /* file has been written to */
  20.  
  21.  
  22. extern int    stat(char *, struct stat *);
  23.