1 function psi\endhostent() : void {
2 return void(endhostent);
4 function psi\endnetend() : void {
5 return void(endnetent);
7 function psi\endprotoent() : void {
8 return void(endprotoent);
10 function psi\endservent() : void {
11 return void(endservent);
14 function psi\gai_strerror(int $errcode) : string {
15 let errcode = intval($errcode);
16 return to_string(gai_strerror);
19 function psi\getaddrinfo(string $node, string $service, array $hints, object &$res = NULL) : int {
20 let node = strval($node);
21 let service = strval($service);
22 let hints = arrval($hints);
24 return to_int(getaddrinfo);
25 set $res = to_array(*res,
31 to_string(ai_addr, ai_addrlen),
32 to_string(ai_canonname),
33 to_array(ai_next, ...)
35 free freeaddrinfo(res);