home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / ino.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  953 b   |  33 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:ino.h    1.4"
  10.  
  11. /*
  12.  *    Inode structure as it appears on a disk block.
  13.  */
  14.  
  15. struct    dinode
  16. {
  17.     ushort    di_mode;    /* mode and type of file */
  18.     short    di_nlink;        /* number of links to file */
  19.     ushort    di_uid;          /* owner's user id */
  20.     ushort    di_gid;          /* owner's group id */
  21.     off_t    di_size;         /* number of bytes in file */
  22.     char      di_addr[39];    /* disk block addresses */
  23.     char      di_gen;        /* file generation number */
  24.     time_t    di_atime;       /* time last accessed */
  25.     time_t    di_mtime;       /* time last modified */
  26.     time_t    di_ctime;       /* time created */
  27. };
  28. /*
  29.  * The 40 address bytes:
  30.  *    39 used as 13 addresses of 3 bytes each.
  31.  *    40th byte is used as a file generation number.
  32.  */
  33.