1 Star 0 Fork 5.1K

xulinlin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
stat.md 11.27 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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

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

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

unsigned long stat::st_blksize

Description:

Size of the disk block that contains the file

st_blocks

unsigned long stat::st_blocks

Description:

Number of disk blocks occupied by the file

st_ctime

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

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

unsigned long stat::st_dev

Description:

Device ID used by the file

st_gid

unsigned short stat::st_gid

Description:

Group ID

st_ino

unsigned long stat::st_ino

Description:

Inode number

st_mode

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

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

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

unsigned short stat::st_nlink

Description:

Number of hard links

st_rdev

unsigned long stat::st_rdev

Description:

Device ID of the device file

st_size

unsigned long stat::st_size

Description:

File size in bytes

st_uid

unsigned short stat::st_uid

Description:

User ID of owner

1
https://gitee.com/xulinl/docs.git
git@gitee.com:xulinl/docs.git
xulinl
docs
docs
master

搜索帮助