1 struct __dirstream 2 { 3 off_t tell; 4 int fd; 5 int buf_pos; 6 int buf_end; 7 volatile int lock[1]; 8 /* Any changes to this struct must preserve the property: 9 * offsetof(struct __dirent, buf) % sizeof(off_t) == 0 */ 10 // change buf len from 2048 to 4096 to support read 14 dirs at one readdir syscall 11 char buf[4096]; 12 }; 13