home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newlibs / cclib.lzh / stat.h < prev    next >
C/C++ Source or Header  |  1989-09-25  |  519b  |  30 lines

  1. #ifndef STAT_H
  2. #define STAT_H 1
  3.  
  4. /* this structure is filled in by the stat function */
  5.  
  6. struct stat
  7. {
  8. unsigned short st_attr;
  9. long st_mtime;
  10. long st_size;
  11. };
  12.  
  13. /* st_attr member... */
  14.  
  15. /* file is NOT deletable */
  16. #define ST_DELETE (1L<<0)
  17. /* file is NOT executable */
  18. #define ST_EXECUTE (1L<<1)
  19. /* file is NOT writeable */
  20. #define ST_WRITE (1L<<2)
  21. /* file is NOT readable */
  22. #define ST_READ (1L<<3)
  23. /* file has been archived */
  24. #define ST_ARCHIVE (1L<<4)
  25.  
  26. /* st_mtime member is in seconds since Jan 1, 1978 */
  27.  
  28. #endif
  29.  
  30.