w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

dirent.h
Go to the documentation of this file.
1 /* dirent.h
2 
3  Definitions for UNIX like directory operations.
4 
5 */
6 
7 /*
8  for VC++2.0 ( by A. K., 1995 )
9  Corrected by Clerk Ma, to work in 64bit mode in Visual Studio 2015,(2017).
10 */
11 
12 #ifndef __DIRENTAK_H
13 #define __DIRENTAK_H
14 
15 /* avoid redefinition error */
16 #define boolean ms_boolean_type
17 #include <windows.h>
18 #undef boolean
19 
20 #include <kpathsea/c-proto.h>
21 
22 #ifndef NULL
23 #define NULL 0
24 #endif
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 
31 /* dirent structure returned by readdir().
32  */
33 struct dirent
34 {
35  int d_isdir;
36  int d_namlen;
37  char d_name[260];
38 };
39 
40 /* DIR type returned by opendir(). The members of this structure
41  must not be accessed by application programs.
42 */
43 typedef struct
44 {
45  HANDLE _d_hdir; /* directory handle */
46  struct dirent *_d_direntptr; /* directory entry pointer */
47  unsigned _d_magic; /* file attribute */
48  unsigned _d_nfiles; /* access count */
49  char _d_buf[318]; /* buffer (WIN32_FIND_DATA) */
50 } DIR;
51 
52 KPSEDLL DIR *opendir(char *__dirname);
53 KPSEDLL struct dirent *readdir(DIR *__dir);
54 KPSEDLL int closedir(DIR *__dir);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 #endif /* __DIRENTAK_H */
#define KPSEDLL
Definition: c-proto.h:33
KPSEDLL int closedir(DIR *__dir)
Definition: dirent.c:123
KPSEDLL struct dirent * readdir(DIR *__dir)
Definition: dirent.c:138
KPSEDLL DIR * opendir(char *__dirname)
Definition: dirent.c:60
struct dir_struct DIR
Definition: dirent.h:44
unsigned _d_nfiles
Definition: dirent.h:48
unsigned _d_magic
Definition: dirent.h:47
HANDLE _d_hdir
Definition: dirent.h:45
struct dirent * _d_direntptr
Definition: dirent.h:46
Definition: dirent.h:34
int d_namlen
Definition: dirent.h:36
int d_isdir
Definition: dirent.h:35
char d_name[260]
Definition: dirent.h:37