From patchwork Wed Oct 11 20:39:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 115575 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1160824qgn; Wed, 11 Oct 2017 13:39:29 -0700 (PDT) X-Received: by 10.84.236.12 with SMTP id q12mr196800plk.314.1507754369468; Wed, 11 Oct 2017 13:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507754369; cv=none; d=google.com; s=arc-20160816; b=M3p9kBCs/Y2jzK7ZttkqLdWZr0nOgXXTNgEn1r0MhBcOztK2Vkwy/85QrmXCWZzcyw YzGyil99Z5m1gRMtYePnna8O7suTSNNKW0Xa/ocq+Kg2h9kOrQBzhfGViwoOXEV065F7 lvVwIloT7yEYu6qwqZGPJf9ZOcxrZqyaBWZUAXvs4hD6s8yFsHLsNKWem+0Xvzftha9h Dt+2E6DtxFryt2UeqKKb8zR25qNlCGZRPBYq5hO6dNsi/WacSn6XO/Ijr/y3zxF5Cs7w W2pi0/egazKjRsLESxhSplwU/tVW/HD4DuKrEv3RjS2Cwl1ymD3vRLVV+AI5Mw5JZuF1 sCrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:delivered-to:sender:list-help :list-post:list-archive:list-subscribe:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=+TsneiTZ9BicCASvrMnx/0QiS3cRi5SpCnlE8ow6Pb4=; b=dSJ7uEABEJH1ovzdzdDGO4DCnG2UOOk9iChhWmB8+HTwkCqQ+p+qhZDfKZiW6TdbF2 o0wLDSFgr7aP1TMOXcE0UkecFHY8qcA2nrTrBNH+qqPFJGLw9gAfdz2U0Fv8/MmAanlg DmwY26qbAlDZQ/dnhE++9ytrRF1zoZglW7JGPVP3GGp65zisb0+zG3dfTiPGBdknhoKb 2le/NY9tWMlJZDbZGOkSd/ifJHYAkHSmMIKzy29Kik5coqxszqcMWq8dLuCTDw6mZFTt E7YBR9PwsIGEGK5wOGDW4C5BGGY2WvN/ZfaGxn8BVDoXsyCY/g0uGGKmulxOIXnB0P0K x0Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=oVRvPGDx; spf=pass (google.com: domain of libc-alpha-return-85673-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-85673-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id d6si11475958pfc.55.2017.10.11.13.39.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Oct 2017 13:39:29 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-85673-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=oVRvPGDx; spf=pass (google.com: domain of libc-alpha-return-85673-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-85673-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=HQxg7Fh+TfPgyCIMQi9URuLnXAMmufG3G5qjeu/yWeIL1g+eDlczw Nir3UeS9gt1WhQJSVtRQDOmKUcfTLnUB9+GrTJTnxJLo98s2WZM1g2W6TUQe2yZt PWIIB4UZvJC6CJzaMDRv21mhxsCGbfp37dXzgNZtb/nRbSEgwnlCQE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=vRwZl1HX0n3CqzAkhuUWXEeibrQ=; b=oVRvPGDx7UHHKRDjIwH4Gid3Zmf2 3GGmpp1uB+i+51mUqLnTNLfMBQzf2NFRblR/l0V023UoCy9Yu9GixAyfEghsglA2 8LoW9rxhWHXURfNwz54vgriIHVc/FT1//oZI8iX9rE5X0BkW9EP3aINP5NwPQado B3D/i1TRUQOaGzg= Received: (qmail 110920 invoked by alias); 11 Oct 2017 20:39:19 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 110910 invoked by uid 89); 11 Oct 2017 20:39:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Never X-HELO: mail-qt0-f182.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=+TsneiTZ9BicCASvrMnx/0QiS3cRi5SpCnlE8ow6Pb4=; b=UVmsyDeohfLaIDyVW35pER+FwgsLewLBNMN04NpSHdHIUnmauXc1M9uwwcwtcsp12l OAfDh/rB99Y/Hl/tD6D6FM750kobFZPaimdTt/fh2DQF+1Z6ZOsUuf2OfMfQlquQcAGI 49yO01gRW3OwJ+NV25N/30BK35cbyO2c9bGMW1wAgE+yT+c8WgoXY6dVm9zi8Jzoz9O4 17fn4BeN1kuP2Dvc1WL5Sis/7ERxhjoTLM27EYppBsxJ2SJj9zqim4/6Ghp+/Xud3QWi 7UujnDP/ZjFvPQaCkQTYIMsfhElorD/HYBTCuT3wDRDN+67lne4Z2XrOHCDcPBuovpgS +KPQ== X-Gm-Message-State: AMCzsaXnFZGQm0NqIYhY4GTQpHhGqKDL6scBNDibWKsqbuw/WJk774yZ HR0OHxGONcYmMrSKHKmAOo3VbkGXNW8= X-Google-Smtp-Source: AOwi7QDPrcMa04kJW62zneBMpwND3rQ+hX13/fe7sjbB/WSY+bO8TJgOvyv69yqF2jq6fdev0Zhyig== X-Received: by 10.55.79.71 with SMTP id d68mr366653qkb.247.1507754355624; Wed, 11 Oct 2017 13:39:15 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] posix: Add p{readv,writev}2 flags to generic uio-ext.h Date: Wed, 11 Oct 2017 17:39:06 -0300 Message-Id: <1507754346-1616-1-git-send-email-adhemerval.zanella@linaro.org> This patch follows a suggestion from Florian to add the flags on generic API [1]. Checked on x86_64-linux-gnu. * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New defines. * sysdeps/unix/sysv/linux/bits/uio-ext.h: Fix comment format. [1] https://sourceware.org/ml/libc-alpha/2017-09/msg00159.html --- ChangeLog | 5 +++++ bits/uio-ext.h | 6 +++++- sysdeps/unix/sysv/linux/bits/uio-ext.h | 3 +-- 3 files changed, 11 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/bits/uio-ext.h b/bits/uio-ext.h index cd4039c..cba75a7 100644 --- a/bits/uio-ext.h +++ b/bits/uio-ext.h @@ -23,6 +23,10 @@ # error "Never include directly; use instead." #endif -/* This operating system does not extend sys/uio.h. */ +/* Flags for preadv2/pwritev2. */ +#define RWF_HIPRI 0x00000001 /* High priority request. */ +#define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC. */ +#define RWF_SYNC 0x00000004 /* per-IO O_SYNC. */ +#define RWF_NOWAIT 0x00000008 /* per-IO nonblocking mode. */ #endif /* sys/uio_ext.h */ diff --git a/sysdeps/unix/sysv/linux/bits/uio-ext.h b/sysdeps/unix/sysv/linux/bits/uio-ext.h index 751fc49..f931fd1 100644 --- a/sysdeps/unix/sysv/linux/bits/uio-ext.h +++ b/sysdeps/unix/sysv/linux/bits/uio-ext.h @@ -41,8 +41,7 @@ extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, unsigned long int __flags) __THROW; - -/* Flags for preadv2/pwritev2: */ +/* Flags for preadv2/pwritev2. */ #define RWF_HIPRI 0x00000001 /* High priority request. */ #define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC. */ #define RWF_SYNC 0x00000004 /* per-IO O_SYNC. */