Documentation ¶
Index ¶
- Constants
- Variables
- func Chdir(path string) error
- func Clearenv()
- func Environ() []string
- func Exit(code int)
- func Fchdir(fd int) error
- func Getegid() int
- func Getenv(s string) (string, bool)
- func Geteuid() int
- func Getgid() int
- func Getgroups() ([]int, error)
- func Getpid() int
- func Getppid() int
- func Getuid() int
- func Getwd() (dir string, err error)
- func Mkdir(path string, perm uint32) error
- func Read(fd int, b []byte) (n int, err error)
- func Setenv(key, value string) error
- func Unsetenv(key string) error
- func Write(fd int, b []byte) (n int, err error)
- func WriteConsole(b []byte) int
- type Errno
- type Stat_t
- type SysProcAttr
- type Timespec
- type Timeval
Constants ¶
View Source
const ( EINVAL = Errno(iota + 1) EISDIR ENOTDIR ENAMETOOLONG EPIPE )
View Source
const ( O_RDONLY = 1 << iota O_WRONLY O_RDWR O_CREAT O_APPEND O_TRUNC O_EXCL O_SYNC )
View Source
const ( EPOLLIN = 1 << iota EPOLLPRI EPOLLOUT EPOLLERR EPOLLHUP )
View Source
const ImplementsGetwd = false
Variables ¶
View Source
var ( Stdin = 0 Stdout = 1 Stderr = 2 )
Functions ¶
func Write ¶
Write writes the contents of b to fd and returns the number of bytes written or an error.
If fd is Stdout, b is written with WriteConsole.
func WriteConsole ¶
WriteConsole writes b to the Xen console and returns the number of bytes written.
Types ¶
type Errno ¶
type Errno uintptr
An Errno is an unsigned number describing an error condition. It implements the error interface. The zero Errno is by convention a non-error, so code to convert from Errno to error should use:
err = nil if errno != 0 { err = errno }
type SysProcAttr ¶
type SysProcAttr struct{}
Click to show internal directories.
Click to hide internal directories.