`module CI = Cstubs_internals`

`val posix_socket_1_getnameinfo : (_, _) CI.fatptr -> Unsigned.uint32 -> (_, _) CI.fatptr -> Unsigned.uint32 -> (_, _) CI.fatptr -> Unsigned.uint32 -> int -> int`
`val posix_socket_2_getaddrinfo : (_, _) CI.fatptr -> (_, _) CI.fatptr -> (_, _) CI.fatptr -> (_, _) CI.fatptr -> int`
`val posix_socket_3_freeaddrinfo : (_, _) CI.fatptr -> unit`
`val posix_socket_4_getservbyname : (_, _) CI.fatptr -> (_, _) CI.fatptr -> CI.voidp`
`val posix_socket_5_strnlen : (_, _) CI.fatptr -> Unsigned.size_t -> Unsigned.size_t`
`val posix_socket_6_htonl : Unsigned.uint32 -> Unsigned.uint32`
`val posix_socket_7_htons : Unsigned.uint16 -> Unsigned.uint16`
`val posix_socket_8_ntohs : Unsigned.uint16 -> Unsigned.uint16`
`val posix_socket_9_ntohl : Unsigned.uint32 -> Unsigned.uint32`

`type 'a result``= 'a`
`type 'a return``= 'a`
`type 'a fn``=`

`|` `Returns : 'a CI.typ -> 'a return fn`
`|` `Function : 'a CI.typ * 'b fn -> ('a -> 'b) fn`

`val map_result : ('a -> 'b) -> 'a -> 'b`
`val returning : 'a CI.typ -> 'a return fn`
`val (@->) : 'a CI.typ -> 'b fn -> ('a -> 'b) fn`
`val foreign : a b. string -> ('a -> 'b) fn -> 'a -> 'b`
`val foreign_value : a. string -> 'a Ctypes.typ -> 'a Ctypes.ptr`