PatchworkOS  c9fea19
A non-POSIX operating system.
Loading...
Searching...
No Matches
stat_t Struct Reference

Stat type. More...

#include <io.h>

Collaboration diagram for stat_t:

Data Fields

inode_number_t number
 The number of the entries inode.
 
inode_type_t type
 The type of the entries inode.
 
uint64_t size
 The size of the file that is visible outside the filesystem.
 
uint64_t blocks
 The amount of blocks used on disk to store the file.
 
uint64_t linkAmount
 The amount of times the inode appears in dentries.
 
time_t accessTime
 Unix time stamp for the last inode access.
 
time_t modifyTime
 Unix time stamp for last file content alteration.
 
time_t changeTime
 Unix time stamp for the last file metadata alteration.
 
time_t createTime
 Unix time stamp for the creation of the inode.
 
char name [MAX_NAME]
 The name of the entry, not the full filepath.
 
uint8_t padding [64]
 Padding to leave space for future expansion.
 

Detailed Description

Stat type.

Definition at line 328 of file io.h.

Field Documentation

◆ number

inode_number_t stat_t::number

The number of the entries inode.

Definition at line 330 of file io.h.

◆ type

inode_type_t stat_t::type

The type of the entries inode.

Definition at line 331 of file io.h.

◆ size

uint64_t stat_t::size

The size of the file that is visible outside the filesystem.

Definition at line 332 of file io.h.

◆ blocks

uint64_t stat_t::blocks

The amount of blocks used on disk to store the file.

Definition at line 333 of file io.h.

◆ linkAmount

uint64_t stat_t::linkAmount

The amount of times the inode appears in dentries.

Definition at line 334 of file io.h.

◆ accessTime

time_t stat_t::accessTime

Unix time stamp for the last inode access.

Definition at line 335 of file io.h.

◆ modifyTime

time_t stat_t::modifyTime

Unix time stamp for last file content alteration.

Definition at line 336 of file io.h.

◆ changeTime

time_t stat_t::changeTime

Unix time stamp for the last file metadata alteration.

Definition at line 337 of file io.h.

◆ createTime

time_t stat_t::createTime

Unix time stamp for the creation of the inode.

Definition at line 338 of file io.h.

◆ name

char stat_t::name[MAX_NAME]

The name of the entry, not the full filepath.

Definition at line 339 of file io.h.

◆ padding

uint8_t stat_t::padding[64]

Padding to leave space for future expansion.

Definition at line 340 of file io.h.


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