1 /* $Id: dirent.h,v 1.2 2002/02/20 09:17:54 hyperion Exp $
6 * format of directory entries. Conforming to the Single UNIX(r)
7 * Specification Version 2, System Interface & Headers Issue 5
9 * This file is part of the ReactOS Operating System.
12 * Created by KJK::Hyperion <noog@libero.it>
14 * THIS SOFTWARE IS NOT COPYRIGHTED
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
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.
25 #ifndef __DIRENT_H_INCLUDED__
26 #define __DIRENT_H_INCLUDED__
29 #include <sys/types.h>
37 ino_t d_ino
; /* file serial number */
38 char *d_name
; /* name of entry */
41 /* for Unicode filenames */
44 ino_t d_ino
; /* file serial number */
45 wchar_t *d_name
; /* name of entry */
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 *);
59 /* for Unicode filenames */
60 DIR *_Wopendir(const wchar_t *);
61 struct _Wdirent
*_Wreaddir(DIR *);
62 int _Wreaddir_r(DIR *, struct _Wdirent
*, struct _Wdirent
**);
67 #endif /* __DIRENT_H_INCLUDED__ */