remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE
[musl] / src / dirent / __dirent.h
index 38a27b0..828a5f1 100644 (file)
@@ -1,9 +1,11 @@
-struct __DIR_s
+struct __dirstream
 {
-       int fd;
        off_t tell;
+       int fd;
        int buf_pos;
        int buf_end;
-       int lock[2];
+       volatile int lock[1];
+       /* Any changes to this struct must preserve the property:
+        * offsetof(struct __dirent, buf) % sizeof(off_t) == 0 */
        char buf[2048];
 };