Lines Matching refs:wrap
965 struct nsos_addrinfo_wrap *wrap = &nsos_res_wraps[idx_res]; in addrinfo_to_nsos_mid() local
967 wrap->addrinfo = res_p; in addrinfo_to_nsos_mid()
969 wrap->addrinfo_mid.ai_flags = res_p->ai_flags; in addrinfo_to_nsos_mid()
971 ret = socket_family_to_nsos_mid(res_p->ai_family, &wrap->addrinfo_mid.ai_family); in addrinfo_to_nsos_mid()
976 ret = socket_type_to_nsos_mid(res_p->ai_socktype, &wrap->addrinfo_mid.ai_socktype); in addrinfo_to_nsos_mid()
981 ret = socket_proto_to_nsos_mid(res_p->ai_protocol, &wrap->addrinfo_mid.ai_protocol); in addrinfo_to_nsos_mid()
986 wrap->addrinfo_mid.ai_addr = in addrinfo_to_nsos_mid()
987 (struct nsos_mid_sockaddr *)&wrap->addr_storage; in addrinfo_to_nsos_mid()
988 wrap->addrinfo_mid.ai_addrlen = sizeof(wrap->addr_storage); in addrinfo_to_nsos_mid()
991 wrap->addrinfo_mid.ai_addr, in addrinfo_to_nsos_mid()
992 &wrap->addrinfo_mid.ai_addrlen); in addrinfo_to_nsos_mid()
997 wrap->addrinfo_mid.ai_canonname = in addrinfo_to_nsos_mid()
999 wrap->addrinfo_mid.ai_next = &wrap[1].addrinfo_mid; in addrinfo_to_nsos_mid()
1069 struct nsos_addrinfo_wrap *wrap = in nsos_adapt_freeaddrinfo() local
1076 freeaddrinfo(wrap->addrinfo); in nsos_adapt_freeaddrinfo()
1077 free(wrap); in nsos_adapt_freeaddrinfo()