Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 127) sorted by relevance

123456

/dragonfly/sbin/nfsd/
H A Dnfsd.c244 memset(&hints, 0, sizeof hints); in main()
263 memset(&hints, 0, sizeof hints); in main()
282 memset(&hints, 0, sizeof hints); in main()
301 memset(&hints, 0, sizeof hints); in main()
355 memset(&hints, 0, sizeof hints); in main()
389 memset(&hints, 0, sizeof hints); in main()
416 memset(&hints, 0, sizeof hints); in main()
458 memset(&hints, 0, sizeof hints); in main()
485 memset(&hints, 0, sizeof hints); in main()
523 memset(&hints, 0, sizeof hints); in main()
[all …]
/dragonfly/usr.sbin/lpr/common_source/
H A Dnet.c96 memset(&hints, 0, sizeof(hints)); in getport()
97 hints.ai_family = family; in getport()
98 hints.ai_socktype = SOCK_STREAM; in getport()
99 hints.ai_protocol = 0; in getport()
101 &hints, &res); in getport()
199 memset(&hints, 0, sizeof(hints)); in checkremote()
200 hints.ai_family = family; in checkremote()
202 hints.ai_flags = AI_PASSIVE; in checkremote()
211 memset(&hints, 0, sizeof(hints)); in checkremote()
212 hints.ai_family = family; in checkremote()
[all …]
/dragonfly/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c62 struct addrinfo hints = zero_addrinfo; in main() local
70 hints.ai_family = AF_UNSPEC; in main()
71 hints.ai_socktype = 0; in main()
72 hints.ai_protocol = 0; in main()
73 hints.ai_flags = 0; in main()
78 hints.ai_flags |= AI_CANONNAME; in main()
82 if (!parse_af(optarg, &hints.ai_family)) { in main()
89 hints.ai_flags |= AI_NUMERICHOST; in main()
93 hints.ai_flags |= AI_NUMERICSERV; in main()
108 hints.ai_flags |= AI_PASSIVE; in main()
[all …]
/dragonfly/usr.sbin/rpc.lockd/
H A Dlockd.c301 memset(&hints, 0, sizeof hints); in create_service()
302 hints.ai_flags = AI_PASSIVE; in create_service()
303 hints.ai_family = si.si_af; in create_service()
305 hints.ai_protocol = si.si_proto; in create_service()
323 switch (hints.ai_family) { in create_service()
366 res->ai_flags = hints.ai_flags; in create_service()
396 &hints, &res)) != 0) { in create_service()
406 &hints, &res)) != 0) { in create_service()
454 memset(&hints, 0, sizeof hints); in create_service()
455 hints.ai_flags = AI_PASSIVE; in create_service()
[all …]
/dragonfly/contrib/libpcap/
H A Dnametoaddr.c200 struct addrinfo hints, *res; in pcap_nametoaddrinfo() local
203 memset(&hints, 0, sizeof(hints)); in pcap_nametoaddrinfo()
204 hints.ai_family = PF_UNSPEC; in pcap_nametoaddrinfo()
339 memset(&hints, 0, sizeof(hints)); in pcap_nametoport()
340 hints.ai_family = PF_UNSPEC; in pcap_nametoport()
341 hints.ai_socktype = SOCK_STREAM; in pcap_nametoport()
342 hints.ai_protocol = IPPROTO_TCP; in pcap_nametoport()
383 memset(&hints, 0, sizeof(hints)); in pcap_nametoport()
384 hints.ai_family = PF_UNSPEC; in pcap_nametoport()
385 hints.ai_socktype = SOCK_DGRAM; in pcap_nametoport()
[all …]
/dragonfly/contrib/tcp_wrappers/
H A Dscaffold.c86 struct addrinfo hints, *res; local
88 memset(&hints, 0, sizeof(hints));
89 hints.ai_family = PF_UNSPEC;
90 hints.ai_socktype = SOCK_STREAM;
91 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
92 if (getaddrinfo(host, NULL, &hints, &res) == 0)
95 memset(&hints, 0, sizeof(hints));
96 hints.ai_family = PF_UNSPEC;
97 hints.ai_socktype = SOCK_STREAM;
98 hints.ai_flags = AI_PASSIVE | AI_CANONNAME;
[all …]
H A Dhosts_access.c344 struct addrinfo hints, *res; local
353 memset(&hints, 0, sizeof(hints));
354 hints.ai_family = AF_INET6;
355 hints.ai_socktype = SOCK_STREAM;
356 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
434 struct addrinfo hints, *res; local
440 memset(&hints, 0, sizeof(hints));
441 hints.ai_family = AF_INET6;
442 hints.ai_socktype = SOCK_STREAM;
443 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
[all …]
H A Dsocket.c175 struct addrinfo hints, *res, *res0 = NULL; local
217 memset(&hints, 0, sizeof(hints));
218 hints.ai_family = sin->sa_family;
219 hints.ai_socktype = SOCK_STREAM;
220 hints.ai_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST;
221 if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) {
246 memset(&hints, 0, sizeof(hints));
247 hints.ai_family = sin->sa_family;
248 hints.ai_socktype = SOCK_STREAM;
249 hints.ai_flags = AI_PASSIVE | AI_CANONNAME;
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
H A Dipa-inline-analysis.c124 int hints = 0; in simple_edge_hints() local
132 hints |= INLINE_HINT_same_scc; in simple_edge_hints()
139 return hints; in simple_edge_hints()
154 ipa_hints hints; in do_estimate_edge_time() local
182 hints |= INLINE_HINT_known_hot; in do_estimate_edge_time()
201 edge_growth_cache[edge->uid].hints = hints + 1; in do_estimate_edge_time()
254 ipa_hints hints; in do_estimate_edge_hints() local
266 hints = edge_growth_cache[edge->uid].hints; in do_estimate_edge_hints()
267 gcc_checking_assert (hints); in do_estimate_edge_hints()
268 return hints - 1; in do_estimate_edge_hints()
[all …]
H A Dipa-inline.h30 ipa_hints hints; member
33 : size (0), hints (0) {} in edge_growth_cache_entry()
36 int size, ipa_hints hints) in edge_growth_cache_entry()
38 hints (hints) {} in edge_growth_cache_entry()
114 || !(ret = edge_growth_cache[edge->uid].hints)) in estimate_edge_hints()
/dragonfly/lib/libc/net/
H A Drcmdsh.c66 struct addrinfo hints, *res; in rcmdsh() local
86 memset(&hints, 0, sizeof(hints)); in rcmdsh()
87 hints.ai_flags = AI_CANONNAME; in rcmdsh()
88 hints.ai_family = PF_UNSPEC; in rcmdsh()
89 hints.ai_socktype = SOCK_STREAM; in rcmdsh()
91 error = getaddrinfo(*ahost, num, &hints, &res); in rcmdsh()
H A Drcmd.c82 struct addrinfo hints, *res, *ai; in rcmd_af() local
113 memset(&hints, 0, sizeof(hints)); in rcmd_af()
114 hints.ai_flags = AI_CANONNAME; in rcmd_af()
115 hints.ai_family = af; in rcmd_af()
116 hints.ai_socktype = SOCK_STREAM; in rcmd_af()
117 hints.ai_protocol = 0; in rcmd_af()
370 struct addrinfo hints, *res, *r; in ruserok() local
373 memset(&hints, 0, sizeof(hints)); in ruserok()
374 hints.ai_family = PF_UNSPEC; in ruserok()
683 struct addrinfo hints, *res, *r; in __icheckhost() local
[all …]
/dragonfly/usr.sbin/dntpd/
H A Dsocket.c43 struct addrinfo hints, *res, *res0; in udp_socket() local
50 memset(&hints, 0, sizeof(hints)); in udp_socket()
51 hints.ai_family = family; in udp_socket()
52 hints.ai_socktype = SOCK_DGRAM; in udp_socket()
54 error = getaddrinfo(target, servname, &hints, &res0); in udp_socket()
/dragonfly/usr.sbin/lpr/lpd/
H A Dlpd.c643 struct addrinfo hints, *res, *r; in chkhost() local
699 memset(&hints, 0, sizeof(hints)); in chkhost()
700 hints.ai_family = family; in chkhost()
701 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in chkhost()
715 memset(&hints, 0, sizeof(hints)); in chkhost()
716 hints.ai_family = family; in chkhost()
848 struct addrinfo hints, *res, *r; in socksetup() local
852 memset(&hints, 0, sizeof(hints)); in socksetup()
853 hints.ai_flags = AI_PASSIVE; in socksetup()
854 hints.ai_family = af; in socksetup()
[all …]
/dragonfly/crypto/libressl/tls/
H A Dtls_client.c62 struct addrinfo hints, *res, *res0; in tls_connect_servername() local
102 memset(&hints, 0, sizeof(hints)); in tls_connect_servername()
103 hints.ai_socktype = SOCK_STREAM; in tls_connect_servername()
106 hints.ai_family = AF_INET; in tls_connect_servername()
107 hints.ai_flags = AI_NUMERICHOST; in tls_connect_servername()
108 if (getaddrinfo(h, p, &hints, &res0) != 0) { in tls_connect_servername()
110 hints.ai_family = AF_INET6; in tls_connect_servername()
111 if (getaddrinfo(h, p, &hints, &res0) != 0) { in tls_connect_servername()
113 hints.ai_family = AF_UNSPEC; in tls_connect_servername()
114 hints.ai_flags = AI_ADDRCONFIG; in tls_connect_servername()
[all …]
/dragonfly/contrib/gcc-8.0/gcc/c-family/
H A Dknown-headers.cc59 static const stdlib_hint hints[] = { in get_stdlib_header_for_name() local
149 const size_t num_hints = sizeof (hints) / sizeof (hints[0]); in get_stdlib_header_for_name()
151 if (strcmp (name, hints[i].name) == 0) in get_stdlib_header_for_name()
152 return hints[i].header[lib]; in get_stdlib_header_for_name()
/dragonfly/tools/tools/netrate/netblast/
H A Dnetblast.c145 struct addrinfo hints, *res, *res0; in main() local
153 memset(&hints, 0, sizeof(hints)); in main()
154 hints.ai_family = PF_UNSPEC; in main()
155 hints.ai_socktype = SOCK_DGRAM; in main()
188 error = getaddrinfo(argv[1],argv[2], &hints, &res0); in main()
/dragonfly/crypto/openssh/
H A Daddr.c307 struct addrinfo hints, *ai; in addr_pton() local
309 memset(&hints, '\0', sizeof(hints)); in addr_pton()
310 hints.ai_flags = AI_NUMERICHOST; in addr_pton()
312 if (p == NULL || getaddrinfo(p, NULL, &hints, &ai) != 0) in addr_pton()
336 struct addrinfo hints, *ai; in addr_sa_pton() local
338 memset(&hints, '\0', sizeof(hints)); in addr_sa_pton()
339 hints.ai_flags = AI_NUMERICHOST; in addr_sa_pton()
341 if (h == NULL || getaddrinfo(h, s, &hints, &ai) != 0) in addr_sa_pton()
/dragonfly/usr.sbin/rip6query/
H A Drip6query.c84 struct addrinfo hints, *res; in main() local
116 memset(&hints, 0, sizeof(hints)); in main()
117 hints.ai_family = AF_INET6; in main()
118 hints.ai_socktype = SOCK_DGRAM; in main()
119 error = getaddrinfo(argv[0], pbuf, &hints, &res); in main()
/dragonfly/libexec/dma/
H A Ddns.c68 struct addrinfo hints, *res, *res0 = NULL; in add_host() local
73 memset(&hints, 0, sizeof(hints)); in add_host()
74 hints.ai_family = PF_UNSPEC; in add_host()
75 hints.ai_socktype = SOCK_STREAM; in add_host()
76 hints.ai_protocol = IPPROTO_TCP; in add_host()
79 switch (getaddrinfo(host, servname, &hints, &res0)) { in add_host()
/dragonfly/usr.bin/logger/
H A Dlogger.c163 struct addrinfo hints, *res, *r; in logmessage() local
174 memset(&hints, 0, sizeof(hints)); in logmessage()
175 hints.ai_family = family; in logmessage()
176 hints.ai_socktype = SOCK_DGRAM; in logmessage()
177 error = getaddrinfo(host, "syslog", &hints, &res); in logmessage()
180 error = getaddrinfo(host, "514", &hints, &res); in logmessage()
/dragonfly/lib/libutil/
H A Drealhostname.c130 struct addrinfo hints, *res, *ores; in realhostname_sa() local
133 memset(&hints, 0, sizeof(struct addrinfo)); in realhostname_sa()
134 hints.ai_family = addr->sa_family; in realhostname_sa()
135 hints.ai_flags = AI_CANONNAME | AI_PASSIVE; in realhostname_sa()
136 hints.ai_socktype = SOCK_STREAM; in realhostname_sa()
138 error = getaddrinfo(buf, NULL, &hints, &res); in realhostname_sa()
/dragonfly/usr.sbin/rpcbind/
H A Drpcbind.c232 struct addrinfo hints, *res = NULL; in init_transport() local
299 memset(&hints, 0, sizeof hints); in init_transport()
300 hints.ai_flags = AI_PASSIVE; in init_transport()
301 hints.ai_family = si.si_af; in init_transport()
302 hints.ai_socktype = si.si_socktype; in init_transport()
303 hints.ai_protocol = si.si_proto; in init_transport()
318 if (hints.ai_family == AF_INET) { in init_transport()
344 switch (hints.ai_family) { in init_transport()
348 hints.ai_flags &= AI_NUMERICHOST; in init_transport()
363 hints.ai_flags &= AI_NUMERICHOST; in init_transport()
[all …]
/dragonfly/crypto/libressl/apps/nc/
H A Dsocks.c66 struct addrinfo hints, *res; in decode_addrport() local
68 memset(&hints, 0, sizeof(hints)); in decode_addrport()
69 hints.ai_family = v4only ? PF_INET : PF_UNSPEC; in decode_addrport()
70 hints.ai_flags = numeric ? AI_NUMERICHOST : 0; in decode_addrport()
71 hints.ai_socktype = SOCK_STREAM; in decode_addrport()
72 r = getaddrinfo(h, p, &hints, &res); in decode_addrport()
178 struct addrinfo hints __attribute__ ((__unused__)), in socks_connect() argument
/dragonfly/usr.bin/whois/
H A Dwhois.c220 struct addrinfo hints, *res; in gethostinfo() local
223 memset(&hints, 0, sizeof(hints)); in gethostinfo()
224 hints.ai_flags = 0; in gethostinfo()
225 hints.ai_family = AF_UNSPEC; in gethostinfo()
226 hints.ai_socktype = SOCK_STREAM; in gethostinfo()
227 error = getaddrinfo(host, port, &hints, &res); in gethostinfo()

123456