Download src/php/php-src/win32/readdir.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/win32/readdir.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/win32/readdir.h
-
curl -L -o readdir.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/win32/readdir.h
1.22 kB
| extern "C" { | |
| /* | |
| * Structures and types used to implement opendir/readdir/closedir | |
| * on Windows. | |
| */ | |
| /* struct dirent - same as Unix */ | |
| struct dirent { | |
| long d_ino; /* inode (always 1 in WIN32) */ | |
| off_t d_off; /* offset to this dirent */ | |
| unsigned short d_reclen; /* length of d_name */ | |
| unsigned char d_type; | |
| char d_name[1]; /* null terminated filename in the current encoding, glyph number <= 255 wchar_t's + \0 byte */ | |
| }; | |
| /* typedef DIR - not the same as Unix */ | |
| struct DIR_W32 { | |
| HANDLE handle; /* _findfirst/_findnext handle */ | |
| uint32_t offset; /* offset into directory */ | |
| uint8_t finished; /* 1 if there are not more files */ | |
| WIN32_FIND_DATAW fileinfo; /* from _findfirst/_findnext */ | |
| wchar_t *dirw; /* the dir we are reading */ | |
| struct dirent dent; /* the dirent to return */ | |
| }; | |
| typedef struct DIR_W32 DIR; | |
| /* Function prototypes */ | |
| DIR *opendir(const char *); | |
| struct dirent *readdir(DIR *); | |
| int closedir(DIR *); | |
| int rewinddir(DIR *); | |
| } | |