2018-03-16 16:40:23 +03:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
#include <_cheader.h>
|
2018-03-16 16:40:23 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
_Begin_C_Header
|
|
|
|
|
2018-03-16 16:40:23 +03:00
|
|
|
typedef struct dirent {
|
|
|
|
uint32_t d_ino;
|
|
|
|
char d_name[256];
|
|
|
|
} dirent;
|
|
|
|
|
|
|
|
typedef struct DIR {
|
|
|
|
int fd;
|
|
|
|
int cur_entry;
|
|
|
|
} DIR;
|
|
|
|
|
|
|
|
DIR * opendir (const char * dirname);
|
|
|
|
int closedir (DIR * dir);
|
|
|
|
struct dirent * readdir (DIR * dirp);
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
_End_C_Header
|