home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c329 / 2.img / INCL / SYS / STAT.H next >
Encoding:
C/C++ Source or Header  |  1989-11-06  |  1.1 KB  |  30 lines

  1. /*
  2.  *    stat.h
  3.  *
  4.  *    Definition of structure returned by stat, fstat system calls.
  5.  *
  6.  *      Copyright (C) MicroWay, Inc. 1988, 1989
  7.  */
  8.  
  9. struct stat {
  10.         ushort  st_mode;        /* File attribute. */
  11.         ino_t   st_ino;         /* Checksum = f(path, file-name). */
  12.         dev_t   st_dev;         /* Id of device containing directory entry. */
  13.         dev_t   st_rdev;        /* Not used. */
  14.         short   st_nlink;       /* Not used. */
  15.         ushort  st_uid;         /* Not used. */
  16.         ushort  st_gid;         /* Not used. */
  17.         off_t   st_size;        /* File size in bytes. */
  18.         time_t  st_atime;       /* Not used. */
  19.         time_t  st_mtime;       /* Time of last data write. */
  20.         time_t  st_ctime;       /* Date of last data write. */
  21.                 /* Time/date in standard DOS format - */
  22.                 /* see description of function 4eh of int 21h. */
  23.  
  24. };
  25.  
  26. #define S_IREAD        00400   /* Read permission. */
  27. #define S_IWRITE        00200   /* Write permission. */
  28. #define S_IFMT        0xf000    /* File type field mask. */
  29. #define S_IFREG        0x8000    /* Regular type file. */
  30.