[crt] Improve file descriptors