about summary refs log tree commit diff
path: root/src/dirent/__dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirent/__dirent.h')
-rw-r--r--src/dirent/__dirent.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dirent/__dirent.h b/src/dirent/__dirent.h
index 101b0368..828a5f17 100644
--- a/src/dirent/__dirent.h
+++ b/src/dirent/__dirent.h
@@ -1,9 +1,11 @@
 struct __dirstream
 {
-	int fd;
 	off_t tell;
+	int fd;
 	int buf_pos;
 	int buf_end;
 	volatile int lock[1];
+	/* Any changes to this struct must preserve the property:
+	 * offsetof(struct __dirent, buf) % sizeof(off_t) == 0 */
 	char buf[2048];
 };