Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file posix_socket_generated_stubs.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117moduleCI=Cstubs_internalsexternalposix_socket_1_getnameinfo:_CI.fatptr->Unsigned.uint32->_CI.fatptr->Unsigned.uint32->_CI.fatptr->Unsigned.uint32->int->int="posix_socket_1_getnameinfo_byte7""posix_socket_1_getnameinfo"externalposix_socket_2_getaddrinfo:_CI.fatptr->_CI.fatptr->_CI.fatptr->_CI.fatptr->int="posix_socket_2_getaddrinfo"externalposix_socket_3_freeaddrinfo:_CI.fatptr->unit="posix_socket_3_freeaddrinfo"externalposix_socket_4_getservbyname:_CI.fatptr->_CI.fatptr->CI.voidp="posix_socket_4_getservbyname"externalposix_socket_5_gai_strerror:int->CI.voidp="posix_socket_5_gai_strerror"externalposix_socket_6_strnlen:_CI.fatptr->Unsigned.size_t->Unsigned.size_t="posix_socket_6_strnlen"externalposix_socket_7_htonl:Unsigned.uint32->Unsigned.uint32="posix_socket_7_htonl"externalposix_socket_8_htons:Unsigned.uint16->Unsigned.uint16="posix_socket_8_htons"externalposix_socket_9_ntohs:Unsigned.uint16->Unsigned.uint16="posix_socket_9_ntohs"externalposix_socket_10_ntohl:Unsigned.uint32->Unsigned.uint32="posix_socket_10_ntohl"type'aresult='atype'areturn='atype'afn=|Returns:'aCI.typ->'areturnfn|Function:'aCI.typ*'bfn->('a->'b)fnletmap_resultfx=fxletreturningt=Returnstlet(@->)fp=Function(f,p)letforeign:typeab.string->(a->b)fn->(a->b)=funnamet->matcht,namewith|Function(CI.PrimitiveCI.Uint32_t,Returns(CI.PrimitiveCI.Uint32_t)),"ntohl"->posix_socket_10_ntohl|Function(CI.PrimitiveCI.Uint16_t,Returns(CI.PrimitiveCI.Uint16_t)),"ntohs"->posix_socket_9_ntohs|Function(CI.PrimitiveCI.Uint16_t,Returns(CI.PrimitiveCI.Uint16_t)),"htons"->posix_socket_8_htons|Function(CI.PrimitiveCI.Uint32_t,Returns(CI.PrimitiveCI.Uint32_t)),"htonl"->posix_socket_7_htonl|Function(CI.Pointer_,Function(CI.PrimitiveCI.Size_t,Returns(CI.PrimitiveCI.Size_t))),"strnlen"->(funx5x7->letCI.CPointerx6=x5inposix_socket_6_strnlenx6x7)|Function(CI.PrimitiveCI.Int,Returns(CI.View{CI.ty=CI.Pointerx9;read=x10;_})),"gai_strerror"->(funx8->x10(CI.make_ptrx9(posix_socket_5_gai_strerrorx8)))|Function(CI.Pointer_,Function(CI.Pointer_,Returns(CI.Pointerx15))),"getservbyname"->(funx11x13->letCI.CPointerx14=x13inletCI.CPointerx12=x11inCI.make_ptrx15(posix_socket_4_getservbynamex12x14))|Function(CI.Pointer_,ReturnsCI.Void),"freeaddrinfo"->(funx16->letCI.CPointerx17=x16inposix_socket_3_freeaddrinfox17)|Function(CI.View{CI.ty=CI.Pointer_;write=x19;_},Function(CI.Pointer_,Function(CI.Pointer_,Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int))))),"getaddrinfo"->(funx18x22x24x26->letCI.CPointerx27=x26inletCI.CPointerx25=x24inletCI.CPointerx23=x22inletCI.CPointerx21=x19x18inletx20=x21inposix_socket_2_getaddrinfox20x23x25x27)|Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Uint32_t;write=x31;_},Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Uint32_t;write=x36;_},Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Uint32_t;write=x41;_},Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Int)))))))),"getnameinfo"->(funx28x30x33x35x38x40x43->letCI.CPointerx39=x38inletCI.CPointerx34=x33inletCI.CPointerx29=x28inletx32=x31x30inletx37=x36x35inletx42=x41x40inposix_socket_1_getnameinfox29x32x34x37x39x42x43)|_,s->Printf.ksprintffailwith"No match for %s"sletforeign_value:typea.string->aCtypes.typ->aCtypes.ptr=funnamet->matcht,namewith|_,s->Printf.ksprintffailwith"No match for %s"s