Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file posix_stat_generated_constants.ml
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283[@@@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,"AT_EACCESS"->512|Ctypes_static.PrimitiveCstubs_internals.Int,"AT_REMOVEDIR"->512|Ctypes_static.PrimitiveCstubs_internals.Int,"AT_SYMLINK_NOFOLLOW"->256|Ctypes_static.PrimitiveCstubs_internals.Int,"AT_FDCWD"->-100|Ctypes_static.View{Ctypes_static.read=read1;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IXOTH"->(read1(Unsigned.UInt32.of_string"1"))|Ctypes_static.View{Ctypes_static.read=read2;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IWOTH"->(read2(Unsigned.UInt32.of_string"2"))|Ctypes_static.View{Ctypes_static.read=read3;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IROTH"->(read3(Unsigned.UInt32.of_string"4"))|Ctypes_static.View{Ctypes_static.read=read4;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IRWXO"->(read4(Unsigned.UInt32.of_string"7"))|Ctypes_static.View{Ctypes_static.read=read5;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IXGRP"->(read5(Unsigned.UInt32.of_string"8"))|Ctypes_static.View{Ctypes_static.read=read6;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IWGRP"->(read6(Unsigned.UInt32.of_string"16"))|Ctypes_static.View{Ctypes_static.read=read7;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IRGRP"->(read7(Unsigned.UInt32.of_string"32"))|Ctypes_static.View{Ctypes_static.read=read8;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IRWXG"->(read8(Unsigned.UInt32.of_string"56"))|Ctypes_static.View{Ctypes_static.read=read9;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IXUSR"->(read9(Unsigned.UInt32.of_string"64"))|Ctypes_static.View{Ctypes_static.read=read10;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IWUSR"->(read10(Unsigned.UInt32.of_string"128"))|Ctypes_static.View{Ctypes_static.read=read11;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IRUSR"->(read11(Unsigned.UInt32.of_string"256"))|Ctypes_static.View{Ctypes_static.read=read12;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IRWXU"->(read12(Unsigned.UInt32.of_string"448"))|Ctypes_static.View{Ctypes_static.read=read13;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_ISVTX"->(read13(Unsigned.UInt32.of_string"512"))|Ctypes_static.View{Ctypes_static.read=read14;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_ISGID"->(read14(Unsigned.UInt32.of_string"1024"))|Ctypes_static.View{Ctypes_static.read=read15;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_ISUID"->(read15(Unsigned.UInt32.of_string"2048"))|Ctypes_static.View{Ctypes_static.read=read16;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFSOCK"->(read16(Unsigned.UInt32.of_string"49152"))|Ctypes_static.View{Ctypes_static.read=read17;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFIFO"->(read17(Unsigned.UInt32.of_string"4096"))|Ctypes_static.View{Ctypes_static.read=read18;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFBLK"->(read18(Unsigned.UInt32.of_string"24576"))|Ctypes_static.View{Ctypes_static.read=read19;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFCHR"->(read19(Unsigned.UInt32.of_string"8192"))|Ctypes_static.View{Ctypes_static.read=read20;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFLNK"->(read20(Unsigned.UInt32.of_string"40960"))|Ctypes_static.View{Ctypes_static.read=read21;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFDIR"->(read21(Unsigned.UInt32.of_string"16384"))|Ctypes_static.View{Ctypes_static.read=read22;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFREG"->(read22(Unsigned.UInt32.of_string"32768"))|Ctypes_static.View{Ctypes_static.read=read23;ty=Ctypes_static.PrimitiveCstubs_internals.Uint32_t},"S_IFMT"->(read23(Unsigned.UInt32.of_string"61440"))|_,s->failwith("unmatched constant: "^s)letenum(typea)name?typedef?unexpected(alist:(a*int64)list)=matchnamewith|s->failwith("unmatched enum: "^s)