package system
import "github.com/dotcloud/docker/pkg/system"
Index ¶
- Variables
- func Chdir(dir string) error
- func Chroot(dir string) error
- func Clone(flags uintptr) (int, error)
- func Closefd(fd uintptr) error
- func CreateMasterAndConsole() (*os.File, string, error)
- func Dup2(fd1, fd2 uintptr) error
- func Exec(cmd string, args []string, env []string) error
- func Execv(cmd string, args []string, env []string) error
- func Fork() (int, error)
- func GetLastAccess(stat *syscall.Stat_t) syscall.Timespec
- func GetLastModification(stat *syscall.Stat_t) syscall.Timespec
- func Ioctl(fd uintptr, flag, data uintptr) error
- func LUtimesNano(path string, ts []syscall.Timespec) error
- func Lgetxattr(path string, attr string) ([]byte, error)
- func Lsetxattr(path string, attr string, data []byte, flags int) error
- func Mkfifo(name string, mode uint32) error
- func Mknod(path string, mode uint32, dev int) error
- func Mount(source, target, fstype string, flags uintptr, data string) error
- func OpenPtmx() (*os.File, error)
- func OpenTerminal(name string, flag int) (*os.File, error)
- func ParentDeathSignal(sig uintptr) error
- func Pivotroot(newroot, putold string) error
- func Ptsname(f *os.File) (string, error)
- func SetCloneFlags(cmd *exec.Cmd, flag uintptr)
- func Setctty() error
- func Setgid(gid int) error
- func Setgroups(gids []int) error
- func Sethostname(name string) error
- func Setns(fd uintptr, flags uintptr) error
- func Setresgid(rgid, egid, sgid int) error
- func Setresuid(ruid, euid, suid int) error
- func Setsid() (int, error)
- func Setuid(uid int) error
- func Umask(mask int) int
- func Unlockpt(f *os.File) error
- func Unmount(target string, flags int) error
- func Unshare(flags int) error
- func UsetCloseOnExec(fd uintptr) error
- func UtimesNano(path string, ts []syscall.Timespec) error
Variables ¶
Functions ¶
func Chdir ¶
func Chroot ¶
func Clone ¶
func Closefd ¶
func CreateMasterAndConsole ¶
CreateMasterAndConsole will open /dev/ptmx on the host and retreive the pts name for use as the pty slave inside the container
func Dup2 ¶
func Exec ¶
func Execv ¶
func Fork ¶
func GetLastAccess ¶
func GetLastModification ¶
func Ioctl ¶
func LUtimesNano ¶
func Lgetxattr ¶
Returns a nil slice and nil error if the xattr is not set
func Lsetxattr ¶
func Mkfifo ¶
func Mknod ¶
func Mount ¶
func OpenPtmx ¶
OpenPtmx opens /dev/ptmx, i.e. the PTY master.
func OpenTerminal ¶
OpenTerminal is a clone of os.OpenFile without the O_CLOEXEC used to open the pty slave inside the container namespace
func ParentDeathSignal ¶
func Pivotroot ¶
func Ptsname ¶
Ptsname retrieves the name of the first available pts for the given master.
func SetCloneFlags ¶
func Setctty ¶
func Setctty() error
func Setgid ¶
func Setgroups ¶
func Sethostname ¶
func Setns ¶
func Setresgid ¶
func Setresuid ¶
func Setsid ¶
func Setuid ¶
func Umask ¶
func Unlockpt ¶
Unlockpt unlocks the slave pseudoterminal device corresponding to the master pseudoterminal referred to by f. Unlockpt should be called before opening the slave side of a pseudoterminal.
func Unmount ¶
func Unshare ¶
func UsetCloseOnExec ¶
func UtimesNano ¶
Source Files ¶
calls_linux.go errors.go pty_linux.go setns_linux.go stat_linux.go utimes_linux.go xattrs_linux.go
- Version
- v0.9.1
- Published
- Mar 25, 2014
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 51 seconds ago –
Tools for package owners.