Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file posix_socket_generated_stubs.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110moduleCI=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_strnlen:_CI.fatptr->Unsigned.size_t->Unsigned.size_t="posix_socket_5_strnlen"externalposix_socket_6_htonl:Unsigned.uint32->Unsigned.uint32="posix_socket_6_htonl"externalposix_socket_7_htons:Unsigned.uint16->Unsigned.uint16="posix_socket_7_htons"externalposix_socket_8_ntohs:Unsigned.uint16->Unsigned.uint16="posix_socket_8_ntohs"externalposix_socket_9_ntohl:Unsigned.uint32->Unsigned.uint32="posix_socket_9_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_9_ntohl|Function(CI.PrimitiveCI.Uint16_t,Returns(CI.PrimitiveCI.Uint16_t)),"ntohs"->posix_socket_8_ntohs|Function(CI.PrimitiveCI.Uint16_t,Returns(CI.PrimitiveCI.Uint16_t)),"htons"->posix_socket_7_htons|Function(CI.PrimitiveCI.Uint32_t,Returns(CI.PrimitiveCI.Uint32_t)),"htonl"->posix_socket_6_htonl|Function(CI.Pointer_,Function(CI.PrimitiveCI.Size_t,Returns(CI.PrimitiveCI.Size_t))),"strnlen"->(funx5x7->letCI.CPointerx6=x5inposix_socket_5_strnlenx6x7)|Function(CI.Pointer_,Function(CI.Pointer_,Returns(CI.Pointerx12))),"getservbyname"->(funx8x10->letCI.CPointerx11=x10inletCI.CPointerx9=x8inCI.make_ptrx12(posix_socket_4_getservbynamex9x11))|Function(CI.Pointer_,ReturnsCI.Void),"freeaddrinfo"->(funx13->letCI.CPointerx14=x13inposix_socket_3_freeaddrinfox14)|Function(CI.View{CI.ty=CI.Pointer_;write=x16;_},Function(CI.View{CI.ty=CI.Pointer_;write=x20;_},Function(CI.Pointer_,Function(CI.Pointer_,Returns(CI.PrimitiveCI.Int))))),"getaddrinfo"->(funx15x19x23x25->letCI.CPointerx26=x25inletCI.CPointerx24=x23inletCI.CPointerx22=x20x19inletCI.CPointerx18=x16x15inletx17=x18inletx21=x22inposix_socket_2_getaddrinfox17x21x24x26)|Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Uint32_t;write=x30;_},Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Uint32_t;write=x35;_},Function(CI.Pointer_,Function(CI.View{CI.ty=CI.PrimitiveCI.Uint32_t;write=x40;_},Function(CI.PrimitiveCI.Int,Returns(CI.PrimitiveCI.Int)))))))),"getnameinfo"->(funx27x29x32x34x37x39x42->letCI.CPointerx38=x37inletCI.CPointerx33=x32inletCI.CPointerx28=x27inletx31=x30x29inletx36=x35x34inletx41=x40x39inposix_socket_1_getnameinfox28x31x33x36x38x41x42)|_,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