package uwt

  1. Overview
  2. Docs
val file_of_file_descr : Unix.file_descr -> file option

the function always succeed on Unix - but not on Windows. It will fail, if you try to convert a `Unix.file_descr` that wraps a SOCKET or if you run out of crt file descriptors.

val file_descr_of_file : file -> Unix.file_descr option
OCaml

Innovation. Community. Security.