X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fdirent%2F__dirent.h;h=828a5f178917a97426d4fa35784494d894d25ccc;hb=bf14ef193b4203aa9a8b173faeeea06d98397f65;hp=07b3ee68505c2017b17e3435f6295c197ed14686;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/dirent/__dirent.h b/src/dirent/__dirent.h index 07b3ee68..828a5f17 100644 --- a/src/dirent/__dirent.h +++ b/src/dirent/__dirent.h @@ -1,9 +1,11 @@ -struct __DIR_s +struct __dirstream { - int lock; - 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]; };