|
FreeNOS
|
The <sys/stat.h> header shall define the stat structure. More...
#include <stat.h>
Data Fields | |
| dev_t | st_dev |
| Device ID of device containing file. More... | |
| ino_t | st_ino |
| File inode number. More... | |
| mode_t | st_mode |
| Mode of file. More... | |
| nlink_t | st_nlink |
| Number of hard links to the file. More... | |
| uid_t | st_uid |
| User ID of file. More... | |
| gid_t | st_gid |
| Group ID of file. More... | |
| dev_t | st_rdev |
| Device ID (if file is character or block special). More... | |
| off_t | st_size |
| For regular files, the file size in bytes. More... | |
| struct timespec | st_atim |
| Last data access timestamp. More... | |
| struct timespec | st_mtim |
| Last data modification timestamp. More... | |
| struct timespec | st_ctim |
| Last file status change timestamp. More... | |
| blksize_t | st_blksize |
| A file system-specific preferred I/O block size for this object. More... | |
| blkcnt_t | st_blocks |
| Number of blocks allocated for this object. More... | |
The <sys/stat.h> header shall define the stat structure.
| blksize_t stat::st_blksize |
| blkcnt_t stat::st_blocks |
| struct timespec stat::st_ctim |
| dev_t stat::st_dev |
Device ID of device containing file.
Definition at line 197 of file stat.h.
Referenced by FileStatus::printStatus().
| gid_t stat::st_gid |
Group ID of file.
Definition at line 212 of file stat.h.
Referenced by LinnCreate::createInode(), ListFiles::printSingleFile(), and FileStatus::printStatus().
| ino_t stat::st_ino |
| mode_t stat::st_mode |
Mode of file.
Definition at line 203 of file stat.h.
Referenced by Cat::cat(), chdir(), LinnCreate::createInode(), LinnCreate::insertDirectory(), ListFiles::printFiles(), ListFiles::printSingleFile(), and FileStatus::printStatus().
| struct timespec stat::st_mtim |
| dev_t stat::st_rdev |
| off_t stat::st_size |
For regular files, the file size in bytes.
For symbolic links, the length in bytes of the pathname contained in the symbolic link. For a shared memory object, the length in bytes. For a typed memory object, the length in bytes. For other file types, the use of this field is unspecified.
Definition at line 226 of file stat.h.
Referenced by Shell::exec(), forkexec(), LinnCreate::insertFile(), CoreServer::loadKernel(), MpiHost::parseHostsFile(), ListFiles::printSingleFile(), FileStatus::printStatus(), BufferedFile::read(), and BootImageCreate::readBootSymbols().
| uid_t stat::st_uid |
User ID of file.
Definition at line 209 of file stat.h.
Referenced by LinnCreate::createInode(), ListFiles::printSingleFile(), and FileStatus::printStatus().
1.8.17