# 2.11BSD#431 - /usr/src/old/v6/inode.h

##### Macros

    IEXEC             X
    IFALC             X
    IFBLK             X
    IFCHR             X
    IFDIR             X
    IFLRG             X
    IFMT              X
    IFREG             X
    IREAD             X
    ISUID             X
    ISVTX             X
    IWRITE            X

##### struct's

    inode             X

       1: /* inode structure of version 6 Unix filesystem		*/
       2: struct  inode
       3: {
       4:     int flags;
       5:     char    nlinks;     /* reference count */
       6:     char    uid;        /*user id*/
       7:     char    gid;
       8:     char    size0;
       9:     int size1;
      10:     unsigned    addr[8];    /*block numbers*/
      11:     int actime[2];
      12:     int modtime[2];
      13: };
      14:
      15: /* modes */
      16: #define IFMT    0170000     /* type of file */
      17: #define IFALC   0100000     /* allocated */
      18: #define IFDIR   0040000     /* directory */
      19: #define IFCHR   0020000     /* character special */
      20: #define IFBLK   0060000     /* block special */
      21: #define IFREG   0000000     /* regular */
      22: #define IFLRG   0010000     /* large file */
      23: #define ISUID   04000       /* set user id on execution */
      24: #define ISVTX   01000       /* save swapped text even after use */
      25: #define IREAD   0400        /* read, write, execute permissions */
      26: #define IWRITE  0200
      27: #define IEXEC   0100

#### Defined struct's

inode defined in line 2; used 18 times

- in /usr/src/old/v6/v6.c line 22(2), 39(2), 58(2), 161(2), 236(2), 330(2), 366(2), 374-375(4)

#### Defined macros

IEXEC defined in line 27; never used
IFALC defined in line 17; never used
IFBLK defined in line 20; used 1 times

- in /usr/src/old/v6/v6.c line 274

IFCHR defined in line 19; used 1 times

- in /usr/src/old/v6/v6.c line 274

IFDIR defined in line 18; used 1 times

- in /usr/src/old/v6/v6.c line 339

IFLRG defined in line 22; used 2 times

- in /usr/src/old/v6/v6.c line 280, 344

IFMT defined in line 16; never used
IFREG defined in line 21; never used
IREAD defined in line 25; never used
ISUID defined in line 23; never used
ISVTX defined in line 24; never used
IWRITE defined in line 26; never used

#### Usage of this include

inode.h used 1 times

- in /usr/src/old/v6/v6.c line 8

Last modified: 1987-08-06 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 770 |