package annexlib

  1. Overview
  2. Docs
val make_daemon : (unit -> unit) -> bool -> unit
val send_file : src:Unix.file_descr -> dest:Unix.file_descr -> start:int -> len:int -> int
val pread : Unix.file_descr -> string -> int -> int -> int
val pwrite : Unix.file_descr -> string -> int -> int -> int
val getservent : unit -> Unix.service_entry
val setservent : bool -> unit
val endservent : unit -> unit
val listdir : Unix.dir_handle -> string list
val tilde_expand : string -> string
type rusage_who =
  1. | RUSAGE_SELF
  2. | RUSAGE_CHILDREN
type rusage = {
  1. ru_utime : Time.timeval;
  2. ru_stime : Time.timeval;
  3. ru_maxrss : int;
  4. ru_ixrss : int;
  5. ru_idrss : int;
  6. ru_isrss : int;
  7. ru_minflt : int;
  8. ru_majflt : int;
  9. ru_nswap : int;
  10. ru_inblock : int;
  11. ru_oublock : int;
  12. ru_msgsnd : int;
  13. ru_msgrcv : int;
  14. ru_nsignals : int;
  15. ru_nvcsw : int;
  16. ru_nivcsw : int;
}
val getrusage : rusage_who -> rusage
type rlimit_resource =
  1. | RLIMIT_CPU
  2. | RLIMIT_FSIZE
  3. | RLIMIT_DATA
  4. | RLIMIT_STACK
  5. | RLIMIT_CORE
  6. | RLIMIT_RSS
  7. | RLIMIT_NPROF
  8. | RLIMIT_NOFILE
  9. | RLIMIT_MEMLOCK
  10. | RLIMIT_AS
type rlimit = {
  1. rlim_cur : int;
  2. rlim_max : int;
}
val getrlimit : rlimit_resource -> rlimit
val setrlimit : rlimit_resource -> rlimit -> unit
val getpgid : int -> int
val setpgid : int -> int -> unit
val getpgrp : unit -> int
val setpgrp : unit -> unit
OCaml

Innovation. Community. Security.