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

2020-10-29 Thread Michael Kerrisk (man-pages)
On 10/29/20 3:10 PM, 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 getdents64(int, void *, size_t); > > Signed-off-b

[PATCH v3] 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 getdents64(int, void *, size_t); Signed-off-by: Alejandro Colomar --- Hi Michael, Sorry, I'm being a bit dis