stat

    FS

    Description:

    Defines the file information structure.

    Summary

    Data Fields

    Details

    Field Documentation

    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

      Description:

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

      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:

      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

      Description:

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

      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

      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

      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

      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

        Description:

        File size in bytes

        st_uid

        User ID of owner