summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2018-11-26 09:49:53 -0800
committerShentubot <shentubot@google.com>2018-11-26 09:50:47 -0800
commitb3b60ea29adf9415c9c7b98ba331dacd92f231b7 (patch)
treeba5ede8546c86e3e0ea1efb5b2f473d219a1ccab /pkg/abi/linux
parent1918563525662d6645ec921e61aa7e6da92af0dd (diff)
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
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r--pkg/abi/linux/file.go7
1 files changed, 7 insertions, 0 deletions
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