Re: [PATCH 2/2] futex.2: Use appropriate types

2020-10-30 Thread Michael Kerrisk (man-pages)
Hi Alex, On 10/30/20 2:46 PM, Alejandro Colomar wrote: > BTW, apparently the kernel doesn't use 'const' for 'utime' > ('timeout' in the manual page), > but effectively, it doesn't modify it, AFAICS. > > Should the kernel use 'const'? > Is there a reason for the kernel not using 'const'? > Should

Re: [PATCH 2/2] futex.2: Use appropriate types

2020-10-30 Thread Michael Kerrisk (man-pages)
On 10/30/20 1:39 PM, Alejandro Colomar wrote: > The Linux kernel uses the following: > > kernel/futex.c:3778: > SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, > struct __kernel_timespec __user *, utime, u32 __user *, uaddr2, > u32, val3) > > Since

Re: [PATCH 2/2] futex.2: Use appropriate types

2020-10-30 Thread Alejandro Colomar
BTW, apparently the kernel doesn't use 'const' for 'utime' ('timeout' in the manual page), but effectively, it doesn't modify it, AFAICS. Should the kernel use 'const'? Is there a reason for the kernel not using 'const'? Should we do anything about it in the manual page? Thanks, Alex On

[PATCH 2/2] futex.2: Use appropriate types

2020-10-30 Thread Alejandro Colomar
The Linux kernel uses the following: kernel/futex.c:3778: SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, struct __kernel_timespec __user *, utime, u32 __user *, uaddr2, u32, val3) Since there is no glibc wrapper, use the same types the kernel uses.