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