os

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LLGoPackage = true
)

Variables

This section is empty.

Functions

func Chdir

func Chdir(dir string) error

func Chmod

func Chmod(name string, mode FileMode) error

func Chown

func Chown(name string, uid, gid int) error

func Clearenv

func Clearenv()

func Exit

func Exit(code int)

func Getegid

func Getegid() int

func Getenv

func Getenv(key string) string

func Geteuid

func Geteuid() int

func Getgid

func Getgid() int

func Getpid

func Getpid() int

func Getppid

func Getppid() int

func Getuid

func Getuid() int

func Getwd

func Getwd() (dir string, err error)

func Lchown

func Lchown(name string, uid, gid int) error
func Link(oldname, newname string) error

func Mkdir

func Mkdir(name string, perm FileMode) error

func NewSyscallError

func NewSyscallError(syscall string, err error) error

NewSyscallError returns, as an error, a new SyscallError with the given system call name and error details. As a convenience, if err is nil, NewSyscallError returns nil.

func Readlink(name string) (string, error)

func Remove

func Remove(name string) error

func Rename

func Rename(oldpath, newpath string) error

func Setenv

func Setenv(key, value string) error
func Symlink(oldname, newname string) error

func Truncate

func Truncate(name string, size int64) error

func Unsetenv

func Unsetenv(key string) error

Types

type FileMode

type FileMode = fs.FileMode

type LinkError

type LinkError struct {
	Op  string
	Old string
	New string
	Err error
}

LinkError records an error during a link or symlink or rename system call and the paths that caused it.

func (*LinkError) Error

func (e *LinkError) Error() string

func (*LinkError) Unwrap

func (e *LinkError) Unwrap() error

type PathError

type PathError = fs.PathError

type SyscallError

type SyscallError struct {
	Syscall string
	Err     error
}

SyscallError records an error from a specific system call.

func (*SyscallError) Error

func (e *SyscallError) Error() string

func (*SyscallError) Timeout

func (e *SyscallError) Timeout() bool

Timeout reports whether this error represents a timeout.

func (*SyscallError) Unwrap

func (e *SyscallError) Unwrap() error

Jump to

Keyboard shortcuts

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