Do not use syscall.O_ACCMODE
parent
caac53a719
commit
8156bfadb4
|
@ -168,7 +168,7 @@ const (
|
||||||
|
|
||||||
// OpenAccessModeMask is a bitmask that separates the access mode
|
// OpenAccessModeMask is a bitmask that separates the access mode
|
||||||
// from the other flags in OpenFlags.
|
// from the other flags in OpenFlags.
|
||||||
const OpenAccessModeMask OpenFlags = syscall.O_ACCMODE
|
const OpenAccessModeMask OpenFlags = OpenReadOnly | OpenWriteOnly | OpenReadWrite
|
||||||
|
|
||||||
// OpenFlags are the O_FOO flags passed to open/create/etc calls. For
|
// OpenFlags are the O_FOO flags passed to open/create/etc calls. For
|
||||||
// example, os.O_WRONLY | os.O_APPEND.
|
// example, os.O_WRONLY | os.O_APPEND.
|
||||||
|
|
Loading…
Reference in New Issue