Go to the documentation of this file.
18 #ifndef __LIBPOSIX_DIRENT_H
19 #define __LIBPOSIX_DIRENT_H
81 bool operator == (
struct dirent *d)
#define DIRLEN
Maximum length of a directory entry name.
C int closedir(DIR *dirp)
Close a directory stream.
C struct dirent * readdir(DIR *dirp)
Read a directory.
C DIR * opendir(const char *dirname)
Open directory associated with file descriptor.
bool eof
End-of-file reached?
#define C
Used to define external C functions.
struct dirent * buffer
Input buffer.
Represents a directory entry.
Size count
Number of direct structures in the buffer.
int strcmp(const char *dest, const char *src)
Compare two strings.
unsigned int Size
Any sane size indicator cannot go negative.
struct DIR DIR
A type representing a directory stream.
Size current
Index of the current dirent.
A type representing a directory stream.
unsigned char u8
Unsigned 8-bit number.
int fd
File descriptor returned by opendir().
char d_name[DIRLEN]
Name of entry.
char * dirname(char *path)
Return the directory portion of a pathname.