pub fn stdio_mark_open(gfd: i32)
Clear the closed bit for a stdio slot (after successful dup2 onto 0/1/2).
dup2