[PATCH v2 1/5] mips: Do not malloc on getdents64 fallback
Florian Weimer
fweimer@redhat.com
Wed Aug 28 14:42:00 GMT 2019
* Adhemerval Zanella:
> struct kernel_dirent
> + {
> + unsigned long d_ino;
> + unsigned long d_off;
> + unsigned short int d_reclen;
> + char d_name[1];
> + } kbuf[KBUF_SIZE / sizeof (struct kernel_dirent)];
I think it's still not clear to me in which cases we actually need to
move the dirent entries in the buffer. My impression is that we just
need to move d_name by one byte because before, d_type was after the
name, and afterwards, it comes before the name. But the record
boundaries are unchanged.
Thanks,
Florian
More information about the Libc-alpha
mailing list