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