otaru: github.com/nyaxt/otaru/flags Index | Files

package flags

import "github.com/nyaxt/otaru/flags"

Index

Package Files

flags.go

Constants

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
)

func FlagsToString Uses

func FlagsToString(flags int) string

func IsCreateAllowed Uses

func IsCreateAllowed(flags int) bool

func IsCreateExclusive Uses

func IsCreateExclusive(flags int) bool

func IsReadAllowed Uses

func IsReadAllowed(flags int) bool

func IsReadWriteAllowed Uses

func IsReadWriteAllowed(flags int) bool

func IsWriteAllowed Uses

func IsWriteAllowed(flags int) bool

func IsWriteAppend Uses

func IsWriteAppend(flags int) bool

func IsWriteTruncate Uses

func IsWriteTruncate(flags int) bool

func Mask Uses

func Mask(a, b int) int

func MaskPermMode Uses

func MaskPermMode(pm uint16, flags int) uint16

type FlagsReader Uses

type FlagsReader interface {
    Flags() int
}

Package flags imports 2 packages (graph) and is imported by 10 packages. Updated 2017-01-31. Refresh now. Tools for package owners.