4 ms·
"Although it is typically not important to know, it’s worth stating anyway that while you can access these file descriptors though the above paths they actually
by klodolph 16y ago
"Although it is typically not important to know, it’s worth stating anyway that while you can access these file descriptors though the above paths they actually exist in the memory allocated to the program by libc."
Incorrect. The file descriptors exist in kernel memory, and user code simply refers to them by number. (Sure, you have to allocate memory for the number, but that's not necessarily done by libc.)