package system
import "github.com/dotcloud/docker/pkg/system"
Index ¶
- Variables
- func Chdir(dir string) error
- func Chroot(dir string) error
- func ClearKeepCaps() error
- func Clone(flags uintptr) (int, error)
- func CloseFdsFrom(minFd 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 GetClockTicks() int
- func GetLastAccess(stat *syscall.Stat_t) syscall.Timespec
- func GetLastModification(stat *syscall.Stat_t) syscall.Timespec
- func GetParentDeathSignal() (int, error)
- func GetProcessStartTime(pid int) (string, error)
- func Gettid() int
- 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 Prctl(option int, arg2, arg3, arg4, arg5 uintptr) error
- func Ptsname(f *os.File) (string, error)
- func SetCloneFlags(cmd *exec.Cmd, flag uintptr)
- func SetKeepCaps() error
- 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 ClearKeepCaps ¶
func ClearKeepCaps() error
func Clone ¶
func CloseFdsFrom ¶
Works similarly to OpenBSD's "closefrom(2)":
The closefrom() call deletes all descriptors numbered fd and higher from the per-process file descriptor table. It is effectively the same as calling close(2) on each descriptor.
http://www.openbsd.org/cgi-bin/man.cgi?query=closefrom&sektion=2
See also http://stackoverflow.com/a/918469/433558
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 GetClockTicks ¶
func GetClockTicks() int
func GetLastAccess ¶
func GetLastModification ¶
func GetParentDeathSignal ¶
func GetProcessStartTime ¶
look in /proc to find the process start time so that we can verify that this pid has started after ourself
func Gettid ¶
func Gettid() int
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 Prctl ¶
func Ptsname ¶
Ptsname retrieves the name of the first available pts for the given master.
func SetCloneFlags ¶
func SetKeepCaps ¶
func SetKeepCaps() error
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 fds_linux.go proc.go pty_linux.go setns_linux.go stat_linux.go sysconfig.go utimes_linux.go xattrs_linux.go
- Version
- v1.1.0
- Published
- Jul 3, 2014
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 4 minutes ago –
Tools for package owners.