| /freebsd/contrib/unbound/iterator/ |
| H A D | iter_hints.h | 2 * iterator/iter_hints.h - iterative resolver module stub and root hints. 40 * Keep track of stub and root hints, and read those from config. 52 * Iterator hints structure 60 * Hints are stored in this tree. Sort order is specially chosen. 71 * Iterator hints for a particular stub. 83 * Create hints 84 * @return new hints or NULL on error. 89 * Delete hints. 90 * @param hints: to delete. 92 void hints_delete(struct iter_hints* hints); [all...] |
| H A D | iter_hints.c | 2 * iterator/iter_hints.c - iterative resolver module stub and root hints. 40 * Keep track of stub and root hints, and read those from config. 56 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 84 hints_delete(struct iter_hints * hints) hints_delete() argument 171 hints_insert(struct iter_hints * hints,uint16_t c,struct delegpt * dp,int noprime) hints_insert() argument 280 read_stubs(struct iter_hints * hints,struct config_file * cfg) read_stubs() argument 310 read_root_hints(struct iter_hints * hints,char * fname) read_root_hints() argument 423 read_root_hints_list(struct iter_hints * hints,struct config_file * cfg) read_root_hints_list() argument 442 hints_apply_cfg(struct iter_hints * hints,struct config_file * cfg) hints_apply_cfg() argument 482 hints_find(struct iter_hints * hints,uint8_t * qname,uint16_t qclass,int nolock) hints_find() argument 499 hints_find_root(struct iter_hints * hints,uint16_t qclass,int nolock) hints_find_root() argument 506 hints_lookup_stub(struct iter_hints * hints,uint8_t * qname,uint16_t qclass,struct delegpt * cache_dp,int nolock) hints_lookup_stub() argument 549 hints_next_root(struct iter_hints * hints,uint16_t * qclass,int nolock) hints_next_root() argument 560 hints_get_mem(struct iter_hints * hints) hints_get_mem() argument 575 hints_add_stub(struct iter_hints * hints,uint16_t c,struct delegpt * dp,int noprime,int nolock) hints_add_stub() argument 596 hints_delete_stub(struct iter_hints * hints,uint16_t c,uint8_t * nm,int nolock) hints_delete_stub() argument [all...] |
| /freebsd/contrib/ofed/librdmacm/ |
| H A D | addrinfo.c | 145 const struct rdma_addrinfo *hints, in ucma_convert_to_rai() argument 150 if (hints->ai_qp_type) { in ucma_convert_to_rai() 151 rai->ai_qp_type = hints->ai_qp_type; in ucma_convert_to_rai() 163 if (hints->ai_port_space) { in ucma_convert_to_rai() 164 rai->ai_port_space = hints->ai_port_space; in ucma_convert_to_rai() 181 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) && in ucma_convert_to_rai() 182 (hints->ai_flags & RAI_NUMERICHOST)) { in ucma_convert_to_rai() 198 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) && in ucma_convert_to_rai() 199 (hints->ai_flags & RAI_NUMERICHOST)) { in ucma_convert_to_rai() 216 const struct rdma_addrinfo *hints, in ucma_getaddrinfo() argument [all …]
|
| /freebsd/sbin/ldconfig/ |
| H A D | ldconfig.8 | 53 and any directories specified in the hints file. 60 The hints file is maintained by 64 list to be stored in the hints file is supplied on the command line. 104 Generate the hints for 32-bit ABI shared libraries 109 Force writing big-endian binary data to the hints file. 110 The default is to create hints files in little-endian byte-order on all 112 Reading of and merging into hints files preserves the endianness of the 113 existing hints file. 116 the hints file. 120 Read and/or update the specified hints file, instead of the standard file. [all …]
|
| /freebsd/usr.sbin/nfsd/ |
| H A D | nfsd.c | 115 struct addrinfo hints); 151 struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints; in main() local 328 memset(&hints, 0, sizeof hints); in main() 329 hints.ai_flags = AI_PASSIVE; in main() 330 hints.ai_family = AF_INET; in main() 331 hints.ai_socktype = SOCK_DGRAM; in main() 332 hints.ai_protocol = IPPROTO_UDP; in main() 333 ecode = getaddrinfo(NULL, "nfs", &hints, &ai_udp); in main() 352 memset(&hints, 0, sizeof hints); in main() 353 hints.ai_flags = AI_PASSIVE; in main() [all …]
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | getaddrinfo.c | 39 * uses hints->ai_socktype and hints->ai_protocol 44 const struct addrinfo *hints, in get_port_protocol_socktype() argument 54 if (hints != NULL && hints->ai_protocol != 0) { in get_port_protocol_socktype() 55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); in get_port_protocol_socktype() 64 if (hints != NULL) in get_port_protocol_socktype() 65 *socktype = hints->ai_socktype; in get_port_protocol_socktype() 180 get_null (const struct addrinfo *hints, in get_null() argument 193 if (hints != NULL) in get_null() 194 family = hints->ai_family; in get_null() 196 if (hints && hints->ai_flags & AI_PASSIVE) { in get_null() [all …]
|
| /freebsd/contrib/less/ |
| H A D | scrsize.c | 55 XSizeHints hints; local 60 if (!XGetWMNormalHints(dpy, window, &hints, &longjunk)) 62 if (!(hints.flags & PResizeInc)) 64 if (hints.width_inc == 0 || hints.height_inc == 0) 66 if (!(hints.flags & (PBaseSize|PMinSize))) 68 if (hints.flags & PBaseSize) 70 win_attributes.width -= hints.base_width; 71 win_attributes.height -= hints.base_height; 74 win_attributes.width -= hints.min_width; 75 win_attributes.height -= hints.min_height; [all …]
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | socktohost.c | 32 struct addrinfo hints; in socktohost() 57 ZERO(hints); in socktohost() 58 hints.ai_family = AF(sock); in socktohost() 59 hints.ai_protocol = IPPROTO_UDP; in socktohost() 60 hints.ai_socktype = SOCK_DGRAM; in socktohost() 61 hints.ai_flags = 0; in socktohost() 64 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 70 hints.ai_flags = AI_CANONNAME; in socktohost() 72 hints.ai_flags |= AI_ADDRCONFIG; in socktohost() 74 a_info = getaddrinfo(pbuf, svc, &hints, in socktohost() 33 struct addrinfo hints; socktohost() local [all...] |
| H A D | ntp_rfc2553.c | 246 "Invalid value for hints", /* EAI_BADHINTS */ 278 const struct addrinfo *hints); 282 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 303 * Copy default values from hints, if available in getaddrinfo() 305 if (hints != NULL) { in getaddrinfo() 306 ai->ai_flags = hints->ai_flags; in getaddrinfo() 307 ai->ai_family = hints->ai_family; in getaddrinfo() 308 ai->ai_socktype = hints->ai_socktype; in getaddrinfo() 309 ai->ai_protocol = hints->ai_protocol; in getaddrinfo() 311 family = hints->ai_family; in getaddrinfo() [all …]
|
| /freebsd/lib/libc/net/ |
| H A D | getaddrinfo.3 | 33 .Fa "const struct addrinfo *hints" "struct addrinfo **res" 72 .Fa hints 90 This structure can be used to provide hints concerning the type of socket 93 .Fa hints : 127 .Fa hints 257 .Fa hints 261 .Fa hints 386 struct addrinfo hints, *res, *res0; 391 memset(&hints, 0, sizeof(hints)); 392 hints.ai_family = AF_UNSPEC; [all …]
|
| /freebsd/contrib/ofed/librdmacm/man/ |
| H A D | rdma_getaddrinfo.3 | 11 .BI "const struct rdma_addrinfo *" hints "," 18 .IP "hints" 12 19 Reference to an rdma_addrinfo structure containing hints about the type 32 Either node, service, or hints must be provided. If hints are provided, the 33 operation will be controlled by hints.ai_flags. If RAI_PASSIVE is 37 route, and connection data to the given node. The hints parameter, if provided, 40 information based on the hints.ai_src_addr, hints.ai_dst_addr, or hints.ai_route. 70 will be 0 if the RAI_PASSIVE flag was specified as part of the hints. 90 hints.ai_route may reference an array of struct ibv_path_record or
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | fake-rfc2553.c | 124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument 143 if (hints->ai_socktype) in malloc_ai() 144 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 148 if (hints->ai_protocol) in malloc_ai() 149 ai->ai_protocol = hints->ai_protocol; in malloc_ai() 156 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 166 if (hints && hints->ai_family != AF_UNSPEC && in getaddrinfo() 167 hints->ai_family != AF_INET) in getaddrinfo() 181 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo() 185 *res = malloc_ai(port, addr, hints); in getaddrinfo() [all …]
|
| /freebsd/usr.sbin/lpr/common_source/ |
| H A D | net.c | 89 struct addrinfo hints, *res, *ai; in getport() local 98 memset(&hints, 0, sizeof(hints)); in getport() 99 hints.ai_family = family; in getport() 100 hints.ai_socktype = SOCK_STREAM; in getport() 101 hints.ai_protocol = 0; in getport() 103 &hints, &res); in getport() 183 struct addrinfo hints, *local_res, *remote_res, *lr, *rr; in checkremote() local 201 memset(&hints, 0, sizeof(hints)); in checkremote() 202 hints.ai_family = family; in checkremote() 203 hints.ai_socktype = SOCK_STREAM; in checkremote() [all …]
|
| /freebsd/usr.bin/getaddrinfo/ |
| H A D | getaddrinfo.c | 62 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() 101 if (!parse_protocol(optarg, &hints.ai_protocol)) { in main() [all …]
|
| /freebsd/lib/libc/tests/net/getaddrinfo/ |
| H A D | getaddrinfo.c | 90 static const struct addrinfo hints = { in ATF_TC_BODY() local 97 rv = getaddrinfo(goodname, NULL, &hints, &res); in ATF_TC_BODY() 102 rv = getaddrinfo(goodname_dot, NULL, &hints, &res); in ATF_TC_BODY() 107 rv = getaddrinfo(badname, NULL, &hints, &res); in ATF_TC_BODY() 112 rv = getaddrinfo(badname_dot, NULL, &hints, &res); in ATF_TC_BODY() 121 static const struct addrinfo hints = { in ATF_TC_BODY() local 129 rv = getaddrinfo(goodname, NULL, &hints, &res); in ATF_TC_BODY() 134 rv = getaddrinfo(goodname_dot, NULL, &hints, &res); in ATF_TC_BODY() 143 static const struct addrinfo hints = { in ATF_TC_BODY() local 152 rv = getaddrinfo(goodname, "666", &hints, &res); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/ldns/compat/ |
| H A D | fake-rfc2553.c | 121 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument 140 if (hints->ai_socktype) in malloc_ai() 141 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 145 if (hints->ai_protocol) in malloc_ai() 146 ai->ai_protocol = hints->ai_protocol; in malloc_ai() 153 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 175 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo() 179 *res = malloc_ai(port, addr, hints); in getaddrinfo() 186 *res = malloc_ai(port, htonl(0x7f000001), hints); in getaddrinfo() 193 *res = malloc_ai(port, in.s_addr, hints); in getaddrinfo() [all …]
|
| /freebsd/contrib/unbound/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 …]
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | evutil.c | 828 * socktype and protocol info from hints. If they weren't set, then 833 const struct evutil_addrinfo *hints) in evutil_new_addrinfo_() argument 836 EVUTIL_ASSERT(hints); in evutil_new_addrinfo_() 838 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_() 842 memcpy(&tmp, hints, sizeof(tmp)); in evutil_new_addrinfo_() 867 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo_() 868 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_() 907 const struct evutil_addrinfo *hints) in evutil_parse_servname() argument 913 if (!(hints->ai_flags & EVUTIL_AI_NUMERICSERV)) { in evutil_parse_servname() 952 evutil_getaddrinfo_infer_protocols(struct evutil_addrinfo *hints) in evutil_getaddrinfo_infer_protocols() argument [all …]
|
| /freebsd/contrib/libevent/ |
| H A D | evutil.c | 828 * socktype and protocol info from hints. If they weren't set, then 833 const struct evutil_addrinfo *hints) in evutil_new_addrinfo_() argument 836 EVUTIL_ASSERT(hints); in evutil_new_addrinfo_() 838 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_() 842 memcpy(&tmp, hints, sizeof(tmp)); in evutil_new_addrinfo_() 867 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo_() 868 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_() 907 const struct evutil_addrinfo *hints) in evutil_parse_servname() argument 913 if (!(hints->ai_flags & EVUTIL_AI_NUMERICSERV)) { in evutil_parse_servname() 952 evutil_getaddrinfo_infer_protocols(struct evutil_addrinfo *hints) in evutil_getaddrinfo_infer_protocols() argument [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/test/ |
| H A D | regress_util.c | 1001 struct evutil_addrinfo hints; in test_evutil_getaddrinfo() local 1005 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1006 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo() 1007 hints.ai_socktype = SOCK_STREAM; in test_evutil_getaddrinfo() 1008 r = evutil_getaddrinfo("1.2.3.4", "8080", &hints, &ai); in test_evutil_getaddrinfo() 1016 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1017 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo() 1018 hints.ai_protocol = IPPROTO_UDP; in test_evutil_getaddrinfo() 1019 r = evutil_getaddrinfo("1001:b0b::f00f", "4321", &hints, &ai); in test_evutil_getaddrinfo() 1028 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() [all …]
|
| /freebsd/contrib/libevent/test/ |
| H A D | regress_util.c | 1001 struct evutil_addrinfo hints; in test_evutil_getaddrinfo() local 1005 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1006 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo() 1007 hints.ai_socktype = SOCK_STREAM; in test_evutil_getaddrinfo() 1008 r = evutil_getaddrinfo("1.2.3.4", "8080", &hints, &ai); in test_evutil_getaddrinfo() 1016 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1017 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo() 1018 hints.ai_protocol = IPPROTO_UDP; in test_evutil_getaddrinfo() 1019 r = evutil_getaddrinfo("1001:b0b::f00f", "4321", &hints, &ai); in test_evutil_getaddrinfo() 1028 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AllocationOrder.h | 12 // hints and target hooks. The AllocationOrder class encapsulates all of that. 31 const SmallVector<MCPhysReg, 16> Hints; variable 57 return AO.Hints.end()[Pos]; 62 /// Advance the iterator to the next position. If that's past the Hints 63 /// list, advance to the first value that's not also in the Hints list. 90 AllocationOrder(SmallVector<MCPhysReg, 16> &&Hints, ArrayRef<MCPhysReg> Order, in AllocationOrder() argument 92 : Hints(std::move(Hints)), Order(Order), in AllocationOrder() 96 return Iterator(*this, -(static_cast<int>(Hints.size()))); in begin() 110 /// Get the allocation order without reordered hints. 118 return Reg.isPhysical() && is_contained(Hints, Reg.id()); in isHint()
|
| /freebsd/share/man/man5/ |
| H A D | device.hints.5 | 30 .Nm device.hints 31 .Nd device resource hints 42 .Dq device hints , 66 .Sh DEVICE HINTS 127 .Bl -tag -width ".Pa /sys/ Ns Ar ARCH Ns Pa /conf/GENERIC.hints" -compact 128 .It Pa /boot/device.hints 129 Device resource hints file. 130 .It Pa /sys/ Ns Ar ARCH Ns Pa /conf/GENERIC.hints 131 Sample resource hints for the 135 Notes on the kernel configuration file and device resource hints.
|
| /freebsd/sys/contrib/libsodium/contrib/ |
| H A D | Findsodium.cmake | 81 HINTS ${${XPREFIX}_INCLUDE_DIRS} 84 HINTS ${${XPREFIX}_LIBRARY_DIRS} 87 HINTS ${${XPREFIX}_LIBRARY_DIRS} 98 HINTS ${sodium_DIR} 144 HINTS ${sodium_DIR} 148 HINTS ${sodium_DIR} 155 HINTS ${sodium_DIR} 159 HINTS ${sodium_DIR} 168 HINTS ${sodium_DIR} 172 HINTS ${sodium_DIR} [all …]
|
| /freebsd/usr.sbin/config/ |
| H A D | config.5 | 184 .\" -------- HINTS -------- 186 .It Ic hints Ar filename 193 .Xr device.hints 5 ) . 198 Hints provided in this static device configuration will be overwritten in the 200 Hints in the compiled-in environment takes precedence over compiled-in hints, 201 and hints in the environment prepared for the kernel by 203 takes precedence over hints in the compiled-in environment. 205 Once the dynamic environment becomes available, all compiled-in hints will be 208 The dynamic environment will then be used for all searches of hints. 213 environment to disable use of these hints files. [all …]
|