Documentation
¶
Index ¶
- Constants
- func FlagsToString(flags int) string
- func IsCreateAllowed(flags int) bool
- func IsCreateExclusive(flags int) bool
- func IsReadAllowed(flags int) bool
- func IsReadWriteAllowed(flags int) bool
- func IsWriteAllowed(flags int) bool
- func IsWriteAppend(flags int) bool
- func IsWriteTruncate(flags int) bool
- func Mask(a, b int) int
- func MaskPermMode(pm uint16, flags int) uint16
- type FlagsReader
Constants ¶
View Source
const ( O_RDONLY int = syscall.O_RDONLY O_WRONLY int = syscall.O_WRONLY O_RDWR int = syscall.O_RDWR O_CREATE int = syscall.O_CREAT O_EXCL int = syscall.O_EXCL O_TRUNCATE int = syscall.O_TRUNC O_APPEND int = syscall.O_APPEND O_RDWRCREATE int = O_RDWR | O_CREATE O_VALIDMASK int = O_RDONLY | O_WRONLY | O_RDWR | O_CREATE | O_EXCL | O_TRUNCATE | O_APPEND )
Variables ¶
This section is empty.
Functions ¶
func FlagsToString ¶
func IsCreateAllowed ¶
func IsCreateExclusive ¶
func IsReadAllowed ¶
func IsReadWriteAllowed ¶
func IsWriteAllowed ¶
func IsWriteAppend ¶
func IsWriteTruncate ¶
func MaskPermMode ¶
Types ¶
type FlagsReader ¶
type FlagsReader interface {
Flags() int
}
Click to show internal directories.
Click to hide internal directories.