summaryrefslogtreecommitdiff
path: root/src/dirent/__dirent.h
diff options
context:
space:
mode:
authorVladimir Azarov <avm@intermediate-node.net>2024-10-01 15:47:05 +0200
committerVladimir Azarov <avm@intermediate-node.net>2024-10-01 15:47:05 +0200
commit4abab5ad6c8465a7528ccdd5f49367da05f78bbd (patch)
treeebf009bf1376a5a223a915bc27cbbd791a1316bc /src/dirent/__dirent.h
Initial version
Diffstat (limited to 'src/dirent/__dirent.h')
-rw-r--r--src/dirent/__dirent.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dirent/__dirent.h b/src/dirent/__dirent.h
new file mode 100644
index 0000000..828a5f1
--- /dev/null
+++ b/src/dirent/__dirent.h
@@ -0,0 +1,11 @@
+struct __dirstream
+{
+ 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];
+};