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