![]() |
posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
|
POSIX directory traversal API (<dirent.h>) More...
#include <limits.h>#include <zephyr/toolchain.h>
Go to the source code of this file.
Data Structures | |
| struct | dirent |
| Directory entry returned by readdir(). More... | |
Macros | |
| #define | NAME_MAX _XOPEN_NAME_MAX |
| Maximum length of a file name component (XSI). | |
Typedefs | |
| typedef void | DIR |
| Opaque directory stream type. | |
Functions | |
| int | alphasort (const struct dirent **d1, const struct dirent **d2) |
| Compare two directory entries alphabetically (for use with scandir()). | |
| int | closedir (DIR *dirp) |
| Close a directory stream. | |
| int | dirfd (DIR *dirp) |
| Get the file descriptor for an open directory stream. | |
| DIR * | fdopendir (int fd) |
| Open a directory stream for a directory identified by a file descriptor. | |
| DIR * | opendir (const char *dirname) |
| Open a directory stream for a named directory. | |
| struct dirent * | readdir (DIR *dirp) |
| Read the next entry from a directory stream. | |
| int | readdir_r (DIR *ZRESTRICT dirp, struct dirent *ZRESTRICT entry, struct dirent **ZRESTRICT result) |
| Read a directory entry into a caller-supplied buffer (thread-safe). | |
| void | rewinddir (DIR *dirp) |
| Reset a directory stream to the beginning. | |
| int | scandir (const char *dir, struct dirent ***namelist, int(*sel)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **)) |
| Scan a directory, optionally filtering and sorting the entries. | |
| void | seekdir (DIR *dirp, long loc) |
| Set the position of a directory stream (XSI extension). | |
| long | telldir (DIR *dirp) |
| Get the current position of a directory stream (XSI extension). | |
POSIX directory traversal API (<dirent.h>)
Definition in file dirent.h.