Re: [PATCH] io_getevents.2: Add EINVAL for case of timeout parameter out of range

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

 



Hello Zhangyi,

On Wed, 31 Jul 2019 at 04:57, zhangyi (F) <yi.zhang@xxxxxxxxxx> wrote:
>
> io_[p]getevents syscall should return -EINVAL if timeout is out of
> range, update description of this error return value.
>
> Link: https://lore.kernel.org/lkml/1564451504-27906-1-git-send-email-yi.zhang@xxxxxxxxxx/


It appears that the kernel patch to implement this check was never
merged. Do you know what happened to it?

Thanks,

Michael

> Signed-off-by: zhangyi (F) <yi.zhang@xxxxxxxxxx>
> Cc: Jeff Moyer <jmoyer@xxxxxxxxxx>
> Cc: Arnd Bergmann <arnd@xxxxxxxx>
> Cc: Deepa Dinamani <deepa.kernel@xxxxxxxxx>
> ---
>  man2/io_getevents.2 | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/man2/io_getevents.2 b/man2/io_getevents.2
> index 0eb4b385e..5560bb8ee 100644
> --- a/man2/io_getevents.2
> +++ b/man2/io_getevents.2
> @@ -73,8 +73,9 @@ Interrupted by a signal handler; see
>  .TP
>  .B EINVAL
>  \fIctx_id\fP is invalid.
> -\fImin_nr\fP is out of range or \fInr\fP is
> -out of range.
> +\fImin_nr\fP is out of range or \fInr\fP is out of range, or
> +\fItimeout\fP is out of range (\fItv_sec\fP was less than zero, or
> +\fItv_nsec\fP was not less than 1,000,000,000).
>  .TP
>  .B ENOSYS
>  .BR io_getevents ()
> --
> 2.20.1
>


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