Searched refs:hints (Results 1 - 25 of 247) sorted by relevance

12345678910

/freebsd-11-stable/contrib/less/
H A Dscrsize.c55 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-stable/contrib/unbound/iterator/
H A Diter_hints.h2 * 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 Diter_hints.c2 * 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);
168 hints_insert(struct iter_hints* hints, uint16_t c, struct delegpt* dp, int noprime) argument
271 read_stubs(struct iter_hints* hints, struct config_file* cfg) argument
299 read_root_hints(struct iter_hints* hints, char* fname) argument
412 read_root_hints_list(struct iter_hints* hints, struct config_file* cfg) argument
431 hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg) argument
460 hints_lookup_root(struct iter_hints* hints, uint16_t qclass) argument
472 hints_lookup_stub(struct iter_hints* hints, uint8_t* qname, uint16_t qclass, struct delegpt* cache_dp) argument
508 hints_next_root(struct iter_hints* hints, uint16_t* qclass) argument
514 hints_get_mem(struct iter_hints* hints) argument
527 hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, int noprime) argument
543 hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm) argument
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dsocktohost.c33 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 Dis_ip_address.c34 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 Dntp_rfc2553.c246 "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-stable/crypto/heimdal/lib/roken/
H A Dgetaddrinfo_hostspec.c49 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 Dgetaddrinfo.c39 * 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 Dgetaddrinfo-test.c69 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 Dgetnameinfo_verified.c55 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-stable/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c124 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-stable/usr.sbin/nfsd/
H A Dnfsd.c116 struct addrinfo hints);
149 struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints; local
287 memset(&hints, 0, sizeof hints);
288 hints.ai_flags = AI_PASSIVE;
289 hints.ai_family = AF_INET;
290 hints.ai_socktype = SOCK_DGRAM;
291 hints.ai_protocol = IPPROTO_UDP;
292 ecode = getaddrinfo(NULL, "nfs", &hints, &ai_udp);
311 memset(&hints,
808 setbindhost(struct addrinfo **ai, const char *bindhost, struct addrinfo hints) argument
966 struct addrinfo *aip, hints; local
[all...]
/freebsd-11-stable/contrib/ofed/librdmacm/
H A Daddrinfo.c145 const struct rdma_addrinfo *hints,
150 if (hints->ai_qp_type) {
151 rai->ai_qp_type = hints->ai_qp_type;
163 if (hints->ai_port_space) {
164 rai->ai_port_space = hints->ai_port_space;
181 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) &&
182 (hints->ai_flags & RAI_NUMERICHOST)) {
198 if ((hints->ai_flags & RAI_FAMILY) && (hints
144 ucma_convert_to_rai(struct rdma_addrinfo *rai, const struct rdma_addrinfo *hints, const struct addrinfo *ai) argument
215 ucma_getaddrinfo(const char *node, const char *service, const struct rdma_addrinfo *hints, struct rdma_addrinfo *rai) argument
237 rdma_getaddrinfo(const char *node, const char *service, const struct rdma_addrinfo *hints, struct rdma_addrinfo **res) argument
[all...]
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dexpand_hostname.c71 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-stable/contrib/ldns/compat/
H A Dfake-rfc2553.c121 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-stable/contrib/unbound/compat/
H A Dfake-rfc2553.c119 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-stable/crypto/heimdal/lib/ipc/
H A Dts-http.c77 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-stable/contrib/ipfilter/lib/
H A Dgethost.c60 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-stable/usr.sbin/lpr/common_source/
H A Dnet.c91 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-stable/contrib/netbsd-tests/net/net/
H A Dt_udp.c19 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-stable/contrib/ofed/librdmacm/examples/
H A Drdma_xclient.c46 static struct rdma_addrinfo hints; variable in typeref:struct:rdma_addrinfo
66 if (hints.ai_qp_type == IBV_QPT_XRC_SEND)
83 ret = rdma_getaddrinfo(server, port, &hints, &res);
112 if (hints.ai_qp_type == IBV_QPT_XRC_SEND)
137 hints.ai_port_space = RDMA_PS_TCP;
138 hints.ai_qp_type = IBV_QPT_RC;
153 hints.ai_port_space = RDMA_PS_IB;
154 hints.ai_qp_type = IBV_QPT_XRC_SEND;
/freebsd-11-stable/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c65 struct addrinfo hints = zero_addrinfo; local
73 hints.ai_family = AF_UNSPEC;
74 hints.ai_socktype = 0;
75 hints.ai_protocol = 0;
76 hints.ai_flags = 0;
81 hints.ai_flags |= AI_CANONNAME;
85 if (!parse_af(optarg, &hints.ai_family)) {
92 hints.ai_flags |= AI_NUMERICHOST;
96 hints.ai_flags |= AI_NUMERICSERV;
104 if (!parse_protocol(optarg, &hints
[all...]
/freebsd-11-stable/contrib/ntp/include/
H A Dintreswork.h20 const struct addrinfo *hints,
/freebsd-11-stable/lib/libc/net/
H A Drcmdsh.c63 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-stable/contrib/netbsd-tests/net/sys/
H A Dt_rfc6056.c56 struct addrinfo hints, *res; local
58 memset(&hints, 0, sizeof(hints));
59 hints.ai_family = family;
60 hints.ai_socktype = SOCK_DGRAM;
75 error = getaddrinfo(hostname, service, &hints, &res);

Completed in 155 milliseconds

12345678910