From b3b60ea29adf9415c9c7b98ba331dacd92f231b7 Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Mon, 26 Nov 2018 09:49:53 -0800 Subject: Implementation of preadv2 for Linux 4.4 support Implement RWF_HIPRI (4.6) silently passes the read call. Implement -1 offset calls readv. PiperOrigin-RevId: 222840324 Change-Id: If9ddc1e8d086e1a632bdf5e00bae08205f95b6b0 --- pkg/abi/linux/file.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg/abi/linux') diff --git a/pkg/abi/linux/file.go b/pkg/abi/linux/file.go index 72e5c6f83..8d48e1753 100644 --- a/pkg/abi/linux/file.go +++ b/pkg/abi/linux/file.go @@ -150,6 +150,13 @@ const ( PermissionsMask = 0777 ) +// Values for preadv2/pwritev2. +const ( + RWF_HIPRI = 0x0001 + RWF_DSYNC = 0X0002 + RWF_SYNC = 0x0004 +) + // Stat represents struct stat. type Stat struct { Dev uint64 -- cgit v1.2.3