Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file posix_time2_generated_constants.ml
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849[@@@warning"-9-27"]includeCtypesletliftx=xopenCtypes_staticletrecfield:typeta.ttyp->string->atyp->(a,t)field=funsfnameftype->matchs,fnamewith|View{ty;_},_->let{ftype;foffset;fname}=fieldtyfnameftypein{ftype;foffset;fname}|_->failwith("Unexpected field "^fname)letrecseal:typea.atyp->unit=function|Struct{tag;spec=Complete_;_}->raise(ModifyingSealedTypetag)|Union{utag;uspec=Some_;_}->raise(ModifyingSealedTypeutag)|View{ty;_}->sealty|_->raise(Unsupported"Sealing a non-structured type")type'aconst='aletconstant(typet)name(t:ttyp):t=matcht,namewith|Ctypes_static.PrimitiveCstubs_internals.Int,"FD_SET_ALIGNMENT"->8|Ctypes_static.PrimitiveCstubs_internals.Int,"FD_SET_SIZE"->128|Ctypes_static.PrimitiveCstubs_internals.Int,"FD_SETSIZE"->1024|Ctypes_static.PrimitiveCstubs_internals.Int,"ITIMER_PROF"->2|Ctypes_static.PrimitiveCstubs_internals.Int,"ITIMER_VIRTUAL"->1|Ctypes_static.PrimitiveCstubs_internals.Int,"ITIMER_REAL"->0|Ctypes_static.View{Ctypes_static.read=read1;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"CLOCK_REALTIME"->(read1(Unsigned.UInt32.of_string"0"))|Ctypes_static.View{Ctypes_static.read=read2;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"CLOCK_MONOTONIC"->(read2(Unsigned.UInt32.of_string"1"))|Ctypes_static.View{Ctypes_static.read=read3;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"CLOCK_THREAD_CPUTIME_ID"->(read3(Unsigned.UInt32.of_string"3"))|Ctypes_static.View{Ctypes_static.read=read4;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"CLOCK_PROCESS_CPUTIME_ID"->(read4(Unsigned.UInt32.of_string"2"))|_,s->failwith("unmatched constant: "^s)letenum(typea)name?typedef?unexpected(alist:(a*int64)list)=matchnamewith|s->failwith("unmatched enum: "^s)