| /netbsd-src/external/bsd/unbound/dist/iterator/ |
| H A D | iter_hints.c | 56 struct iter_hints* hints = (struct iter_hints*)calloc(1, in hints_create() local 58 if(!hints) in hints_create() 60 return hints; in hints_create() 76 static void hints_del_tree(struct iter_hints* hints) in hints_del_tree() argument 78 traverse_postorder(&hints->tree, &delhintnode, NULL); in hints_del_tree() 82 hints_delete(struct iter_hints* hints) in hints_delete() argument 84 if(!hints) in hints_delete() 86 hints_del_tree(hints); in hints_delete() 87 free(hints); in hints_delete() 168 hints_insert(struct iter_hints* hints, uint16_t c, struct delegpt* dp, in hints_insert() argument [all …]
|
| H A D | iter_hints.h | 87 void hints_delete(struct iter_hints* hints); 95 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg); 103 struct delegpt* hints_lookup_root(struct iter_hints* hints, uint16_t qclass); 115 int hints_next_root(struct iter_hints* hints, uint16_t* qclass); 129 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints, 137 size_t hints_get_mem(struct iter_hints* hints); 149 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, 159 void hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm);
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| H A D | getaddrinfo.c | 46 const struct addrinfo *hints, in get_port_protocol_socktype() argument 56 if (hints != NULL && hints->ai_protocol != 0) { in get_port_protocol_socktype() 57 struct protoent *protoent = getprotobynumber (hints->ai_protocol); in get_port_protocol_socktype() 66 if (hints != NULL) in get_port_protocol_socktype() 67 *socktype = hints->ai_socktype; in get_port_protocol_socktype() 182 get_null (const struct addrinfo *hints, in get_null() argument 195 if (hints != NULL) in get_null() 196 family = hints->ai_family; in get_null() 198 if (hints && hints->ai_flags & AI_PASSIVE) { in get_null() 276 const struct addrinfo *hints, in get_number() argument [all …]
|
| /netbsd-src/external/bsd/less/dist/ |
| H A D | scrsize.c | 57 XSizeHints hints; local 62 if (!XGetWMNormalHints(dpy, window, &hints, &longjunk)) 64 if (!(hints.flags & PResizeInc)) 66 if (hints.width_inc == 0 || hints.height_inc == 0) 68 if (!(hints.flags & (PBaseSize|PMinSize))) 70 if (hints.flags & PBaseSize) 72 win_attributes.width -= hints.base_width; 73 win_attributes.height -= hints.base_height; 76 win_attributes.width -= hints.min_width; 77 win_attributes.height -= hints.min_height; [all …]
|
| /netbsd-src/external/gpl2/xcvs/dist/lib/ |
| H A D | getaddrinfo.c | 64 const struct addrinfo *restrict hints, in getaddrinfo() argument 72 if (hints && (hints->ai_flags & ~AI_CANONNAME)) in getaddrinfo() 76 if (hints && !validate_family (hints->ai_family)) in getaddrinfo() 79 if (hints && in getaddrinfo() 80 hints->ai_socktype != SOCK_STREAM && hints->ai_socktype != SOCK_DGRAM) in getaddrinfo() 91 (hints && hints->ai_socktype == SOCK_DGRAM) ? "udp" : "tcp"; in getaddrinfo() 172 if (hints && hints->ai_flags & AI_CANONNAME) in getaddrinfo() 188 tmp->ai_protocol = (hints) ? hints->ai_protocol : 0; in getaddrinfo() 189 tmp->ai_socktype = (hints) ? hints->ai_socktype : 0; in getaddrinfo()
|
| /netbsd-src/usr.bin/getaddrinfo/ |
| H A D | getaddrinfo.c | 65 struct addrinfo hints = zero_addrinfo; in main() local 73 hints.ai_family = AF_UNSPEC; in main() 74 hints.ai_socktype = 0; in main() 75 hints.ai_protocol = 0; in main() 76 hints.ai_flags = 0; in main() 81 hints.ai_flags |= AI_CANONNAME; in main() 84 if (!parse_af(optarg, &hints.ai_family)) { in main() 90 hints.ai_flags |= AI_NUMERICHOST; in main() 93 hints.ai_flags |= AI_NUMERICSERV; in main() 99 if (!parse_protocol(optarg, &hints.ai_protocol)) { in main() [all …]
|
| /netbsd-src/lib/libwrap/ |
| H A D | socket.c | 156 struct addrinfo hints, *res, *res0; in sock_hostname() local 186 memset(&hints, 0, sizeof(hints)); in sock_hostname() 187 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in sock_hostname() 188 hints.ai_flags = AI_NUMERICHOST; in sock_hostname() 190 if (getaddrinfo(append_dot(host->name), "0", &hints, &res0) == 0) in sock_hostname() 192 if (getaddrinfo(host->name, "0", &hints, &res0) == 0) in sock_hostname() 214 memset(&hints, 0, sizeof(hints)); in sock_hostname() 215 hints.ai_family = sa->sa_family; in sock_hostname() 216 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in sock_hostname() 217 hints.ai_flags = AI_CANONNAME; in sock_hostname() [all …]
|
| /netbsd-src/external/bsd/libevent/dist/test/ |
| H A D | regress_util.c | 1006 struct evutil_addrinfo hints; in test_evutil_getaddrinfo() local 1010 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1011 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo() 1012 hints.ai_socktype = SOCK_STREAM; in test_evutil_getaddrinfo() 1013 r = evutil_getaddrinfo("1.2.3.4", "8080", &hints, &ai); in test_evutil_getaddrinfo() 1021 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1022 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo() 1023 hints.ai_protocol = IPPROTO_UDP; in test_evutil_getaddrinfo() 1024 r = evutil_getaddrinfo("1001:b0b::f00f", "4321", &hints, &ai); in test_evutil_getaddrinfo() 1033 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | ipa-inline-analysis.cc | 63 ipa_hints hints; member in node_context_cache_entry 159 int hints = 0; in simple_edge_hints() local 167 hints |= INLINE_HINT_same_scc; in simple_edge_hints() 170 hints |= INLINE_HINT_cross_module; in simple_edge_hints() 172 return hints; in simple_edge_hints() 187 ipa_hints hints; in do_estimate_edge_time() local 209 hints = e->entry.hints; in do_estimate_edge_time() 219 && chk_estimates.hints == hints); in do_estimate_edge_time() 237 hints = estimates.hints; in do_estimate_edge_time() 238 e->entry.hints = hints; in do_estimate_edge_time() [all …]
|
| /netbsd-src/external/bsd/libevent/dist/ |
| H A D | evutil.c | 837 const struct evutil_addrinfo *hints) in evutil_new_addrinfo_() argument 840 EVUTIL_ASSERT(hints); in evutil_new_addrinfo_() 842 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_() 846 memcpy(&tmp, hints, sizeof(tmp)); in evutil_new_addrinfo_() 871 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo_() 872 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_() 911 const struct evutil_addrinfo *hints) in evutil_parse_servname() argument 917 if (!(hints->ai_flags & EVUTIL_AI_NUMERICSERV)) { in evutil_parse_servname() 956 evutil_getaddrinfo_infer_protocols(struct evutil_addrinfo *hints) in evutil_getaddrinfo_infer_protocols() argument 959 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols() [all …]
|
| /netbsd-src/external/bsd/unbound/dist/compat/ |
| H A D | fake-rfc2553.c | 119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument 136 if (hints->ai_socktype) in malloc_ai() 137 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 141 if (hints->ai_protocol) in malloc_ai() 142 ai->ai_protocol = hints->ai_protocol; in malloc_ai() 149 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 171 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo() 175 *res = malloc_ai(port, addr, hints); in getaddrinfo() 182 *res = malloc_ai(port, htonl(0x7f000001), hints); in getaddrinfo() 189 *res = malloc_ai(port, in.s_addr, hints); in getaddrinfo() [all …]
|
| /netbsd-src/external/bsd/nsd/dist/compat/ |
| H A D | fake-rfc2553.c | 119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument 136 if (hints->ai_socktype) in malloc_ai() 137 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 141 if (hints->ai_protocol) in malloc_ai() 142 ai->ai_protocol = hints->ai_protocol; in malloc_ai() 149 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 171 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo() 175 *res = malloc_ai(port, addr, hints); in getaddrinfo() 182 *res = malloc_ai(port, htonl(0x7f000001), hints); in getaddrinfo() 189 *res = malloc_ai(port, in.s_addr, hints); in getaddrinfo() [all …]
|
| /netbsd-src/external/bsd/ntp/dist/libntp/ |
| H A D | ntp_rfc2553.c | 280 const struct addrinfo *hints); 284 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 307 if (hints != NULL) { in getaddrinfo() 308 ai->ai_flags = hints->ai_flags; in getaddrinfo() 309 ai->ai_family = hints->ai_family; in getaddrinfo() 310 ai->ai_socktype = hints->ai_socktype; in getaddrinfo() 311 ai->ai_protocol = hints->ai_protocol; in getaddrinfo() 313 family = hints->ai_family; in getaddrinfo() 314 socktype = hints->ai_socktype; in getaddrinfo() 315 protocol = hints->ai_protocol; in getaddrinfo() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | ipa-inline-analysis.c | 63 ipa_hints hints; variable 156 int hints = 0; in simple_edge_hints() local 164 hints |= INLINE_HINT_same_scc; in simple_edge_hints() 167 hints |= INLINE_HINT_cross_module; in simple_edge_hints() 169 return hints; in simple_edge_hints() 184 ipa_hints hints; in do_estimate_edge_time() local 210 hints = e->entry.hints; in do_estimate_edge_time() 224 && chk_hints == hints); in do_estimate_edge_time() 235 &time, &nonspec_time, &hints); in do_estimate_edge_time() 239 e->entry.hints = hints; in do_estimate_edge_time() [all …]
|
| /netbsd-src/external/mpl/bind/dist/lib/bind9/ |
| H A D | getaddresses.c | |
| /netbsd-src/external/mit/libuv/dist/src/unix/ |
| H A D | getaddrinfo.c | 103 err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo); in uv__getaddrinfo_work() 115 if (req->hints) in uv__getaddrinfo_done() 116 uv__free(req->hints); in uv__getaddrinfo_done() 124 req->hints = NULL; in uv__getaddrinfo_done() 143 const struct addrinfo* hints) { in uv_getaddrinfo() argument 174 hints_len = hints ? sizeof(*hints) : 0; in uv_getaddrinfo() 184 req->hints = NULL; in uv_getaddrinfo() 192 if (hints) { in uv_getaddrinfo() 193 req->hints = memcpy(buf + len, hints, sizeof(*hints)); in uv_getaddrinfo() 194 len += sizeof(*hints); in uv_getaddrinfo()
|
| /netbsd-src/external/gpl3/gcc/dist/libcody/ |
| H A D | netclient.cc | 95 addrinfo hints; in OpenInet6() local 96 hints.ai_flags = 0; in OpenInet6() 97 hints.ai_family = AF_INET6; in OpenInet6() 98 hints.ai_socktype = SOCK_STREAM; in OpenInet6() 99 hints.ai_protocol = 0; in OpenInet6() 100 hints.ai_addrlen = 0; in OpenInet6() 101 hints.ai_addr = nullptr; in OpenInet6() 102 hints.ai_canonname = nullptr; in OpenInet6() 103 hints.ai_next = nullptr; in OpenInet6() 105 if (int err = getaddrinfo (name, nullptr, &hints, &addrs)) in OpenInet6()
|
| H A D | netserver.cc | 102 addrinfo hints; in ListenInet6() local 103 hints.ai_flags = AI_NUMERICSERV; in ListenInet6() 104 hints.ai_family = AF_INET6; in ListenInet6() 105 hints.ai_socktype = SOCK_STREAM; in ListenInet6() 106 hints.ai_protocol = 0; in ListenInet6() 107 hints.ai_addrlen = 0; in ListenInet6() 108 hints.ai_addr = nullptr; in ListenInet6() 109 hints.ai_canonname = nullptr; in ListenInet6() 110 hints.ai_next = nullptr; in ListenInet6() 114 if (int err = getaddrinfo (name, "0", &hints, &addrs)) in ListenInet6()
|
| /netbsd-src/external/bsd/unbound/dist/testdata/07-confroot.tdir/ |
| H A D | 07-confroot.test | 26 root-hints: "root.ca" 27 root-hints: "$subdir/root.cb" 28 root-hints: "/subdir/root.cc" 71 root-hints: "root.ca" 72 root-hints: "$subdir/root.cb" 73 root-hints: "/subdir/root.cc" 102 root-hints: "root.ca" 103 root-hints: "$subdir/root.cb" 104 root-hints: "/subdir/root.cc" 133 root-hints: "root.ca" [all …]
|
| /netbsd-src/lib/libc/net/ |
| H A D | rcmd.c | 101 struct addrinfo hints, *res; in rcmd_af() local 112 memset(&hints, 0, sizeof(hints)); in rcmd_af() 113 hints.ai_family = af; in rcmd_af() 114 hints.ai_socktype = SOCK_STREAM; in rcmd_af() 115 hints.ai_flags = AI_CANONNAME; in rcmd_af() 116 error = getaddrinfo(*ahost, pbuf, &hints, &res); in rcmd_af() 160 struct addrinfo hints, *res; in orcmd_af() local 170 memset(&hints, 0, sizeof(hints)); in orcmd_af() 171 hints.ai_family = af; in orcmd_af() 172 hints.ai_socktype = SOCK_STREAM; in orcmd_af() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| H A D | expand_hostname.c | 70 struct addrinfo *ai, *a, hints; in krb5_expand_hostname() local 76 memset (&hints, 0, sizeof(hints)); in krb5_expand_hostname() 77 hints.ai_flags = AI_CANONNAME; in krb5_expand_hostname() 79 error = getaddrinfo (orig_hostname, NULL, &hints, &ai); in krb5_expand_hostname() 145 struct addrinfo *ai, *a, hints; in krb5_expand_hostname_realms() local 153 memset (&hints, 0, sizeof(hints)); in krb5_expand_hostname_realms() 154 hints.ai_flags = AI_CANONNAME; in krb5_expand_hostname_realms() 156 error = getaddrinfo (orig_hostname, NULL, &hints, &ai); in krb5_expand_hostname_realms()
|
| /netbsd-src/tests/net/ipsec/ |
| H A D | natt_terminator.c | 55 struct addrinfo hints; in main() local 86 memset(&hints, 0, sizeof(hints)); in main() 87 hints.ai_family = family; in main() 88 hints.ai_socktype = SOCK_DGRAM; in main() 89 hints.ai_protocol = IPPROTO_UDP; in main() 90 hints.ai_flags = 0; in main() 92 e = getaddrinfo(addr, port, &hints, &res); in main()
|
| /netbsd-src/usr.bin/whois/ |
| H A D | whois.c | 184 struct addrinfo hints, *res, *ai; in whois() local 186 (void)memset(&hints, 0, sizeof(hints)); in whois() 187 hints.ai_flags = 0; in whois() 188 hints.ai_family = AF_UNSPEC; in whois() 189 hints.ai_socktype = SOCK_STREAM; in whois() 190 error = getaddrinfo(server, port, &hints, &res); in whois() 306 struct addrinfo hints, *res = NULL; in choose_server() local 308 (void)memset(&hints, 0, sizeof(hints)); in choose_server() 309 hints.ai_flags = 0; in choose_server() 310 hints.ai_family = AF_UNSPEC; in choose_server() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/vboxvideo/ |
| H A D | vbox_irq.c | 117 struct vbva_modehint *hints; in vbox_update_mode_hints() local 137 hints = &vbox->last_mode_hints[vbox_conn->vbox_crtc->crtc_id]; in vbox_update_mode_hints() 138 if (hints->magic != VBVAMODEHINT_MAGIC) in vbox_update_mode_hints() 141 disconnected = !(hints->enabled); in vbox_update_mode_hints() 143 vbox_conn->mode_hint.width = hints->cx; in vbox_update_mode_hints() 144 vbox_conn->mode_hint.height = hints->cy; in vbox_update_mode_hints() 145 vbox_conn->vbox_crtc->x_hint = hints->dx; in vbox_update_mode_hints() 146 vbox_conn->vbox_crtc->y_hint = hints->dy; in vbox_update_mode_hints() 158 hints->cx * 4, hints->cx, in vbox_update_mode_hints() 159 hints->cy, 0, flags); in vbox_update_mode_hints()
|
| /netbsd-src/lib/libform/ |
| H A D | type_ipv6.c | 57 struct addrinfo hints, *res; in ipv6_check_field() local 63 memset(&hints, 0, sizeof(hints)); in ipv6_check_field() 64 hints.ai_family = AF_INET6; in ipv6_check_field() 65 hints.ai_socktype = SOCK_DGRAM; /* dummy */ in ipv6_check_field() 66 hints.ai_flags = AI_NUMERICHOST; in ipv6_check_field() 68 if (getaddrinfo(args, "0", &hints, &res) != 0) { in ipv6_check_field()
|