Stat Structure
The struct stat structure, also defined in
- st_dev
- Identifier of device containing file
- st_ino
- Inode number
- st_mode
- Protection mode. See also Unix permissions.
- st_nlink
- Reference count of hard links
- st_uid
- User identifier of owner
- st_gid
- Group identifier of owner
- st_rdev
- Device identifier (if special file)
- st_size
- Total file size, in bytes
- st_atime
- Time of last access
- st_mtime
- Time of last modification
- st_ctime
- Time of last status change
- st_blksize
- Block size for filesystem I/O
- st_blocks
- Number of blocks allocated
The st_mode field is a bit field. It combines the file access modes and also indicates any special file type. There are many macros to work with the different mode flags and file types.
Read more about this topic: Stat (system Call)
Famous quotes containing the word structure:
“What is the most rigorous law of our being? Growth. No smallest atom of our moral, mental, or physical structure can stand still a year. It growsit must grow; nothing can prevent it.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)