OSDN Git Service

branch: yandytex with kpathsea.
[putex/putex.git] / src / texsourc / kpathsea / kpathsea / dirent.h
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 */
10
11 #ifndef __DIRENTAK_H
12 #define __DIRENTAK_H
13
14 #include <kpathsea/c-proto.h>
15
16 #ifndef NULL
17 #define NULL 0
18 #endif
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24
25 /* dirent structure returned by readdir().
26  */
27 struct dirent
28 {
29   int         d_isdir;
30   int         d_namlen;
31   char        d_name[260];
32 };
33
34 /* DIR type returned by opendir().  The members of this structure
35    must not be accessed by application programs.
36 */
37 typedef struct
38 {
39     unsigned       _d_hdir;      /* directory handle */
40     struct dirent *_d_direntptr; /* directory entry pointer */
41     unsigned       _d_magic;     /* file attribute */
42     unsigned       _d_nfiles;    /* access count */
43     char           _d_buf[318];  /* buffer (WIN32_FIND_DATA) */
44 } DIR;
45
46 KPSEDLL DIR                 *opendir(char *__dirname);
47 KPSEDLL struct dirent       *readdir(DIR *__dir);
48 KPSEDLL int                  closedir(DIR *__dir);
49
50 #ifdef __cplusplus
51 }
52 #endif
53 #endif  /* __DIRENTAK_H */