#include <stdint.h>
#include <sys/limits.h>
#include "kconfig.h"
Go to the source code of this file.
|
int | opendir (const char *name, DIR *dir) |
| Open a directory stream corresponding to the directory name, and returns a pointer to the directory stream. More...
|
|
int | readdir (DIR *dirp, struct dirent *dirent) |
| Return a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by dirp. More...
|
|
◆ opendir()
int opendir |
( |
const char * |
name, |
|
|
DIR * |
dir |
|
) |
| |
Open a directory stream corresponding to the directory name, and returns a pointer to the directory stream.
- Parameters
-
name | The file path to the directory. |
dir | The directory stream to return. |
- Return values
-
int | 0 on success and nonzero error number on error. |
◆ readdir()
int readdir |
( |
DIR * |
dirp, |
|
|
struct dirent * |
dirent |
|
) |
| |
Return a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by dirp.
- Parameters
-
dirp | Pointer to the dirent object. |
dirent | The structure of file entries under the directory to return. |
- Return values
-
int | 0 on success and nonzero error number on error. |