FreeNOS
Data Fields
DIR Struct Reference

A type representing a directory stream. More...

#include <dirent.h>

Data Fields

int fd
 File descriptor returned by opendir(). More...
 
struct direntbuffer
 Input buffer. More...
 
Size current
 Index of the current dirent. More...
 
Size count
 Number of direct structures in the buffer. More...
 
bool eof
 End-of-file reached? More...
 

Detailed Description

A type representing a directory stream.

Note
The DIR type may be an incomplete type.

Definition at line 94 of file dirent.h.

Field Documentation

◆ buffer

struct dirent* DIR::buffer

Input buffer.

Definition at line 100 of file dirent.h.

Referenced by closedir(), opendir(), and readdir().

◆ count

Size DIR::count

Number of direct structures in the buffer.

Definition at line 106 of file dirent.h.

Referenced by opendir(), and readdir().

◆ current

Size DIR::current

Index of the current dirent.

Definition at line 103 of file dirent.h.

Referenced by opendir(), and readdir().

◆ eof

bool DIR::eof

End-of-file reached?

Definition at line 109 of file dirent.h.

Referenced by opendir().

◆ fd

int DIR::fd

File descriptor returned by opendir().

Definition at line 97 of file dirent.h.

Referenced by closedir(), and opendir().


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