#include 檔案狀態

2puT發表於2016-07-11

#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.

                          

相關文章