package unix-fcntl

  1. Overview
  2. Docs
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 oflag = t
type defns = {
  1. o_accmode : int;
  2. o_cloexec : int option;
  3. o_creat : int option;
  4. o_directory : int option;
  5. o_excl : int option;
  6. o_noctty : int option;
  7. o_nofollow : int option;
  8. o_trunc : int option;
  9. o_tty_init : int option;
  10. o_append : int option;
  11. o_dsync : int option;
  12. o_nonblock : int option;
  13. o_rsync : int option;
  14. o_sync : int option;
  15. o_exec : int option;
  16. o_rdonly : int option;
  17. o_rdwr : int option;
  18. o_wronly : int option;
  19. o_async : int option;
  20. o_direct : int option;
  21. o_noatime : int option;
  22. o_path : int option;
  23. o_tmpfile : int option;
  24. o_shlock : int option;
  25. o_exlock : int option;
  26. o_evtonly : int option;
}
module Host : sig ... end
val to_code : host:Host.t -> t list -> int option
val to_code_exn : host:Host.t -> t list -> int
val of_code : host:Host.t -> int -> t list
val is_set : host:Host.t -> t -> int -> bool
val set : host:Host.t -> t -> int -> int option
val set_exn : host:Host.t -> t -> int -> int
val to_string : t -> string
val of_string : string -> t option
OCaml

Innovation. Community. Security.