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 Netto X-Patchwork-Id: 23485 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(-) 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. */