33 lines
389 B
C
33 lines
389 B
C
|
/* 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);
|
||
|
struct dirent* readdir(DIR* stream);
|
||
|
int closedir(DIR* stream);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|