您的位置:首页 > 其它

#include <sys/stat.h>文件状态

2016-07-11 08:49 399 查看
#include<sys/stat.h>

文件状态,

是unix/linux系统定义文件状态所在的伪标准头文件。

含有类型与函数:

            dev_t    st_dev    Device ID of device containing file.

             ino_t    st_ino    File serial number.

             mode_t   st_mode    Modeof file (see below).

             nlink_t  st_nlink   Number of hard linksto the file.

             uid_t    st_uid    User ID of file.

             gid_t    st_gid    Group ID of file.

             dev_t    st_rdev   Device ID (if file is character or block special).

             off_t    st_size    Forregular files, the file size in bytes.

                                  For symbolic links, the length in bytes of the

                                  pathname contained in the symbolic link.

                          
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: