KallistiOS
2.0.0
|
Standard POSIX dirent functionality. More...
Go to the source code of this file.
Data Structures | |
struct | dirent |
The POSIX dirent which describes a directory entry. More... | |
struct | DIR |
the DIR structure in KOS More... |
Functions | |
DIR * | opendir (const char *name) |
Opens a directory based on the specified name. | |
int | closedir (DIR *dir) |
Closes a currently opened directory. | |
struct dirent * | readdir (DIR *dir) |
Read the contents of an open directory. | |
void | rewinddir (DIR *dir) |
Not implemented. | |
int | scandir (const char *dir, struct dirent ***namelist, int(*filter)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **)) |
Not implemented. | |
void | seekdir (DIR *dir, off_t offset) |
Not implemented. | |
off_t | telldir (DIR *dir) |
Not implemented. |
Standard POSIX dirent functionality.
This partially implements the standard POSIX dirent.h functionality.
int closedir | ( | DIR * | dir | ) |
DIR* opendir | ( | const char * | name | ) |
Opens a directory based on the specified name.
The directory specified by name is opened if it exists and returns a directory structure that must be later closed with closedir.
name | The string name of the dir to open. |
Read the contents of an open directory.
Read the contents of an open directory and returns a pointer to the current directory entry. Recurring calls to readdir return the next directory entry.
dir | The directory structure that was returned from an opendir |
void rewinddir | ( | DIR * | dir | ) |
Not implemented.
int scandir | ( | const char * | dir, |
struct dirent *** | namelist, | ||
int(*)(const struct dirent *) | filter, | ||
int(*)(const struct dirent **, const struct dirent **) | compar | ||
) |
Not implemented.
void seekdir | ( | DIR * | dir, |
off_t | offset | ||
) |
Not implemented.
off_t telldir | ( | DIR * | dir | ) |
Not implemented.