whoops - forgot to commit header files
[reactos.git] / posix / include / psx / dirent.h
1 /*
2 * psx/dirent.h
3 *
4 * internal dirent.h
5 *
6 * This file is part of the ReactOS Operating System.
7 *
8 * Contributors:
9 * Created by KJK::Hyperion <noog@libero.it>
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 */
22 #ifndef __PSX_DIRENT_H_INCLUDED__
23 #define __PSX_DIRENT_H_INCLUDED__
24
25 /* INCLUDES */
26 #include <ddk/ntddk.h>
27 #include <dirent.h>
28 #include <psx/safeobj.h>
29
30 /* OBJECTS */
31
32 /* TYPES */
33 struct __internal_DIR
34 {
35 __magic_t signature; /* signature to verify object's validity across calls */
36 union __any_dirent{
37 struct dirent de_ansi;
38 struct _Wdirent de_unicode;
39 } ent; /* storage for return buffer of readdir() */
40 int fildes; /* file descriptor of the directory */
41 FILE_DIRECTORY_INFORMATION info; /* directory entry information */
42 WCHAR name[MAX_PATH]; /* filename buffer */
43 };
44
45 /* CONSTANTS */
46 #define __IDIR_MAGIC MAGIC('I', 'D', 'I', 'R')
47
48 /* PROTOTYPES */
49
50 /* MACROS */
51
52 #endif /* __PSX_DIRENT_H_INCLUDED__ */
53
54 /* EOF */
55