2023-03-28 23:06:57 +00:00
|
|
|
/* dirent.h: Directory streams interface. */
|
|
|
|
|
|
|
|
#ifndef _DIRENT_H
|
|
|
|
#define _DIRENT_H
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int _fd;
|
|
|
|
} DIR;
|
|
|
|
|
|
|
|
struct dirent
|
|
|
|
{
|
|
|
|
ino_t d_ino;
|
|
|
|
char d_name[129];
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
DIR* opendir(const char* path);
|
2023-04-28 19:15:41 +00:00
|
|
|
DIR* fdopendir(int fd);
|
2023-03-28 23:06:57 +00:00
|
|
|
struct dirent* readdir(DIR* stream);
|
|
|
|
int closedir(DIR* stream);
|
2023-04-28 19:15:41 +00:00
|
|
|
int dirfd(DIR* stream);
|
2023-04-28 20:41:44 +00:00
|
|
|
void rewinddir(DIR* stream);
|
2023-03-28 23:06:57 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|