2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
29 #ifndef _SYS_DIRENT_H_
30 #define _SYS_DIRENT_H_
36 #include <sys/types.h>
38 typedef struct __EPOC32_DIR DIR;
39 typedef struct __EPOC32_WDIR WDIR;
41 IMPORT_C DIR *opendir (const char *);
42 IMPORT_C WDIR *wopendir (const wchar_t *);
43 IMPORT_C struct dirent *readdir (DIR *);
44 IMPORT_C struct wdirent *wreaddir (WDIR *);
45 IMPORT_C void rewinddir (DIR *);
46 IMPORT_C int closedir (DIR *);
47 IMPORT_C void wrewinddir (WDIR *);
48 IMPORT_C int wclosedir (WDIR *);
51 telldir and seekdir aren't required by POSIX
53 IMPORT_C off_t telldir(const DIR *);
54 IMPORT_C void seekdir(DIR *,off_t);
55 IMPORT_C off_t wtelldir(const WDIR *);
56 IMPORT_C void wseekdir(WDIR *,off_t);
58 #define __MAXNAMLEN 255
60 #define d_ino d_fileno /* compatibility */
63 unsigned long d_fileno;
64 unsigned short d_namlen;
69 unsigned long d_fileno;
70 unsigned short d_namlen;
74 #include <sys/reent.h>
75 IMPORT_C DIR *_opendir_r (struct _reent*, const char *);
76 IMPORT_C WDIR *_wopendir_r (struct _reent*, const wchar_t *);
77 IMPORT_C struct dirent *_readdir_r(struct _reent*, DIR *);
81 #endif /* !_SYS_DIRENT_H_ */