/freebsd-11.0-release/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 [all...] |
/freebsd-11.0-release/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. 51 * Iterator hints structure 66 * Iterator hints for a particular stub. 78 * Create hints 79 * @return new hints or NULL on error. 84 * Delete hints. 85 * @param hints: to delete. 87 void hints_delete(struct iter_hints* hints); 90 * Process hints confi [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, local 58 if(!hints) 60 return hints; 76 static void hints_del_tree(struct iter_hints* hints) argument 78 traverse_postorder(&hints->tree, &delhintnode, NULL); 82 hints_delete(struct iter_hints* hints) argument 84 if(!hints) 86 hints_del_tree(hints); 166 hints_insert(struct iter_hints* hints, uint16_t c, struct delegpt* dp, int noprime) argument 262 read_stubs(struct iter_hints* hints, struct config_file* cfg) argument 286 read_root_hints(struct iter_hints* hints, char* fname) argument 399 read_root_hints_list(struct iter_hints* hints, struct config_file* cfg) argument 418 hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg) argument 447 hints_lookup_root(struct iter_hints* hints, uint16_t qclass) argument 459 hints_lookup_stub(struct iter_hints* hints, uint8_t* qname, uint16_t qclass, struct delegpt* cache_dp) argument 495 hints_next_root(struct iter_hints* hints, uint16_t* qclass) argument 501 hints_get_mem(struct iter_hints* hints) argument 514 hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, int noprime) argument 530 hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm) argument [all...] |
/freebsd-11.0-release/contrib/ntp/libntp/ |
H A D | socktohost.c | 33 struct addrinfo hints; local 58 ZERO(hints); 59 hints.ai_family = AF(sock); 60 hints.ai_protocol = IPPROTO_UDP; 61 hints.ai_socktype = SOCK_DGRAM; 62 hints.ai_flags = 0; 65 a_info = getaddrinfo(pbuf, svc, &hints, &alist); 71 hints.ai_flags = AI_CANONNAME; 73 hints.ai_flags |= AI_ADDRCONFIG; 75 a_info = getaddrinfo(pbuf, svc, &hints, [all...] |
H A D | is_ip_address.c | 34 struct addrinfo hints; local 72 ZERO(hints); 73 hints.ai_family = AF_INET6; 74 hints.ai_flags |= AI_NUMERICHOST; 75 if (getaddrinfo(tmpbuf, NULL, &hints, &result) == 0) {
|
H A D | decodenetnum.c | 29 struct addrinfo hints, *ai = NULL; local 73 ZERO(hints); 74 hints.ai_flags = Z_AI_NUMERICHOST; 75 err = getaddrinfo(cp, "ntp", &hints, &ai);
|
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) 303 * Copy default values from hints, if available 305 if (hints != NULL) { 306 ai->ai_flags = hints->ai_flags; 307 ai->ai_family = hints->ai_family; 308 ai->ai_socktype = hints->ai_socktype; 309 ai->ai_protocol = hints->ai_protocol; 311 family = hints 281 getaddrinfo(const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument 464 do_nodename( const char *nodename, struct addrinfo *ai, const struct addrinfo *hints) argument [all...] |
/freebsd-11.0-release/crypto/heimdal/lib/roken/ |
H A D | getaddrinfo_hostspec.c | 49 struct addrinfo hints; local 65 memset(&hints, 0, sizeof(hints)); 67 hints.ai_socktype = socktype; 71 hints.ai_socktype = hstp->socktype; 72 hints.ai_protocol = hstp->protocol; 92 return getaddrinfo (host, portstr, &hints, ai);
|
H A D | getaddrinfo.c | 39 * uses hints->ai_socktype and hints->ai_protocol 44 const struct addrinfo *hints, 54 if (hints != NULL && hints->ai_protocol != 0) { 55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); 64 if (hints != NULL) 65 *socktype = hints->ai_socktype; 180 get_null (const struct addrinfo *hints, argument 193 if (hints ! 43 get_port_protocol_socktype(const char *servname, const struct addrinfo *hints, int *port, int *protocol, int *socktype) argument 271 get_number(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 311 get_nodes(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument 369 getaddrinfo(const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
H A D | getaddrinfo-test.c | 69 struct addrinfo hints; local 76 memset (&hints, 0, sizeof(hints)); 77 hints.ai_flags = flags; 78 hints.ai_family = family; 79 hints.ai_socktype = socktype; 81 ret = getaddrinfo (nodename, servname, &hints, &res);
|
H A D | getnameinfo_verified.c | 55 struct addrinfo hints; local 72 memset (&hints, 0, sizeof(hints)); 73 hints.ai_socktype = SOCK_STREAM; 74 ret = getaddrinfo (host, serv, &hints, &ai);
|
/freebsd-11.0-release/crypto/openssh/openbsd-compat/ |
H A D | fake-rfc2553.c | 124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) argument 143 if (hints->ai_socktype) 144 ai->ai_socktype = hints->ai_socktype; 148 if (hints->ai_protocol) 149 ai->ai_protocol = hints->ai_protocol; 156 const struct addrinfo *hints, struct addrinfo **res) 166 if (hints && hints->ai_family != AF_UNSPEC && 167 hints->ai_family != AF_INET) 181 if (hints 155 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
/freebsd-11.0-release/usr.sbin/nfsd/ |
H A D | nfsd.c | 113 struct addrinfo hints); 146 struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints; local 275 memset(&hints, 0, sizeof hints); 276 hints.ai_flags = AI_PASSIVE; 277 hints.ai_family = AF_INET; 278 hints.ai_socktype = SOCK_DGRAM; 279 hints.ai_protocol = IPPROTO_UDP; 280 ecode = getaddrinfo(NULL, "nfs", &hints, &ai_udp); 294 memset(&hints, 786 setbindhost(struct addrinfo **ai, const char *bindhost, struct addrinfo hints) argument 944 struct addrinfo *aip, hints; local [all...] |
/freebsd-11.0-release/crypto/heimdal/lib/krb5/ |
H A D | expand_hostname.c | 71 struct addrinfo *ai, *a, hints; local 77 memset (&hints, 0, sizeof(hints)); 78 hints.ai_flags = AI_CANONNAME; 80 error = getaddrinfo (orig_hostname, NULL, &hints, &ai); 149 struct addrinfo *ai, *a, hints; local 157 memset (&hints, 0, sizeof(hints)); 158 hints.ai_flags = AI_CANONNAME; 160 error = getaddrinfo (orig_hostname, NULL, &hints, [all...] |
/freebsd-11.0-release/contrib/unbound/compat/ |
H A D | fake-rfc2553.c | 119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) argument 136 if (hints->ai_socktype) 137 ai->ai_socktype = hints->ai_socktype; 141 if (hints->ai_protocol) 142 ai->ai_protocol = hints->ai_protocol; 149 const struct addrinfo *hints, struct addrinfo **res) 171 if (hints && hints->ai_flags & AI_PASSIVE) { 175 *res = malloc_ai(port, addr, hints); 182 *res = malloc_ai(port, htonl(0x7f000001), hints); 148 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
/freebsd-11.0-release/contrib/ldns/compat/ |
H A D | fake-rfc2553.c | 121 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) argument 140 if (hints->ai_socktype) 141 ai->ai_socktype = hints->ai_socktype; 145 if (hints->ai_protocol) 146 ai->ai_protocol = hints->ai_protocol; 153 const struct addrinfo *hints, struct addrinfo **res) 175 if (hints && hints->ai_flags & AI_PASSIVE) { 179 *res = malloc_ai(port, addr, hints); 186 *res = malloc_ai(port, htonl(0x7f000001), hints); 152 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument [all...] |
/freebsd-11.0-release/crypto/heimdal/lib/ipc/ |
H A D | ts-http.c | 77 struct addrinfo hints, *res, *res0; local 81 memset(&hints, 0, sizeof(hints)); 82 hints.ai_family = PF_UNSPEC; 83 hints.ai_socktype = SOCK_STREAM; 84 hints.ai_flags = AI_PASSIVE; 85 ret = getaddrinfo(NULL, "8080", &hints, &res0);
|
/freebsd-11.0-release/contrib/ipfilter/lib/ |
H A D | gethost.c | 60 struct addrinfo hints, *res; local 63 bzero((char *)&hints, sizeof(hints)); 64 hints.ai_family = PF_INET6; 66 getaddrinfo(name, NULL, &hints, &res);
|
/freebsd-11.0-release/usr.sbin/lpr/common_source/ |
H A D | net.c | 91 struct addrinfo hints, *res, *ai; local 100 memset(&hints, 0, sizeof(hints)); 101 hints.ai_family = family; 102 hints.ai_socktype = SOCK_STREAM; 103 hints.ai_protocol = 0; 105 &hints, &res); 185 struct addrinfo hints, *local_res, *remote_res, *lr, *rr; local 203 memset(&hints, 0, sizeof(hints)); [all...] |
/freebsd-11.0-release/contrib/netbsd-tests/net/net/ |
H A D | t_udp.c | 19 struct addrinfo hints; local 25 memset(&hints, 0, sizeof(hints)); 26 hints.ai_family = family; 27 hints.ai_socktype = SOCK_DGRAM; 28 hints.ai_protocol = IPPROTO_UDP; 29 hints.ai_flags = 0; 31 e = getaddrinfo("localhost", "9999", &hints, &res);
|
/freebsd-11.0-release/contrib/netbsd-tests/fs/nfs/nfsservice/ |
H A D | nfsd.c | 146 struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints; local 235 memset(&hints, 0, sizeof hints); 236 hints.ai_flags = AI_PASSIVE; 237 hints.ai_family = PF_INET; 238 hints.ai_socktype = SOCK_DGRAM; 239 hints.ai_protocol = IPPROTO_UDP; 241 ecode = getaddrinfo(NULL, "nfs", &hints, &ai_udp); 261 memset(&hints, 0, sizeof hints); [all...] |
/freebsd-11.0-release/contrib/ntp/include/ |
H A D | intreswork.h | 20 const struct addrinfo *hints,
|
/freebsd-11.0-release/lib/libc/net/ |
H A D | rcmdsh.c | 63 struct addrinfo hints, *res; local 83 memset(&hints, 0, sizeof(hints)); 84 hints.ai_flags = AI_CANONNAME; 85 hints.ai_family = PF_UNSPEC; 86 hints.ai_socktype = SOCK_STREAM; 89 error = getaddrinfo(*ahost, num, &hints, &res);
|
/freebsd-11.0-release/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 494 struct addrinfo hints, *res = NULL; local 520 memset(&hints, 0, sizeof hints); 521 hints.ai_family = si.si_af; 522 hints.ai_socktype = si.si_socktype; 523 hints.ai_protocol = si.si_proto; 536 hints.ai_flags = AI_PASSIVE; 547 switch (hints.ai_family) { 551 hints.ai_flags |= AI_NUMERICHOST; 566 hints 693 struct addrinfo hints, *res = NULL; local 814 struct addrinfo hints, *res = NULL; local [all...] |
/freebsd-11.0-release/contrib/llvm/tools/lldb/source/Host/common/ |
H A D | UDPSocket.cpp | 113 struct addrinfo hints; local 116 ::memset (&hints, 0, sizeof(hints)); 117 hints.ai_family = kDomain; 118 hints.ai_socktype = kType; 119 int err = ::getaddrinfo (host_str.c_str(), port_str.c_str(), &hints, &service_info_list); 122 error.SetErrorStringWithFormat("getaddrinfo(%s, %s, &hints, &info) returned error %i (%s)",
|