summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-08-09 16:49:23 -0700
committerShentubot <shentubot@google.com>2018-08-09 16:50:37 -0700
commit2e06b23aa61216fcdbefcd6b11a24bca7a456b16 (patch)
treeea4fd6afd814213ea1e13fe58adad4ad5e47cb08 /pkg/abi/linux
parent4e171f7590284c1f4cedf90c92204873961b2e97 (diff)
Fix missing O_LARGEFILE from O_CREAT files
Cleanup some more syscall.O_* references while we're here. PiperOrigin-RevId: 208133460 Change-Id: I48db71a38f817e4f4673977eafcc0e3874eb9a25
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r--pkg/abi/linux/file.go4
1 files changed, 4 insertions, 0 deletions
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