FreeNOS
Data Fields
stat Struct Reference

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

Detailed Description

The <sys/stat.h> header shall define the stat structure.

Definition at line 176 of file stat.h.

Field Documentation

◆ st_atim

struct timespec stat::st_atim

Last data access timestamp.

Definition at line 229 of file stat.h.

◆ st_blksize

blksize_t stat::st_blksize

A file system-specific preferred I/O block size for this object.

In some file system types, this may vary from file to file.

Definition at line 242 of file stat.h.

◆ st_blocks

blkcnt_t stat::st_blocks

Number of blocks allocated for this object.

Definition at line 245 of file stat.h.

◆ st_ctim

struct timespec stat::st_ctim

Last file status change timestamp.

Definition at line 235 of file stat.h.

◆ st_dev

dev_t stat::st_dev

Device ID of device containing file.

Definition at line 197 of file stat.h.

Referenced by FileStatus::printStatus().

◆ st_gid

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().

◆ st_ino

ino_t stat::st_ino

File inode number.

Definition at line 200 of file stat.h.

Referenced by FileStatus::printStatus().

◆ st_mode

mode_t stat::st_mode

◆ st_mtim

struct timespec stat::st_mtim

Last data modification timestamp.

Definition at line 232 of file stat.h.

◆ st_nlink

nlink_t stat::st_nlink

Number of hard links to the file.

Definition at line 206 of file stat.h.

◆ st_rdev

dev_t stat::st_rdev

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

Definition at line 215 of file stat.h.

◆ st_size

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().

◆ st_uid

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().


The documentation for this struct was generated from the following file: