Re: [PATCH v2] getdents.2: Use appropriate types

2020-10-29 Thread Michael Kerrisk (man-pages)
Hi Alex, On Thu, 29 Oct 2020 at 14:42, Alejandro Colomar wrote: > > getdents(): > This function has no glibc wrapper. > As such, we should use the same types the Linux kernel uses: > Use 'long' as the return type. > > getdents64(): > The glibc wrapper uses ssize_t for the return type, > and

[PATCH v2] getdents.2: Use appropriate types

2020-10-29 Thread Alejandro Colomar
getdents(): This function has no glibc wrapper. As such, we should use the same types the Linux kernel uses: Use 'long' as the return type. getdents64(): The glibc wrapper uses ssize_t for the return type, and 'size_t' for the count argument. Signed-off-by: Alejandro Colomar ---