posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
stat Struct Reference

File status information returned by stat(), fstat(), and lstat(). More...

#include <zephyr/posix/sys/stat.h>

Collaboration diagram for stat:

Data Fields

dev_t st_dev
 Device ID of the device containing the file.
 
ino_t st_ino
 File serial number (inode).
 
mode_t st_mode
 File type and permission bits (S_IF* and S_I* constants).
 
nlink_t st_nlink
 Number of hard links.
 
uid_t st_uid
 User ID of the file owner.
 
gid_t st_gid
 Group ID of the file's group.
 
dev_t st_rdev
 Device ID (for character/block special files).
 
off_t st_size
 File size in bytes (regular files).
 
struct timespec st_atim
 Time of last access.
 
struct timespec st_mtim
 Time of last data modification.
 
struct timespec st_ctim
 Time of last status change.
 
blkcnt_t st_blksize
 Preferred I/O block size.
 
blkcnt_t st_blocks
 Number of 512-byte blocks allocated.
 

Detailed Description

File status information returned by stat(), fstat(), and lstat().

Definition at line 108 of file stat.h.

Field Documentation

◆ st_atim

struct timespec stat::st_atim

Time of last access.

Definition at line 119 of file stat.h.

◆ st_blksize

blkcnt_t stat::st_blksize

Preferred I/O block size.

Definition at line 123 of file stat.h.

◆ st_blocks

blkcnt_t stat::st_blocks

Number of 512-byte blocks allocated.

Definition at line 124 of file stat.h.

◆ st_ctim

struct timespec stat::st_ctim

Time of last status change.

Definition at line 121 of file stat.h.

◆ st_dev

dev_t stat::st_dev

Device ID of the device containing the file.

Definition at line 109 of file stat.h.

◆ st_gid

gid_t stat::st_gid

Group ID of the file's group.

Definition at line 114 of file stat.h.

◆ st_ino

ino_t stat::st_ino

File serial number (inode).

Definition at line 110 of file stat.h.

◆ st_mode

mode_t stat::st_mode

File type and permission bits (S_IF* and S_I* constants).

Definition at line 111 of file stat.h.

◆ st_mtim

struct timespec stat::st_mtim

Time of last data modification.

Definition at line 120 of file stat.h.

◆ st_nlink

nlink_t stat::st_nlink

Number of hard links.

Definition at line 112 of file stat.h.

◆ st_rdev

dev_t stat::st_rdev

Device ID (for character/block special files).

Definition at line 116 of file stat.h.

◆ st_size

off_t stat::st_size

File size in bytes (regular files).

Definition at line 118 of file stat.h.

◆ st_uid

uid_t stat::st_uid

User ID of the file owner.

Definition at line 113 of file stat.h.


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