djbunix

package
v0.0.0-...-7ab9190 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FdClose

func FdClose(fd int) error

func MkdirAt

func MkdirAt(fd int, path string, mode uint32) error

func MkdirOpen

func MkdirOpen(dir int, path string) (int, error)

func MkdirOpenWriteTmp

func MkdirOpenWriteTmp(dir int, prefix, path string, fn func(int) error) (int, error)

func OpenAt

func OpenAt(fd int, path string, flags int, mode uint32) (*os.File, error)

func OpenAtSlurpClose

func OpenAtSlurpClose(dir int, path string) ([]byte, error)

func OpenDirAt

func OpenDirAt(dir int, path string) (int, error)

func OpenReadAt

func OpenReadAt(fd int, path string) (*os.File, error)

func OpenTruncAt

func OpenTruncAt(fd int, path string) (*os.File, error)

func OpenTruncAt3

func OpenTruncAt3(fd int, path string, mode uint32) (*os.File, error)

func OpenWriteAt

func OpenWriteAt(fd int, path string) (*os.File, error)

func OpenWriteClose

func OpenWriteClose(dir int, path string, mode uint32, data []byte) error

func OpenWriteTmp

func OpenWriteTmp(dir int, path string, mode uint32, data []byte) error

func TmpName

func TmpName(prefix string) (string, error)

func TouchAt

func TouchAt(dir int, path string) error

Types

type Tai64N

type Tai64N struct {
	Secs uint64
	Nano uint32
}

func Tai64Now

func Tai64Now() Tai64N

func (Tai64N) MarshalBinary

func (t Tai64N) MarshalBinary() ([]byte, error)

func (Tai64N) MarshalJSON

func (t Tai64N) MarshalJSON() ([]byte, error)

func (Tai64N) MarshalText

func (t Tai64N) MarshalText() ([]byte, error)

func (Tai64N) String

func (t Tai64N) String() string

func (*Tai64N) UnmarshalBinary

func (t *Tai64N) UnmarshalBinary(pack []byte) error

unmarshal

func (*Tai64N) UnmarshalJSON

func (t *Tai64N) UnmarshalJSON(b []byte) error

func (*Tai64N) UnmarshalText

func (t *Tai64N) UnmarshalText(fmt []byte) error

Jump to

Keyboard shortcuts

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