Documentation ¶
Overview ¶
Package fdimport provides the Import function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Import ¶
func Import(ctx context.Context, fdTable *kernel.FDTable, console bool, fds []*fd.FD) (*host.TTYFileOperations, *hostvfs2.TTYFileDescription, error)
Import imports a slice of FDs into the given FDTable. If console is true, sets up TTY for the first 3 FDs in the slice representing stdin, stdout, stderr. Used FDs are either closed or released. It's safe for the caller to close any remaining files upon return.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.