From 5061607e7781088541edcb9be9408a993dfab145 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 21 Aug 2016 14:59:15 +0200 Subject: [PATCH] x/sys/unix: Manually add FADV_* constants for Linux/arm --- vendor/src/golang.org/x/sys/unix/ztypes_linux_arm.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vendor/src/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/src/golang.org/x/sys/unix/ztypes_linux_arm.go index 817ac9c29..66f8d1175 100644 --- a/vendor/src/golang.org/x/sys/unix/ztypes_linux_arm.go +++ b/vendor/src/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -145,6 +145,15 @@ type Fsid struct { X__val [2]int32 } +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + type Flock_t struct { Type int16 Whence int16