diff options
author | Googler <noreply@google.com> | 2019-02-15 10:33:18 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-15 10:34:20 -0800 |
commit | c5f10af2c8a6be37f38ccbb1e4abb16113ec8fbd (patch) | |
tree | bf57336e315f0d18cac380bb19a18ee82d281c5c /pkg/p9/p9.go | |
parent | e34d27e8b6709809582eb0ad43c7232f2d5ab8ad (diff) |
Internal change.
PiperOrigin-RevId: 234169795
Change-Id: I3c576ae6ad460e2c0e3f142a2671dc18d34a07ef
Diffstat (limited to 'pkg/p9/p9.go')
-rw-r--r-- | pkg/p9/p9.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/p9/p9.go b/pkg/p9/p9.go index 9e8b7d467..5aeebf16e 100644 --- a/pkg/p9/p9.go +++ b/pkg/p9/p9.go @@ -41,6 +41,10 @@ const ( // OpenFlagsModeMask is a mask of valid OpenFlags mode bits. OpenFlagsModeMask OpenFlags = 3 + + // OpenFlagsIgnoreMask is a list of OpenFlags mode bits that are ignored for Tlopen. + // Note that syscall.O_LARGEFILE is set to zero, use value from Linux fcntl.h. + OpenFlagsIgnoreMask OpenFlags = syscall.O_DIRECTORY | 0100000 ) // ConnectFlags is the mode passed to Connect operations. @@ -79,6 +83,8 @@ func (o OpenFlags) String() string { return "ReadWrite" case OpenFlagsModeMask: return "OpenFlagsModeMask" + case OpenFlagsIgnoreMask: + return "OpenFlagsIgnoreMask" default: return "UNDEFINED" } |