summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/fs.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-07-18 22:19:03 +0000
committergVisor bot <gvisor-bot@google.com>2019-07-18 22:19:03 +0000
commit2fcf4543244a8762f35e2eced37d65e0c91b2896 (patch)
tree3f608a5ff9e562a75ffda57750ea6dcc8950fa64 /pkg/abi/linux/fs.go
parent9f4e682c1c3b4061308f82f3d9e01de0778d111a (diff)
parent163ab5e9bab4f14923433967656d20f169d0f904 (diff)
Merge 163ab5e9 (automated)
Diffstat (limited to 'pkg/abi/linux/fs.go')
-rw-r--r--pkg/abi/linux/fs.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/abi/linux/fs.go b/pkg/abi/linux/fs.go
index 549e0fb93..b416e3472 100644
--- a/pkg/abi/linux/fs.go
+++ b/pkg/abi/linux/fs.go
@@ -77,6 +77,15 @@ type Statfs struct {
Spare [4]uint64
}
+// Whence argument to lseek(2), from include/uapi/linux/fs.h.
+const (
+ SEEK_SET = 0
+ SEEK_CUR = 1
+ SEEK_END = 2
+ SEEK_DATA = 3
+ SEEK_HOLE = 4
+)
+
// Sync_file_range flags, from include/uapi/linux/fs.h
const (
SYNC_FILE_RANGE_WAIT_BEFORE = 1