Received: by 10.213.65.68 with SMTP id h4csp657038imn; Fri, 6 Apr 2018 06:53:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/hSjXe5QnI2z38KMq1EFvWcIPCeMxBOT23Ne42S2yYjRmP/BWbHQIOI932UwKK7st9isMx X-Received: by 10.99.64.3 with SMTP id n3mr17640099pga.13.1523022802602; Fri, 06 Apr 2018 06:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523022802; cv=none; d=google.com; s=arc-20160816; b=TX2CBtkUYGFwVX8x3L/jrWQ5u2/cn06W7+RjC1WeChjbhbddmU/t5c8A4G70kxAuFw bogdEoK1HdaqU5WGAqRttY1XjZiHJKJGpXJp7d3MypsWzEzxxfHyqEBkCPrfGlEp74XC cEd3i+t0D/z8RiqKTHJ9OtOy7QuaaPIfKGRmiL1zYNCtF5z8wK3u+TcsA1eirWIYPVbX sj8qrY+yWeXYwBDKhZSVn2O/9WCIQ0OJ4saYU6dcdwQ+lXqR20OgczstWDyK3HGnhK9J wW15KUnPPtvit0kmf6sEB57SpiIo1aWUQ+zqESkCnRC9Hkc7u14AUthm6+HeBPMfm7TK 8IUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=aDGeF/W0mZrQAAr8mWBv0jmSRzypABdtPu2VLxFgDXM=; b=g2dz9xG8zUElhpmubdqH84AmdteqLxcPVQmPW4NzizB2+KhzPEhUcpvfmK69NKLmzM QM6QZfMGQa23aXyMT4p0bZJgy8Gkxq9u0vp+xqmLQZLIbmogsgnNuIYA+HPxB6fuotQ2 jtb4SWozCACtkr3q3qrX3/LoyIdj17YikZqj5b8NiqF+WN2Fum5KlPd3oQIoAI7UROO1 jl8ZE69BhuhPS/ccJWIfPCo19T3Ex7WxtS0rJVtRZPVVO2eH0H6Mq1gO8751ctsM5DaP e+QMcSWgXV5t3KOWrGyJB1LoEeKWZwOvyJwVaTLNT2DBw77RJbbF4L3P9jpNbnrb2u7I 3B0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si11003969pld.168.2018.04.06.06.53.08; Fri, 06 Apr 2018 06:53:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757024AbeDFNve (ORCPT + 99 others); Fri, 6 Apr 2018 09:51:34 -0400 Received: from nov-007-i637.relay.mailchannels.net ([46.232.183.191]:8906 "EHLO nov-007-i637.relay.mailchannels.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752966AbeDFNvc (ORCPT ); Fri, 6 Apr 2018 09:51:32 -0400 X-Sender-Id: novatrend|x-authuser|juerg@bitron.ch Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 19DAABE0428; Fri, 6 Apr 2018 13:51:26 +0000 (UTC) Received: from srv17.tophost.ch (swiss-ingress-3.mailchannels.ch [46.232.178.210]) by relay.mailchannels.net (Postfix) with ESMTPA id 42564BE03E9; Fri, 6 Apr 2018 13:51:23 +0000 (UTC) X-Sender-Id: novatrend|x-authuser|juerg@bitron.ch Received: from srv17.tophost.ch (srv17.tophost.ch [193.33.128.141]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.7); Fri, 06 Apr 2018 13:51:26 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: novatrend|x-authuser|juerg@bitron.ch X-MailChannels-Auth-Id: novatrend X-Lettuce-Troubled: 59e5f4e1514ba4d3_1523022685831_541741685 X-MC-Loop-Signature: 1523022685830:186766683 X-MC-Ingress-Time: 1523022685830 Received: from [84.75.82.190] (port=37202 helo=jzen.bitron.ch) by srv17.tophost.ch with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1f4Rly-001ALs-Sg; Fri, 06 Apr 2018 15:51:22 +0200 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= To: mtk.manpages@gmail.com Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?J=C3=BCrg=20Billeter?= Subject: [PATCH v2] readv.2, io_submit.2: Document RWF_APPEND added in Linux 4.16 Date: Fri, 6 Apr 2018 15:51:06 +0200 Message-Id: <20180406135106.30342-1-j@bitron.ch> X-Mailer: git-send-email 2.16.3 In-Reply-To: <1f559be3-93df-ccdd-02dc-39c83c83a8c9@gmail.com> References: <1f559be3-93df-ccdd-02dc-39c83c83a8c9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AuthUser: juerg@bitron.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Jürg Billeter --- Changes since version 1: - Explain offset handling man2/io_submit.2 | 13 +++++++++++++ man2/readv.2 | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/man2/io_submit.2 b/man2/io_submit.2 index 397fd0b75..25961138a 100644 --- a/man2/io_submit.2 +++ b/man2/io_submit.2 @@ -111,6 +111,19 @@ field of the .I io_event structure (see .BR io_getevents (2)). +.TP +.BR RWF_APPEND " (since Linux 4.16)" +.\" commit e1fc742e14e01d84d9693c4aca4ab23da65811fb +Append data to the end of the file. +See the description of the flag of the same name in +.BR pwritev2 (2) +as well as the description of +.B O_APPEND +in +.BR open (2). +The +.I aio_offset +field is ignored. The file offset is not changed. .RE .TP .I aio_lio_opcode diff --git a/man2/readv.2 b/man2/readv.2 index b3b7b9658..9ef250e11 100644 --- a/man2/readv.2 +++ b/man2/readv.2 @@ -248,6 +248,23 @@ to .BR EAGAIN . Currently, this flag is meaningful only for .BR preadv2 (). +.TP +.BR RWF_APPEND " (since Linux 4.16)" +.\" commit e1fc742e14e01d84d9693c4aca4ab23da65811fb +Provide a per-write equivalent of the +.B O_APPEND +.BR open (2) +flag. +This flag is meaningful only for +.BR pwritev2 (), +and its effect applies only to the data range written by the system call. +The +.I offset +argument does not affect the write operation, the data is always appended +to the end of the file. However, if the +.I offset +argument is \-1, the current file offset is updated. +This matches the behavior when the file is opened in append mode. .SH RETURN VALUE On success, .BR readv (), -- 2.16.3