stat

Overview

Related Modules:

FS

Description:

Defines the file information structure.

Summary

Data Fields

Variable Name

Description

st_dev

unsigned long 

st_ino

unsigned long 

st_mode

unsigned short 

st_nlink

unsigned short 

st_uid

unsigned short 

st_gid

unsigned short 

st_rdev

unsigned long 

st_size

unsigned long 

st_blksize

unsigned long 

st_blocks

unsigned long 

st_atime

unsigned long 

st_atime_nsec

unsigned long 

st_mtime

unsigned long 

st_mtime_nsec

unsigned long 

st_ctime

unsigned long 

st_ctime_nsec

unsigned long 

Details

Field Documentation

st_atime

  1. unsigned long stat::st_atime

Description:

Time when the file is accessed for the last time which is represented by the number of seconds passed since 00:00:00 on January 1, 1970

st_atime_nsec

  1. unsigned long stat::st_atime_nsec

Description:

Time when the file is accessed for the last time, which is represented by the number of nanoseconds

st_blksize

  1. unsigned long stat::st_blksize

Description:

Size of the disk block that contains the file

st_blocks

  1. unsigned long stat::st_blocks

Description:

Number of disk blocks occupied by the file

st_ctime

  1. unsigned long stat::st_ctime

Description:

Time when the file state is modified for the last time, which is represented by the number of seconds

st_ctime_nsec

  1. unsigned long stat::st_ctime_nsec

Description:

Time when the file state is modified for the last time, which is represented by the number of nanoseconds

st_dev

  1. unsigned long stat::st_dev

Description:

Device ID used by the file

st_gid

  1. unsigned short stat::st_gid

Description:

Group ID

st_ino

  1. unsigned long stat::st_ino

Description:

Inode number

st_mode

  1. unsigned short stat::st_mode

Description:

File mode, including S_IFDIR (Directory), S_IFCHR (Character device), S_IFBLK (Block device), S_IFREG (Regular file), S_IFIFO (FIFO), S_IFLNK (Symbolic link), and S_IFSOCK (Socket)

st_mtime

  1. unsigned long stat::st_mtime

Description:

Time when the file is modified for the last time which is represented by the number of seconds passed since 00:00:00 on January 1, 1970

st_mtime_nsec

  1. unsigned long stat::st_mtime_nsec

Description:

Time when the file is modified for the last time, which is represented by the number of nanoseconds

st_nlink

  1. unsigned short stat::st_nlink

Description:

Number of hard links

st_rdev

  1. unsigned long stat::st_rdev

Description:

Device ID of the device file

st_size

  1. unsigned long stat::st_size

Description:

File size in bytes

st_uid

  1. unsigned short stat::st_uid

Description:

User ID of owner