package unix-fcntl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | O_CLOEXEC
  2. | O_CREAT
  3. | O_DIRECTORY
  4. | O_EXCL
  5. | O_NOCTTY
  6. | O_NOFOLLOW
  7. | O_TRUNC
  8. | O_TTY_INIT
  9. | O_APPEND
  10. | O_DSYNC
  11. | O_NONBLOCK
  12. | O_RSYNC
  13. | O_SYNC
  14. | O_EXEC
  15. | O_RDONLY
  16. | O_RDWR
  17. | O_WRONLY
  18. | O_ASYNC
  19. | O_DIRECT
  20. | O_NOATIME
  21. | O_PATH
  22. | O_TMPFILE
  23. | O_SHLOCK
  24. | O_EXLOCK
  25. | O_EVTONLY
type defns = {
  1. o_accmode : int option;
  2. o_rdonly : int option;
  3. o_wronly : int option;
  4. o_rdwr : int option;
  5. o_creat : int option;
  6. o_excl : int option;
  7. o_noctty : int option;
  8. o_trunc : int option;
  9. o_append : int option;
  10. o_nonblock : int option;
  11. o_sync : int option;
  12. o_async : int option;
  13. o_dsync : int option;
  14. o_rsync : int option;
  15. o_directory : int option;
  16. o_nofollow : int option;
  17. o_cloexec : int option;
  18. o_direct : int option;
  19. o_noatime : int option;
  20. o_path : int option;
  21. o_tty_init : int option;
  22. o_exec : int option;
  23. o_tmpfile : int option;
  24. o_shlock : int option;
  25. o_exlock : int option;
  26. o_evtonly : int option;
}
type host
val host_of_defns : defns -> host
val defns_of_host : host -> defns
val to_code : host:host -> t list -> int
val of_code : host:host -> int -> t list
val is_set : host:host -> t -> int -> bool
val set : host:host -> t -> int -> int
OCaml

Innovation. Community. Security.