File: cap.ml

package info (click to toggle)
ocaml-eio 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,548 kB
  • sloc: ml: 14,608; ansic: 1,237; makefile: 25
file content (5 lines) | stat: -rw-r--r-- 138 bytes parent folder | download
1
2
3
4
5
external eio_cap_enter : unit -> bool = "eio_unix_cap_enter"

let enter () =
  if eio_cap_enter () then Ok ()
  else Error `Not_supported