flags

package
v0.0.0-...-7570391 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 FlagsToString(flags int) string

func IsCreateAllowed

func IsCreateAllowed(flags int) bool

func IsCreateExclusive

func IsCreateExclusive(flags int) bool

func IsReadAllowed

func IsReadAllowed(flags int) bool

func IsReadWriteAllowed

func IsReadWriteAllowed(flags int) bool

func IsWriteAllowed

func IsWriteAllowed(flags int) bool

func IsWriteAppend

func IsWriteAppend(flags int) bool

func IsWriteTruncate

func IsWriteTruncate(flags int) bool

func Mask

func Mask(a, b int) int

func MaskPermMode

func MaskPermMode(pm uint16, flags int) uint16

Types

type FlagsReader

type FlagsReader interface {
	Flags() int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL