syscallcompat

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package syscallcompat wraps Linux-specific syscalls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnospcPrealloc

func EnospcPrealloc(fd int, off int64, len int64) (err error)

EnospcPrealloc preallocates ciphertext space without changing the file size. This guarantees that we don't run out of space while writing a ciphertext block (that would corrupt the block).

func Fallocate

func Fallocate(fd int, mode uint32, off int64, len int64) (err error)

Fallocate wraps the Fallocate syscall.

func Mknodat

func Mknodat(dirfd int, path string, mode uint32, dev int) (err error)

Mknodat wraps the Mknodat syscall.

func Openat

func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)

Openat wraps the Openat syscall.

func Renameat

func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)

Renameat wraps the Renameat syscall.

func Unlinkat

func Unlinkat(dirfd int, path string) error

Unlinkat wraps the Unlinkat syscall.

Types

This section is empty.

Jump to

Keyboard shortcuts

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