1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)stat.h	7.1 (Berkeley) 6/4/86
   7:  */
   8: 
   9: struct  stat
  10: {
  11:     dev_t   st_dev;
  12:     ino_t   st_ino;
  13:     unsigned short st_mode;
  14:     short   st_nlink;
  15:     uid_t   st_uid;
  16:     gid_t   st_gid;
  17:     dev_t   st_rdev;
  18:     off_t   st_size;
  19:     time_t  st_atime;
  20:     int st_spare1;
  21:     time_t  st_mtime;
  22:     int st_spare2;
  23:     time_t  st_ctime;
  24:     int st_spare3;
  25:     long    st_blksize;
  26:     long    st_blocks;
  27:     long    st_spare4[2];
  28: };
  29: 
  30: #define S_IFMT  0170000     /* type of file */
  31: #define     S_IFDIR 0040000 /* directory */
  32: #define     S_IFCHR 0020000 /* character special */
  33: #define     S_IFBLK 0060000 /* block special */
  34: #define     S_IFREG 0100000 /* regular */
  35: #define     S_IFLNK 0120000 /* symbolic link */
  36: #define     S_IFSOCK 0140000/* socket */
  37: #define S_ISUID 0004000     /* set user id on execution */
  38: #define S_ISGID 0002000     /* set group id on execution */
  39: #define S_ISVTX 0001000     /* save swapped text even after use */
  40: #define S_IREAD 0000400     /* read permission, owner */
  41: #define S_IWRITE 0000200    /* write permission, owner */
  42: #define S_IEXEC 0000100     /* execute/search permission, owner */

Defined struct's

Defined macros

S_IEXEC defined in line 42; never used
S_IFBLK defined in line 33; never used
S_IFCHR defined in line 32; never used
S_IFDIR defined in line 31; never used
S_IFLNK defined in line 35; never used
S_IFMT defined in line 30; never used
S_IFREG defined in line 34; never used
S_IFSOCK defined in line 36; never used
S_IREAD defined in line 40; never used
S_ISGID defined in line 38; never used
S_ISUID defined in line 37; never used
S_ISVTX defined in line 39; never used
S_IWRITE defined in line 41; never used

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 815
Valid CSS Valid XHTML 1.0 Strict