diff options
author | Zach Koopmans <zkoopmans@google.com> | 2018-12-19 13:14:53 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-12-19 13:16:06 -0800 |
commit | ff7178a4d10f9f1fb34e54fed5ef27cfbff5d6f9 (patch) | |
tree | b49fb1a2b4cbb1291f41502a7494a1d56a395a87 /pkg/abi/linux/file.go | |
parent | 898838e34d1b0c76405f3e7f7f5fa7f1a444da0e (diff) |
Implement pwritev2.
Implement pwritev2 and associated unit tests.
Clean up preadv2 unit tests.
Tag RWF_ flags in both preadv2 and pwritev2 with associated bug tickets.
PiperOrigin-RevId: 226222119
Change-Id: Ieb22672418812894ba114bbc88e67f1dd50de620
Diffstat (limited to 'pkg/abi/linux/file.go')
-rw-r--r-- | pkg/abi/linux/file.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/abi/linux/file.go b/pkg/abi/linux/file.go index ac49ae9a6..ae33f4a4d 100644 --- a/pkg/abi/linux/file.go +++ b/pkg/abi/linux/file.go @@ -152,9 +152,10 @@ const ( // Values for preadv2/pwritev2. const ( - RWF_HIPRI = 0x0001 - RWF_DSYNC = 0X0002 - RWF_SYNC = 0x0004 + RWF_HIPRI = 0x00000001 + RWF_DSYNC = 0x00000002 + RWF_SYNC = 0x00000004 + RWF_VALID = RWF_HIPRI | RWF_DSYNC | RWF_SYNC ) // Stat represents struct stat. |