Adding file descriptor functionalities