Created
November 29, 2022 17:04
-
-
Save yeonwooz/50074c155798a925370e62ed08306c02 to your computer and use it in GitHub Desktop.
dynamic_file_descriptor_table_
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct thread { | |
... | |
struct file **fdt; | |
} | |
t->fdt = palloc_get_page(PAL_ZERO); | |
t->fdt[0] = 0; // stdin | |
t->fdt[1] = 1; // stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment