63 #ifndef __INCLUDE_DIRENT_H 64 #define __INCLUDE_DIRENT_H 70 #include <tinyara/config.h> 72 #include <sys/types.h> 85 #define DTYPE_FILE 0x01 86 #define DTYPE_CHR 0x02 87 #define DTYPE_BLK 0x04 88 #define DTYPE_DIRECTORY 0x08 90 #define DIRENT_ISFILE(dtype) (((dtype) & DTYPE_FILE) != 0) 91 #define DIRENT_ISCHR(dtype) (((dtype) & DTYPE_CHR) != 0) 92 #define DIRENT_ISBLK(dtype) (((dtype) & DTYPE_BLK) != 0) 93 #define DIRENT_ISDIRECTORY(dtype) (((dtype) & DTYPE_DIRECTORY) != 0) 120 #if defined(__cplusplus) 121 #define EXTERN extern "C" 124 #define EXTERN extern 181 #if defined(__cplusplus) int closedir(FAR DIR *dirp)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR struct dirent * readdir(FAR DIR *dirp)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
off_t telldir(FAR DIR *dirp)
gets the current location associated with the directory stream
int readdir_r(FAR DIR *dirp, FAR struct dirent *entry, FAR struct dirent **result)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void rewinddir(FAR DIR *dirp)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR DIR * opendir(FAR const char *path)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void seekdir(FAR DIR *dirp, off_t loc)
sets the location in the directory stream from which the next readdir() call will start...