KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
dirent Struct Reference

POSIX directory entry structure. More...

#include <dirent.h>

Data Fields

int d_ino
 File unique identifier.
 
off_t d_off
 File offset.
 
uint16_t d_reclen
 Record length.
 
uint8_t d_type
 File type.
 
char d_name []
 File name.
 

Detailed Description

POSIX directory entry structure.

This structure contains information about a single entry in a directory in the VFS.

Field Documentation

◆ d_ino

int dirent::d_ino

File unique identifier.

◆ d_name

char dirent::d_name[]

File name.

Warning
This field is a flexible array member, which means the structure requires manual over-allocation to reserve storage for this string.
Note
This allows us to optimize our memory usage by only allocating exactly as many bytes as the string is long for this field.

◆ d_off

off_t dirent::d_off

File offset.

◆ d_reclen

uint16_t dirent::d_reclen

Record length.

◆ d_type

uint8_t dirent::d_type

File type.


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