-.I stat
-structure into which information is placed concerning the file.
-The contents of the structure pointed to by
-.I buf
-.PP
-.nf
-.ta 1i 1.7i 2.5i
- struct stat {
- dev_t st_dev; /* device inode resides on */
- ino_t st_ino; /* this inode's number */
- u_short st_mode; /* protection */
- short st_nlink; /* number or hard links to the file */
- short st_uid; /* user-id of owner */
- short st_gid; /* group-id of owner */
- dev_t st_rdev; /* the device type, for inode that is device */
- off_t st_size; /* total size of file */
- time_t st_atime; /* file last access time */
- int st_spare1;
- time_t st_mtime; /* file last modify time */
- int st_spare2;
- time_t st_ctime; /* file last status change time */
- int st_spare3;
- long st_blksize; /* optimal blocksize for file system i/o ops */
- long st_blocks; /* actual number of blocks allocated */
- long st_spare4[2];
- };
-.fi
-.DT
-.PP
-.TP 12
-st_atime
-Time when file data was last read or modified. Changed by the following system
+.Fn stat
+structure
+as defined by
+.Aq Pa sys/stat.h
+(shown below)
+and into which information is placed concerning the file.
+.Bd -literal
+struct stat {
+ dev_t st_dev; /* device inode resides on */
+ ino_t st_ino; /* inode's number */
+ mode_t st_mode; /* inode protection mode */
+ nlink_t st_nlink; /* number or hard links to the file */
+ uid_t st_uid; /* user-id of owner */
+ gid_t st_gid; /* group-id of owner */
+ dev_t st_rdev; /* device type, for special file inode */
+ off_t st_size; /* file size, in bytes */
+ time_t st_atime; /* time of last access */
+ long st_spare1;
+ time_t st_mtime; /* time of last data modification */
+ long st_spare2;
+ time_t st_ctime; /* time of last file status change */
+ long st_spare3;
+ long st_blksize;/* optimal file sys I/O ops blocksize */
+ long st_blocks; /* blocks allocated for file */
+ u_long st_flags; /* user defined flags for file */
+ u_long st_gen; /* file generation number */
+};
+.Ed
+.Pp
+The time-related fields of
+.Fa struct stat
+are as follows:
+.Bl -tag -width st_blocks
+.It st_atime
+Time when file data last accessed. Changed by the following system