On 2020-11-02 14:09, Michael Kerrisk (man-pages) wrote:
Hi Alex,
On Mon, 2 Nov 2020 at 13:20, Alejandro Colomar <colomar.6.4.3@xxxxxxxxx> wrote:
On 2020-11-02 08:37, Michael Kerrisk (man-pages) wrote:
> Hi Alex,
>
> On 11/1/20 2:59 PM, Alejandro Colomar wrote:
>> The Linux kernel uses a long as the return type for this syscall.
>> As glibc provides no wrapper, use the same types the kernel uses.
>
> I think we need this patch for all of the io* pages, right?
Hi Michael,
For some reason, no. AFAICS, only io_setup() really uses 'long'.
But is not SYSCALL_DEFINEX() producing a prototype with return value
'long' in all the cases? (I have not checked, I just presume so.)
Hi Michael,
Well, yes.
SYSCALL_DEFINEx() produces a return type of long
for _all_ syscalls, AFAICS.
(as I said before, that macro is a bit obscure, but I can read that).
Would you like to change all syscall man pages (without a wrapper)
to use long as the return type?
Thanks.
Alex
Thanks,
Michael