whoops - forgot to commit header files
[reactos.git] / posix / include / dirent.h
1 /*
2 * dirent.h
3 *
4 * format of directory entries. Based on the Single UNIX(r) Specification,
5 * Version 2
6 *
7 * This file is part of the ReactOS Operating System.
8 *
9 * Contributors:
10 * Created by KJK::Hyperion <noog@libero.it>
11 *
12 * THIS SOFTWARE IS NOT COPYRIGHTED
13 *
14 * This source code is offered for use in the public domain. You may
15 * use, modify or distribute it freely.
16 *
17 * This code is distributed in the hope that it will be useful but
18 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
19 * DISCLAMED. This includes but is not limited to warranties of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 *
22 */
23 #ifndef __DIRENT_H_INCLUDED__
24 #define __DIRENT_H_INCLUDED__
25
26 /* INCLUDES */
27 #include <sys/types.h>
28 #include <stddef.h>
29
30 /* TYPES */
31 typedef void DIR;
32
33 struct dirent
34 {
35 ino_t d_ino; /* file serial number */
36 char *d_name; /* name of entry */
37 };
38
39 /* for Unicode filenames */
40 struct _Wdirent
41 {
42 ino_t d_ino; /* file serial number */
43 wchar_t *d_name; /* name of entry */
44 };
45
46 /* CONSTANTS */
47
48 /* PROTOTYPES */
49 int closedir(DIR *);
50 DIR *opendir(const char *);
51 struct dirent *readdir(DIR *);
52 int readdir_r(DIR *, struct dirent *, struct dirent **);
53 void rewinddir(DIR *);
54 void seekdir(DIR *, long int);
55 long int telldir(DIR *);
56
57 /* for Unicode filenames */
58 DIR *_Wopendir(const wchar_t *);
59 struct _Wdirent *_Wreaddir(DIR *);
60 int _Wreaddir_r(DIR *, struct _Wdirent *, struct _Wdirent **);
61
62
63 /* MACROS */
64
65 #endif /* __DIRENT_H_INCLUDED__ */
66
67 /* EOF */
68