2 * D header file for POSIX.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
9 module stdc.posix.dirent;
11 private import stdc.posix.config;
12 public import stdc.posix.sys.types; // for ino_t
28 DIR* opendir(in char*);
29 dirent* readdir(DIR*);
35 // NOTE: The following constants are non-standard Linux definitions
64 static if( __USE_LARGEFILE64 )
66 dirent* readdir64(DIR*);
67 alias readdir64 readdir;
71 dirent* readdir(DIR*);
74 else version( darwin )
104 dirent* readdir(DIR*);
106 else version( freebsd )
146 dirent* readdir(DIR*);
150 dirent* readdir(DIR*);
154 DIR* opendir(in char*);
155 //dirent* readdir(DIR*);
156 void rewinddir(DIR*);
159 // Thread-Safe Functions (TSF)
162 int readdir_r(DIR*, dirent*, dirent**);
167 static if( __USE_LARGEFILE64 )
169 int readdir_r64(DIR*, dirent*, dirent**);
170 alias readdir_r64 readdir_r;
174 int readdir_r(DIR*, dirent*, dirent**);
177 else version( darwin )
179 int readdir_r(DIR*, dirent*, dirent**);
181 else version( freebsd )
183 int readdir_r(DIR*, dirent*, dirent**);
190 void seekdir(DIR*, c_long);
191 c_long telldir(DIR*);
196 void seekdir(DIR*, c_long);
197 c_long telldir(DIR*);