system

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lclearxattrs

func Lclearxattrs(path string, except map[string]struct{}) error

Lclearxattrs is a wrapper around Llistxattr and Lremovexattr, which attempts to remove all xattrs from a given file.

func Lgetxattr

func Lgetxattr(path string, name string) ([]byte, error)

Lgetxattr is a wrapper around unix.Lgetattr, to abstract the resizing of the returned []string.

func Llistxattr

func Llistxattr(path string) ([]string, error)

Llistxattr is a wrapper around unix.Llistattr, to abstract the NUL-splitting and resizing of the returned []string.

func Lutimes

func Lutimes(path string, atime, mtime time.Time) error

Lutimes is a wrapper around utimensat(2), with the AT_SYMLINK_NOFOLLOW flag set, to allow changing the time of a symlink rather than the file it points to.

func Tarmode

func Tarmode(typeflag byte) uint32

Tarmode takes a Typeflag (from a tar.Header for example) and returns the corresponding os.Filemode bit. Unknown typeflags are treated like regular files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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