TizenRT Libs&Environment
v2.0 M2
|
Provides APIs for Directory Entries. More...
![]() |
Files | |
file | dirent.h |
Directory entries APIs. | |
Data Structures | |
struct | dirent |
Macros | |
#define | DTYPE_FILE 0x01 |
#define | DTYPE_CHR 0x02 |
#define | DTYPE_BLK 0x04 |
#define | DTYPE_DIRECTORY 0x08 |
#define | DIRENT_ISFILE(dtype) (((dtype) & DTYPE_FILE) != 0) |
#define | DIRENT_ISCHR(dtype) (((dtype) & DTYPE_CHR) != 0) |
#define | DIRENT_ISBLK(dtype) (((dtype) & DTYPE_BLK) != 0) |
#define | DIRENT_ISDIRECTORY(dtype) (((dtype) & DTYPE_DIRECTORY) != 0) |
#define | EXTERN extern |
Typedefs | |
typedef void | DIR |
Functions | |
int | closedir (FAR DIR *dirp) |
close a directory stream More... | |
FAR DIR * | opendir (FAR const char *path) |
open directory associated with file descriptor More... | |
FAR struct dirent * | readdir (FAR DIR *dirp) |
read a directory More... | |
int | readdir_r (FAR DIR *dirp, FAR struct dirent *entry, FAR struct dirent **result) |
read a directory More... | |
void | rewinddir (FAR DIR *dirp) |
reset the position of a directory stream to the beginning of a directory More... | |
void | seekdir (FAR DIR *dirp, off_t loc) |
sets the location in the directory stream from which the next readdir() call will start. More... | |
off_t | telldir (FAR DIR *dirp) |
gets the current location associated with the directory stream More... | |
Provides APIs for Directory Entries.
#define DIRENT_ISDIRECTORY | ( | dtype | ) | (((dtype) & DTYPE_DIRECTORY) != 0) |
#define DIRENT_ISFILE | ( | dtype | ) | (((dtype) & DTYPE_FILE) != 0) |
int closedir | ( | FAR DIR * | dirp | ) |
close a directory stream
#include <dirent.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR DIR* opendir | ( | FAR const char * | path | ) |
open directory associated with file descriptor
#include <dirent.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
read a directory
#include <dirent.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
read a directory
#include <dirent.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void rewinddir | ( | FAR DIR * | dirp | ) |
reset the position of a directory stream to the beginning of a directory
#include <dirent.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void seekdir | ( | FAR DIR * | dirp, |
off_t | loc | ||
) |
off_t telldir | ( | FAR DIR * | dirp | ) |
gets the current location associated with the directory stream
#include <dirent.h>
[in] | dirp | An instance of type DIR |