26 lines
606 B
C
26 lines
606 B
C
// 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>
|
|
#include "..\misc_internal.h"
|
|
|
|
struct dirent {
|
|
int d_ino; /* Inode number */
|
|
char d_name[PATH_MAX]; /* Null-terminated filename */
|
|
};
|
|
|
|
typedef struct DIR_ DIR;
|
|
|
|
DIR * opendir(const char *name);
|
|
int closedir(DIR *dirp);
|
|
struct dirent *readdir(void *avp);
|
|
|
|
#endif |