Home
last modified time | relevance | path

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

12345678910>>...15

/openbsd-src/sbin/unwind/libunbound/iterator/
H A Diter_hints.c56 struct iter_hints* hints = (struct iter_hints*)calloc(1, in hints_create() local
58 if(!hints) in hints_create()
60 lock_rw_init(&hints->lock); in hints_create()
61 lock_protect(&hints->lock, &hints->tree, sizeof(hints->tree)); in hints_create()
62 return hints; in hints_create()
78 static void hints_del_tree(struct iter_hints* hints) in hints_del_tree() argument
80 traverse_postorder(&hints->tree, &delhintnode, NULL); in hints_del_tree()
84 hints_delete(struct iter_hints* hints) in hints_delete() argument
86 if(!hints) in hints_delete()
88 lock_rw_destroy(&hints->lock); in hints_delete()
[all …]
H A Diter_hints.h92 void hints_delete(struct iter_hints* hints);
100 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg);
115 struct delegpt* hints_find(struct iter_hints* hints, uint8_t* qname,
125 struct delegpt* hints_find_root(struct iter_hints* hints,
141 int hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock);
161 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints,
170 size_t hints_get_mem(struct iter_hints* hints);
185 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp,
198 void hints_delete_stub(struct iter_hints* hints, uint16_t c,
/openbsd-src/usr.sbin/unbound/iterator/
H A Diter_hints.c56 struct iter_hints* hints = (struct iter_hints*)calloc(1, in hints_create() local
58 if(!hints) in hints_create()
60 lock_rw_init(&hints->lock); in hints_create()
61 lock_protect(&hints->lock, &hints->tree, sizeof(hints->tree)); in hints_create()
62 return hints; in hints_create()
78 static void hints_del_tree(struct iter_hints* hints) in hints_del_tree() argument
80 traverse_postorder(&hints->tree, &delhintnode, NULL); in hints_del_tree()
84 hints_delete(struct iter_hints* hints) in hints_delete() argument
86 if(!hints) in hints_delete()
88 lock_rw_destroy(&hints->lock); in hints_delete()
[all …]
H A Diter_hints.h92 void hints_delete(struct iter_hints* hints);
100 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg);
115 struct delegpt* hints_find(struct iter_hints* hints, uint8_t* qname,
125 struct delegpt* hints_find_root(struct iter_hints* hints,
141 int hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock);
161 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints,
170 size_t hints_get_mem(struct iter_hints* hints);
185 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp,
198 void hints_delete_stub(struct iter_hints* hints, uint16_t c,
/openbsd-src/regress/lib/libc/asr/bin/
H A Dgetaddrinfo.c45 struct addrinfo *ai, *res, hints; in main() local
49 memset(&hints, 0, sizeof hints); in main()
54 hints.ai_flags |= AI_CANONNAME; in main()
57 hints.ai_flags |= AI_FQDN; in main()
60 hints.ai_flags |= AI_NUMERICHOST; in main()
63 hints.ai_flags |= AI_PASSIVE; in main()
69 hints.ai_flags |= AI_NUMERICSERV; in main()
76 hints.ai_family = AF_INET; in main()
78 hints.ai_family = AF_INET6; in main()
84 hints.ai_protocol = IPPROTO_UDP; in main()
[all …]
/openbsd-src/usr.sbin/lpr/lpd/
H A Dallowedhost.c135 struct addrinfo hints, *res, *r; in checkhost() local
145 memset(&hints, 0, sizeof(hints)); in checkhost()
146 hints.ai_family = raddr->sa_family; in checkhost()
147 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in checkhost()
149 error = getaddrinfo(lhost, "0", &hints, &res); in checkhost()
182 struct addrinfo hints, *res, *r; in gethostloop() local
197 memset(&hints, 0, sizeof(hints)); in gethostloop()
198 hints.ai_family = raddr->sa_family; in gethostloop()
199 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in gethostloop()
200 hints.ai_flags = AI_CANONNAME; in gethostloop()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/autodie/t/lib/
H A DHints_test.pm11 use autodie::hints;
21 autodie::hints->set_hints_for(
23 list => autodie::hints::EMPTY_ONLY ,
24 scalar => autodie::hints::EMPTY_ONLY
28 autodie::hints->set_hints_for(
30 list => autodie::hints::EMPTY_OR_FALSE ,
31 scalar => autodie::hints::EMPTY_OR_FALSE
35 autodie::hints->set_hints_for(
37 list => autodie::hints::EMPTY_OR_UNDEF ,
38 scalar => autodie::hints::EMPTY_OR_UNDEF
H A DHints_pod_examples.pm15 use autodie::hints;
54 autodie::hints->set_hints_for(
66 autodie::hints->set_hints_for(
77 autodie::hints->set_hints_for(
88 autodie::hints->set_hints_for(
99 autodie::hints->set_hints_for(
/openbsd-src/regress/sys/netinet/ipsec/
H A Dnonxt-sendrecv.c43 struct addrinfo hints, *res, *res0; in main() local
68 memset(&hints, 0, sizeof(hints)); in main()
69 hints.ai_family = AF_UNSPEC; in main()
70 hints.ai_socktype = SOCK_RAW; in main()
71 hints.ai_protocol = IPPROTO_NONE; in main()
72 error = getaddrinfo(remote, NULL, &hints, &res0); in main()
95 memset(&hints, 0, sizeof(hints)); in main()
96 hints.ai_family = res->ai_family; in main()
97 hints.ai_socktype = SOCK_RAW; in main()
98 hints.ai_protocol = IPPROTO_NONE; in main()
[all …]
H A Dnonxt-reflect.c43 struct addrinfo hints, *res, *res0; in main() local
62 memset(&hints, 0, sizeof(hints)); in main()
63 hints.ai_family = AF_UNSPEC; in main()
64 hints.ai_socktype = SOCK_RAW; in main()
65 hints.ai_protocol = IPPROTO_NONE; in main()
66 hints.ai_flags = AI_PASSIVE; in main()
67 error = getaddrinfo(local, NULL, &hints, &res0); in main()
/openbsd-src/usr.sbin/ntpd/
H A Dconfig.c61 struct addrinfo hints, *res; in host_ip() local
64 memset(&hints, 0, sizeof(hints)); in host_ip()
65 hints.ai_family = AF_UNSPEC; in host_ip()
66 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in host_ip()
67 hints.ai_flags = AI_NUMERICHOST; in host_ip()
68 if (getaddrinfo(s, "0", &hints, &res) == 0) { in host_ip()
95 struct addrinfo hints, *res0, *res; in host_dns1() local
99 memset(&hints, 0, sizeof(hints)); in host_dns1()
100 hints.ai_family = AF_UNSPEC; in host_dns1()
101 hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ in host_dns1()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/autodie/lib/autodie/
H A Dhints.pm1 package autodie::hints;
10 # ABSTRACT: Provide hints about user subroutines to autodie
14 autodie::hints - Provide hints about user subroutines to autodie
20 our %DOES = ( 'autodie::hints::provider' => 1 );
34 foo(); # succeeds or dies based on scalar hints
36 # Alternatively, hints can be set on subroutines we've
39 use autodie::hints;
43 autodie::hints->set_hints_for(
91 The hinting interface allows I<hints> t
[all...]
/openbsd-src/regress/sys/kern/sosplice/perf/
H A Drelay.c123 socket_listen(int *ls, struct addrinfo *hints, const char *listenaddr, in socket_listen() argument
133 hints->ai_flags = AI_PASSIVE; in socket_listen()
134 error = getaddrinfo(listenaddr, listenport, hints, &res0); in socket_listen()
160 if (hints->ai_socktype == SOCK_STREAM) { in socket_listen()
229 socket_connect(struct addrinfo *hints, const char *hostname, const char *port) in socket_connect() argument
238 hints->ai_flags = 0; in socket_connect()
239 error = getaddrinfo(hostname, port, hints, &res0); in socket_connect()
284 struct addrinfo hints; in main() local
310 memset(&hints, 0, sizeof(hints)); in main()
311 hints.ai_family = PF_UNSPEC; in main()
[all …]
/openbsd-src/lib/libc/net/
H A Druserok.c60 struct addrinfo hints, *res, *r; in ruserok() local
63 memset(&hints, 0, sizeof(hints)); in ruserok()
64 hints.ai_family = PF_UNSPEC; in ruserok()
65 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in ruserok()
66 error = getaddrinfo(rhost, "0", &hints, &res); in ruserok()
302 struct addrinfo hints, *res, *r; in __icheckhost() local
313 memset(&hints, 0, sizeof(hints)); in __icheckhost()
314 hints.ai_family = raddr->sa_family; in __icheckhost()
315 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in __icheckhost()
317 error = getaddrinfo(lhost, "0", &hints, &res); in __icheckhost()
[all …]
/openbsd-src/usr.sbin/radiusd/
H A Dutil.c36 struct addrinfo hints; in addrport_parse() local
61 memset(&hints, 0, sizeof(hints)); in addrport_parse()
62 hints.ai_flags = AI_NUMERICHOST; in addrport_parse()
63 hints.ai_family = AF_UNSPEC; in addrport_parse()
66 hints.ai_socktype = SOCK_STREAM; in addrport_parse()
69 hints.ai_socktype = SOCK_DGRAM; in addrport_parse()
72 hints.ai_protocol = proto; in addrport_parse()
74 return (getaddrinfo(nodep, servp, &hints, p_ai)); in addrport_parse()
/openbsd-src/gnu/usr.bin/perl/cpan/autodie/t/
H A Dhints.t4 use autodie::hints;
38 my $hints = "autodie::hints";
42 is( $hints->sub_fullname(\&copy), 'File::Copy::copy' , "Id: copy" );
44 $hints->sub_fullname(\&cp),
48 is( $hints->sub_fullname(\&move), 'File::Copy::move' , "Id: move" );
49 is( $hints->sub_fullname(\&mv),
54 ok( $hints->get_hints_for(\&copy)->{scalar}->(0) ,
57 ok( $hints->get_hints_for(\&copy)->{list}->(0) ,
/openbsd-src/gnu/usr.bin/perl/cpan/IO-Socket-IP/lib/IO/Socket/
H A DIP.pm344 If neither C<Type> nor C<Proto> hints are provided, a default of
416 my %hints;
427 $hints{flags} = $arg->{GetAddrInfoFlags};
430 $hints{flags} = $AI_ADDRCONFIG;
434 $hints{family} = $family;
438 $hints{socktype} = $type;
450 $hints{protocol} = $proto;
455 if( !defined $hints{socktype} and !defined $hints{protocol} ) {
456 $hints{socktyp
[all...]
/openbsd-src/regress/lib/libpthread/getaddrinfo/
H A Dgetaddrinfo.c67 struct addrinfo hints, *res; local
71 memset(&hints, 0, sizeof(hints));
72 hints.ai_family = PF_UNSPEC;
73 hints.ai_socktype = SOCK_DGRAM;
74 hints.ai_flags = AI_CANONNAME;
79 if (getaddrinfo("www.openbsd.org", "0", &hints, &res))
/openbsd-src/regress/sys/netinet6/srcaddr/
H A Dsrcaddr.c36 struct addrinfo hints, *res; in main() local
56 memset(&hints, 0, sizeof(hints)); in main()
57 hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV; in main()
58 hints.ai_family = AF_INET6; in main()
59 hints.ai_socktype = SOCK_DGRAM; in main()
61 if ((error = getaddrinfo(target, "8888", &hints, &res))) in main()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D20020615-1.c23 int hints; in line_hints() local
37 hints = dy > 0 ? 2 : 1; in line_hints()
39 hints ^= 3; in line_hints()
41 hints = dx < 0 ? 8 : 4; in line_hints()
43 hints ^= 12; in line_hints()
45 hints = 0; in line_hints()
46 return hints; in line_hints()
/openbsd-src/usr.bin/whois/
H A Dwhois.c173 struct addrinfo hints, *res, *ai; in whois() local
175 memset(&hints, 0, sizeof(hints)); in whois()
176 hints.ai_flags = 0; in whois()
177 hints.ai_family = AF_UNSPEC; in whois()
178 hints.ai_socktype = SOCK_STREAM; in whois()
179 error = getaddrinfo(server, port, &hints, &res); in whois()
297 struct addrinfo hints, *res = NULL; in choose_server() local
299 memset(&hints, 0, sizeof(hints)); in choose_server()
300 hints.ai_flags = 0; in choose_server()
301 hints.ai_family = AF_UNSPEC; in choose_server()
[all …]
/openbsd-src/usr.sbin/npppd/common/
H A Dnet_utils.c94 struct addrinfo hints; in addrport_parse() local
119 memset(&hints, 0, sizeof(hints)); in addrport_parse()
120 hints.ai_flags = AI_NUMERICHOST; in addrport_parse()
121 hints.ai_family = AF_UNSPEC; in addrport_parse()
124 hints.ai_socktype = SOCK_STREAM; in addrport_parse()
127 hints.ai_socktype = SOCK_DGRAM; in addrport_parse()
130 hints.ai_protocol = proto; in addrport_parse()
132 return getaddrinfo(nodep, servp, &hints, p_ai); in addrport_parse()
/openbsd-src/lib/libc/asr/
H A Dgetaddrinfo_async.c75 const struct addrinfo *hints, void *asr) in getaddrinfo_async() argument
80 if (hints == NULL || (hints->ai_flags & AI_NUMERICHOST) == 0) in getaddrinfo_async()
94 if (hints) in getaddrinfo_async()
95 memmove(&as->as.ai.hints, hints, sizeof *hints); in getaddrinfo_async()
97 memset(&as->as.ai.hints, 0, sizeof as->as.ai.hints); in getaddrinfo_async()
98 as->as.ai.hints in getaddrinfo_async()
[all...]
/openbsd-src/gnu/usr.bin/perl/cpan/autodie/lib/
H A DFatal.pm44 use constant ERROR_NOHINTS => "No user hints defined for %s";
56 use constant ERROR_SMARTMATCH_HINTS => q{%s hints for %s must be code, regexp, or undef. Use of other values is deprecated and only supported on Perl 5.10 through 5.40.};
58 use constant WARNING_SMARTMATCH_DEPRECATED => q{%s hints for %s must be code, regexp, or undef. Use of other values is deprecated and will be removed before Perl 5.42.};
243 my $hints = (caller 0)[10];
249 my $encoding = $_[1] =~ /^\+?>/ ? $hints->{"open>"} : $hints->{"open<"};
263 my $hints = (caller 0)[10];
271 my $encoding = $open_read_only ? $hints->{"open<"} : $hints->{"open>"};
477 # If so, remove it, and insist we have hints fo
[all...]
/openbsd-src/usr.sbin/lpd/
H A Dresolver.c72 const struct addrinfo *hints, void (*cb)(void *, int, struct addrinfo *), in resolver_getaddrinfo() argument
93 m_add_int(p_resolver, hints ? hints->ai_flags : 0); in resolver_getaddrinfo()
94 m_add_int(p_resolver, hints ? hints->ai_family : 0); in resolver_getaddrinfo()
95 m_add_int(p_resolver, hints ? hints->ai_socktype : 0); in resolver_getaddrinfo()
96 m_add_int(p_resolver, hints ? hints->ai_protocol : 0); in resolver_getaddrinfo()
135 struct addrinfo hints; in resolver_dispatch_request() local
147 memset(&hints, 0 , sizeof(hints)); in resolver_dispatch_request()
148 m_get_int(proc, &hints.ai_flags); in resolver_dispatch_request()
149 m_get_int(proc, &hints.ai_family); in resolver_dispatch_request()
150 m_get_int(proc, &hints.ai_socktype); in resolver_dispatch_request()
[all …]

12345678910>>...15