From 2e06b23aa61216fcdbefcd6b11a24bca7a456b16 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Thu, 9 Aug 2018 16:49:23 -0700 Subject: Fix missing O_LARGEFILE from O_CREAT files Cleanup some more syscall.O_* references while we're here. PiperOrigin-RevId: 208133460 Change-Id: I48db71a38f817e4f4673977eafcc0e3874eb9a25 --- pkg/abi/linux/file.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/abi/linux') diff --git a/pkg/abi/linux/file.go b/pkg/abi/linux/file.go index f2b7e26ca..509f6b5b3 100644 --- a/pkg/abi/linux/file.go +++ b/pkg/abi/linux/file.go @@ -27,6 +27,10 @@ const ( O_RDONLY = 00000000 O_WRONLY = 00000001 O_RDWR = 00000002 + O_CREAT = 00000100 + O_EXCL = 00000200 + O_NOCTTY = 00000400 + O_TRUNC = 00001000 O_APPEND = 00002000 O_NONBLOCK = 00004000 O_ASYNC = 00020000 -- cgit v1.2.3