From patchwork Wed Jul 31 03:03:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi X-Patchwork-Id: 11067041 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 93A90112C for ; Wed, 31 Jul 2019 02:57:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C5C128511 for ; Wed, 31 Jul 2019 02:57:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BD8E288B8; Wed, 31 Jul 2019 02:57:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86B9928511 for ; Wed, 31 Jul 2019 02:57:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728245AbfGaC5b (ORCPT ); Tue, 30 Jul 2019 22:57:31 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3661 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726691AbfGaC5a (ORCPT ); Tue, 30 Jul 2019 22:57:30 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BD64B86C73D9FB5B7E30; Wed, 31 Jul 2019 10:57:27 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Wed, 31 Jul 2019 10:57:17 +0800 From: "zhangyi (F)" To: CC: , , , , , , , , , Subject: [PATCH] io_getevents.2: Add EINVAL for case of timeout parameter out of range Date: Wed, 31 Jul 2019 11:03:13 +0800 Message-ID: <1564542193-89171-1-git-send-email-yi.zhang@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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@huawei.com/ Signed-off-by: zhangyi (F) Cc: Jeff Moyer Cc: Arnd Bergmann Cc: Deepa Dinamani --- 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 ()