sysx

package
v0.0.0-...-1530f13 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AtSymlinkNoFollow defined from AT_SYMLINK_NOFOLLOW in /usr/include/linux/fcntl.h
	AtSymlinkNofollow = 0x100
)
View Source
const (
	// SYS_COPYFILERANGE defined in Kernel 4.5+
	// Number defined in /usr/include/asm/unistd_64.h
	SYS_COPY_FILE_RANGE = 326
)

Variables

This section is empty.

Functions

func CopyFileRange

func CopyFileRange(fdin uintptr, offin *int64, fdout uintptr, offout *int64, len int, flags int) (n int, err error)

func Fchmodat

func Fchmodat(dirfd int, path string, mode uint32, flags int) error

func Getxattr

func Getxattr(path, attr string) ([]byte, error)

Getxattr calls syscall getxattr

func LGetxattr

func LGetxattr(path, attr string) ([]byte, error)

LGetxattr gets an xattr, not following symlinks

func LListxattr

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

LListxattr lists xattrs, not following symlinks

func LRemovexattr

func LRemovexattr(path string, attr string) (err error)

LRemovexattr removes an xattr, not following symlinks

func LSetxattr

func LSetxattr(path string, attr string, data []byte, flags int) (err error)

LSetxattr sets an xattr, not following symlinks

func Listxattr

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

Listxattr calls syscall listxattr and reads all content and returns a string array

func Removexattr

func Removexattr(path string, attr string) (err error)

Removexattr calls syscall removexattr

func Setxattr

func Setxattr(path string, attr string, data []byte, flags int) (err error)

Setxattr calls syscall setxattr

Types

This section is empty.

Jump to

Keyboard shortcuts

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