# Functions
CreateMasterAndConsole will open /dev/ptmx on the host and retreive the pts name for use as the pty slave inside the container.
No description provided by the author
No description provided by the author
OpenPtmx opens /dev/ptmx, i.e.
OpenTerminal is a clone of os.OpenFile without the O_CLOEXEC used to open the pty slave inside the container namespace.
Ptsname retrieves the name of the first available pts for the given master.
Setup initializes the proper /dev/console inside the rootfs path.
Unlockpt unlocks the slave pseudoterminal device corresponding to the master pseudoterminal referred to by f.