package posix-time2

  1. Overview
  2. Docs
Bindings for posix time functions

Install

Dune Dependency

Authors

Maintainers

Sources

v2.0.0.tar.gz
md5=2c186aa5161b72208a870d5710fb6208
sha512=d583c3d386865eab7575fc4f1976c17294bad2ee5037327cb5c3075965788170e652b7b9b9f660ef25f71558553fbcc47734b971e3c9f41627cc573d75d2fb54

doc/src/posix-time2.constants/posix_time2_constants.ml.html

Source file posix_time2_constants.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
module Def (S : Cstubs.Types.TYPE) = struct
  let clockid_t = S.lift_typ Posix_types.clockid_t
  let clock_process_cputime_id = S.constant "CLOCK_PROCESS_CPUTIME_ID" clockid_t
  let clock_thread_cputime_id = S.constant "CLOCK_THREAD_CPUTIME_ID" clockid_t
  let clock_monotonic = S.constant "CLOCK_MONOTONIC" clockid_t
  let clock_realtime = S.constant "CLOCK_REALTIME" clockid_t
  let itimer_real = S.constant "ITIMER_REAL" S.int
  let itimer_virtual = S.constant "ITIMER_VIRTUAL" S.int
  let itimer_prof = S.constant "ITIMER_PROF" S.int
  let fd_setsize = S.constant "FD_SETSIZE" S.int
  let fd_set_size = S.constant "FD_SET_SIZE" S.int
  let fd_set_alignment = S.constant "FD_SET_ALIGNMENT" S.int
end
OCaml

Innovation. Community. Security.