X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fdirent%2F__dirent.h;h=828a5f178917a97426d4fa35784494d894d25ccc;hb=c5d118ebbcfe41d928d8ffc913bc532c59237189;hp=38a27b0690d009308071550b21074375bda4979e;hpb=4750cf4202c29a895639b89099a7bdbe9ae422b6;p=musl diff --git a/src/dirent/__dirent.h b/src/dirent/__dirent.h index 38a27b06..828a5f17 100644 --- a/src/dirent/__dirent.h +++ b/src/dirent/__dirent.h @@ -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]; };