Re: [PATCH] io_setup.2: SYNOPSIS: return long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/2/20 2:12 PM, Alejandro Colomar wrote:
> 
> 
> 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'.

Ahhh -- now I get what you mean.

>> 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?

I guess not.

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux