Re: [PATCH v2 4/4] linux-user: Rewrite do_getdents, do_getdents64

2021-11-14 Thread Philippe Mathieu-Daudé
On 11/14/21 11:35, Richard Henderson wrote: > Always allocate host storage; this ensures that the struct > is sufficiently aligned for the host. Merge the three host > implementations of getdents via a few ifdefs. Utilize the > same method for do_getdents64. > > Resolves: https://gitlab.com/qemu

[PATCH v2 4/4] linux-user: Rewrite do_getdents, do_getdents64

2021-11-14 Thread Richard Henderson
Always allocate host storage; this ensures that the struct is sufficiently aligned for the host. Merge the three host implementations of getdents via a few ifdefs. Utilize the same method for do_getdents64. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/704 Signed-off-by: Richard Hender