Documentation
¶
Index ¶
- func CreateMasterAndConsole() (*os.File, string, error)
- func Ioctl(fd uintptr, flag, data uintptr) error
- func OpenAndDup(consolePath string) error
- func OpenPtmx() (*os.File, error)
- func OpenTerminal(name string, flag int) (*os.File, error)
- func Ptsname(f *os.File) (string, error)
- func Setup(rootfs, consolePath, mountLabel string) error
- func Unlockpt(f *os.File) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMasterAndConsole ¶ added in v0.4.2
CreateMasterAndConsole will open /dev/ptmx on the host and retreive the pts name for use as the pty slave inside the container
func OpenAndDup ¶
func OpenTerminal ¶ added in v0.4.2
OpenTerminal is a clone of os.OpenFile without the O_CLOEXEC used to open the pty slave inside the container namespace
func Ptsname ¶ added in v0.4.2
Ptsname retrieves the name of the first available pts for the given master.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.