2016-12-19 23:46:28 +01:00
|
|
|
// direntry functions in Windows platform like Ubix/Linux
|
|
|
|
// opendir(), readdir(), closedir().
|
|
|
|
// NT_DIR * nt_opendir(char *name) ;
|
|
|
|
// struct nt_dirent *nt_readdir(NT_DIR *dirp);
|
|
|
|
// int nt_closedir(NT_DIR *dirp) ;
|
|
|
|
|
|
|
|
#ifndef __DIRENT_H__
|
|
|
|
#define __DIRENT_H__
|
|
|
|
|
|
|
|
#include <direct.h>
|
|
|
|
#include <io.h>
|
|
|
|
#include <fcntl.h>
|
2017-01-15 07:12:19 +01:00
|
|
|
#include "..\misc_internal.h"
|
2016-12-19 23:46:28 +01:00
|
|
|
|
|
|
|
struct dirent {
|
|
|
|
int d_ino; /* Inode number */
|
2017-01-15 07:12:19 +01:00
|
|
|
char d_name[PATH_MAX]; /* Null-terminated filename */
|
2016-12-19 23:46:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct DIR_ DIR;
|
|
|
|
|
2018-05-11 23:45:20 +02:00
|
|
|
DIR * opendir(const char*);
|
|
|
|
int closedir(DIR*);
|
|
|
|
struct dirent *readdir(void*);
|
2016-12-19 23:46:28 +01:00
|
|
|
|
|
|
|
#endif
|