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

Type representing a directory stream. More...

#include <dirent.h>

Data Fields

file_t fd
 File descriptor for the directory.
 
union { 
 
   struct dirent   d_ent 
 Current directory entry. More...
 
   struct { 
 
      struct dirent   d_ent2 
 Current directory entry (alias) More...
 
      char   d_name [NAME_MAX+1] 
 Storage for d_ent::d_name[] FAM. More...
 
   }  
 Extended dirent structure with name storage.
 
};  
 Union of dirent + extended dirent required for C++.
 

Detailed Description

Type representing a directory stream.

This type represents a directory stream and is used by the directory reading functions to trace their position in the directory.

Note
The end of this structure is providing extra fixed storage for its inner d_ent.d_name[] FAM, hence the unionization of the d_ent structure along with a d_name[NAME_MAX] extension.

Field Documentation

◆ [union]

union { ... } DIR

Union of dirent + extended dirent required for C++.

◆ d_ent

struct dirent DIR::d_ent

Current directory entry.

◆ d_ent2

struct dirent DIR::d_ent2

Current directory entry (alias)

◆ d_name

char DIR::d_name[NAME_MAX+1]

Storage for d_ent::d_name[] FAM.

◆ fd

file_t DIR::fd

File descriptor for the directory.


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