From de0d127ae61df783745880871a199ff86a720035 Mon Sep 17 00:00:00 2001 From: Haibo Xu Date: Tue, 31 Dec 2019 08:44:06 +0000 Subject: 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 Change-Id: I354d988073bfd0c9ff5371d4e0be9da2b8fd019f --- pkg/abi/linux/file_arm64.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/abi/linux/file_arm64.go') 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 -- cgit v1.2.3