summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/file_arm64.go
diff options
context:
space:
mode:
authorHaibo Xu <haibo.xu@arm.com>2019-12-31 08:44:06 +0000
committerHaibo Xu <haibo.xu@arm.com>2020-01-06 06:11:07 +0000
commitde0d127ae61df783745880871a199ff86a720035 (patch)
treee6af74739d39f7e756cf524105930e260dc65c80 /pkg/abi/linux/file_arm64.go
parent83ab47e87badd8b46f784739903361d9f824fa2c (diff)
Make some of the fcntl flags arch specific..
Some of the flags in the file system related system call are architecture specific(O_NOFOLLOW/O_DIRECT..). Ref to the fcntl.h file in the Linux src codes. Signed-off-by: Haibo Xu <haibo.xu@arm.com> Change-Id: I354d988073bfd0c9ff5371d4e0be9da2b8fd019f
Diffstat (limited to 'pkg/abi/linux/file_arm64.go')
-rw-r--r--pkg/abi/linux/file_arm64.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/abi/linux/file_arm64.go b/pkg/abi/linux/file_arm64.go
index f16c07589..26a54f416 100644
--- a/pkg/abi/linux/file_arm64.go
+++ b/pkg/abi/linux/file_arm64.go
@@ -14,6 +14,14 @@
package linux
+// Constants for open(2).
+const (
+ O_DIRECTORY = 000040000
+ O_NOFOLLOW = 000100000
+ O_DIRECT = 000200000
+ O_LARGEFILE = 000400000
+)
+
// Stat represents struct stat.
type Stat struct {
Dev uint64