fd_to_file
fd_to_file — creates a file pointer from a descriptor.
fd_to_file (fd, mode)
fdA file descriptor as returned from fd_open.
modeA string indicating the mode for the file:
"r" for read-only, "w"
for writable, "a" for append.
This function creates a file pointer from a file descriptor.