HomeFreeBSD

kboot: Implement dup(2)

Description

kboot: Implement dup(2)

Early in boot, we need to create the normal stdin/out/err env for the
boot loader to run in. To do that, we need to open the console and
duplicate the file descriptors which requires dup(2). Implement a
wrapper as host_dup.

Sponsored by: Netflix

Details

Provenance
impAuthored on Jun 30 2022, 6:25 PM
Parents
rGa4ed0eb1aa64: kboot: Implement symlink(2)
Branches
Unknown
Tags
Unknown