General management of file descriptors, and support for standard file descriptors (stdin/stdout/stderr).