1: /*
   2:  * Inode structure as it appears on
   3:  * a disk block.
   4:  */
   5: struct dinode
   6: {
   7:     u_short di_mode;        /* mode and type of file */
   8:     short   di_nlink;       /* number of links to file */
   9:     short   di_uid;         /* owner's user id */
  10:     short   di_gid;         /* owner's group id */
  11:     off_t   di_size;        /* number of bytes in file */
  12:     char    di_addr[40];    /* disk block addresses */
  13:     time_t  di_atime;       /* time last accessed */
  14:     time_t  di_mtime;       /* time last modified */
  15:     time_t  di_ctime;       /* time created */
  16: };
  17: 
  18: #ifndef UCB_NKB
  19: #define INOPB   8   /* 8 inodes per block */
  20: /*
  21:  *	39 of the address bytes are used;
  22:  *	13 addresses of 3 bytes each.
  23:  */
  24: #endif
  25: 
  26: #if UCB_NKB == 1
  27: #define INOPB   16  /* 16 inodes per BSIZE block */
  28: /*
  29:  *	21 of the address bytes are used;
  30:  *	7 addresses of 3 bytes each.
  31:  */
  32: #endif

Defined struct's

dinode defined in line 5; used 136 times

Defined macros

Usage of this include

Last modified: 1983-09-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 776
Valid CSS Valid XHTML 1.0 Strict