From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/dirent/__dirent.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/dirent/__dirent.h (limited to 'src/dirent/__dirent.h') 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]; +}; -- cgit v1.2.3