FILE to fd