• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • uwt

  • Documentation
  • uwt-base lib
  • Uwt_base .Conv Module
package uwt
  • uv-fs-sync
    • Uv_fs_sync
  • uwt
    • Uwt
      • Async
      • C_worker
      • Conv
      • Debug
      • Dns
      • Fs
      • Fs_event
      • Fs_functions
      • Fs_poll
      • Fs_types
      • Handle
      • Handle_ext
      • Handle_fileno
      • Int_result
      • Iovec_write
      • Main
      • Misc
      • Pipe
      • Poll
      • Process
      • Signal
      • Stream
      • Sys_info
      • Tcp
      • Timer
      • Tty
      • Udp
      • Unix
  • uwt-base
    • Uwt_base
      • Conv
      • Fs_functions
      • Fs_types
      • Int_result
      • Iovec_write
      • Misc
      • Sys_info
    • Uwt_bytes
  • uwt-compat
    • Uwt_compat
      • Lwt_io
        • BE
        • LE
        • NumberIO
      • Lwt_unix
        • LargeFile
  • uwt-ext
    • Uwt_io
      • BE
      • LE
      • NumberIO
    • Uwt_process
      • process
      • process_full
      • process_in
      • process_none
      • process_out
    • Uwt_throttle
      • Make
        • H
      • S
    • Uwt_timeout
  • uwt-preemptive
    • Uwt_preemptive
Legend:
Library
Module
Module type
Parameter
Class
Class type
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

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct