Searched refs:ai (Results 1 - 25 of 164) sorted by relevance

1234567

/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Dfreeaddrinfo.c42 * free the list of `struct addrinfo' starting at `ai'
46 freeaddrinfo(struct addrinfo *ai) argument
50 while(ai != NULL) {
51 free (ai->ai_canonname);
52 free (ai->ai_addr);
53 tofree = ai;
54 ai = ai->ai_next;
H A Dgetnameinfo_verified.c56 struct addrinfo *ai, *a; local
75 ret = getaddrinfo (host, serv, &hints, &ai);
78 for (a = ai; a != NULL; a = a->ai_next) {
81 freeaddrinfo (ai);
85 freeaddrinfo (ai);
H A Dgetaddrinfo_hostspec.c47 struct addrinfo **ai)
95 return getaddrinfo (host, portstr, &hints, ai);
101 struct addrinfo **ai)
103 return roken_getaddrinfo_hostspec2(hostspec, 0, port, ai);
44 roken_getaddrinfo_hostspec2(const char *hostspec, int socktype, int port, struct addrinfo **ai) argument
99 roken_getaddrinfo_hostspec(const char *hostspec, int port, struct addrinfo **ai) argument
H A Dmini_inetd.c66 mini_inetd_addrinfo (struct addrinfo *ai) argument
75 for (nalloc = 0, a = ai; a != NULL; a = a->ai_next)
84 for (i = 0, a = ai; a != NULL; a = a->ai_next) {
131 struct addrinfo *ai, hints; local
141 error = getaddrinfo (NULL, portstr, &hints, &ai);
145 mini_inetd_addrinfo(ai);
147 freeaddrinfo(ai);
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dntp_rfc2553.c277 static int do_nodename (const char *nodename, struct addrinfo *ai,
286 struct addrinfo *ai = NULL; local
298 ai = calloc(sizeof(struct addrinfo), 1);
299 if (ai == 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;
368 rval = do_nodename(nodename, ai, hints);
370 freeaddrinfo(ai);
417 freeaddrinfo(struct addrinfo *ai) argument
464 do_nodename( const char *nodename, struct addrinfo *ai, const struct addrinfo *hints) argument
[all...]
H A Dsocktohost.c35 struct addrinfo * ai; local
89 for (ai = alist; ai != NULL; ai = ai->ai_next) {
91 * Make a convenience sockaddr_u copy from ai->ai_addr
98 octets = min(sizeof(addr), ai->ai_addrlen);
99 memcpy(&addr, ai->ai_addr, octets);
105 if (ai != NULL) {
H A Ddecodenetnum.c29 struct addrinfo hints, *ai = NULL; local
75 err = getaddrinfo(cp, "ntp", &hints, &ai);
78 INSIST(ai->ai_addrlen <= sizeof(*netnum));
80 memcpy(netnum, ai->ai_addr, ai->ai_addrlen);
81 freeaddrinfo(ai);
/freebsd-9.3-release/sys/dev/acpica/Osd/
H A DOsdInterrupt.c84 struct acpi_intr *ai; local
86 ai = arg;
87 KASSERT(ai != NULL && ai->ai_handler != NULL,
89 if (ai->ai_handler(ai->ai_context) == ACPI_INTERRUPT_HANDLED)
95 acpi_intr_destroy(device_t dev, struct acpi_intr *ai) argument
98 if (ai->ai_handle != NULL)
99 bus_teardown_intr(dev, ai->ai_irq, ai
111 struct acpi_intr *ai, *ap; local
183 struct acpi_intr *ai; local
[all...]
/freebsd-9.3-release/contrib/bind9/lib/lwres/
H A Dgetaddrinfo.c118 * lwres_freeaddrinfo(). ai is a pointer to a struct addrinfo created by
180 struct addrinfo *ai, *ai_list; local
310 ai = ai_alloc(AF_INET, sizeof(struct sockaddr_in));
311 if (ai == NULL)
313 ai->ai_socktype = socktype;
314 ai->ai_protocol = protocol;
315 SIN(ai->ai_addr)->sin_port = port;
316 ai->ai_next = ai_list;
317 ai_list = ai;
321 ai
563 struct addrinfo *ai; local
626 struct addrinfo *ai; local
686 lwres_freeaddrinfo(struct addrinfo *ai) argument
703 struct addrinfo *ai; local
739 struct addrinfo *ai; local
761 struct addrinfo *ai; local
[all...]
/freebsd-9.3-release/usr.bin/finger/
H A Dnet.c58 static int do_protocol(const char *name, const struct addrinfo *ai);
59 static void trying(const struct addrinfo *ai);
66 struct addrinfo *ai, *ai0; local
94 for (ai = ai0; ai != 0; ai = ai->ai_next) {
96 trying(ai);
98 error = do_protocol(name, ai);
107 do_protocol(const char *name, const struct addrinfo *ai) argument
218 trying(const struct addrinfo *ai) argument
[all...]
/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c110 freeaddrinfo(struct addrinfo *ai) argument
114 for(; ai != NULL;) {
115 next = ai->ai_next;
116 free(ai);
117 ai = next;
126 struct addrinfo *ai; local
128 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in));
129 if (ai == NULL)
132 memset(ai, '\
[all...]
/freebsd-9.3-release/tools/regression/lib/libc/nss/
H A Dtest-getaddr.c150 free_addrinfo(struct addrinfo *ai) argument
152 if (ai == NULL)
155 free(ai->ai_addr);
156 free(ai->ai_canonname);
157 free_addrinfo(ai->ai_next);
161 sdump_addrinfo(struct addrinfo *ai, char *buffer, size_t buflen) argument
166 ai->ai_flags, ai->ai_family, ai->ai_socktype, ai
247 addrinfo_read_snapshot_ai(struct addrinfo *ai, char *line) argument
312 addrinfo_read_snapshot_func(struct addrinfo *ai, char *line) argument
353 addrinfo_test_correctness(struct addrinfo *ai, void *mdata) argument
393 addrinfo_read_hostlist_func(struct addrinfo *ai, char *line) argument
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dexpand_hostname.c62 struct addrinfo *ai, *a, hints; local
71 error = getaddrinfo (orig_hostname, NULL, &hints, &ai);
74 for (a = ai; a != NULL; a = a->ai_next) {
77 freeaddrinfo (ai);
86 freeaddrinfo (ai);
126 struct addrinfo *ai, *a, hints; local
137 error = getaddrinfo (orig_hostname, NULL, &hints, &ai);
142 for (a = ai; a != NULL; a = a->ai_next) {
146 freeaddrinfo (ai);
152 freeaddrinfo (ai);
[all...]
/freebsd-9.3-release/sys/x86/isa/
H A Datpic.c86 #define IRQ(ap, ai) ((ap)->at_irqbase + (ai)->at_irq)
188 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
192 if (*ap->at_imen & IMEN_MASK(ai)) {
193 *ap->at_imen &= ~IMEN_MASK(ai);
202 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
206 if (ai->at_trigger != INTR_TRIGGER_EDGE) {
207 *ap->at_imen |= IMEN_MASK(ai);
260 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
263 return (IRQ(ap, ai));
269 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
291 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
418 struct atpic_intsrc *ai; local
494 struct atpic_intsrc *ai; local
[all...]
H A Dicu.h90 #define IMEN_MASK(ai) (IRQ_MASK((ai)->at_irq))
/freebsd-9.3-release/contrib/bind9/lib/irs/
H A Dgetaddrinfo.c113 * ai is a pointer to a struct addrinfo created by a call to getaddrinfo().
198 struct addrinfo *ai, *ai_list; local
329 ai = ai_alloc(AF_INET, sizeof(struct sockaddr_in));
330 if (ai == NULL)
332 ai->ai_socktype = socktype;
333 ai->ai_protocol = protocol;
334 SIN(ai->ai_addr)->sin_port = port;
335 ai->ai_next = ai_list;
336 ai_list = ai;
340 ai
762 struct addrinfo *ai; local
1119 struct addrinfo *ai; local
1144 struct addrinfo *ai; local
1163 freeaddrinfo(struct addrinfo *ai) argument
1180 struct addrinfo *ai; local
1216 struct addrinfo *ai; local
1238 struct addrinfo *ai; local
[all...]
/freebsd-9.3-release/contrib/ntp/sntp/libevent/test/
H A Dregress_util.c787 ai_find_by_family(struct evutil_addrinfo *ai, int family) argument
789 while (ai) {
790 if (ai->ai_family == family)
791 return ai;
792 ai = ai->ai_next;
798 ai_find_by_protocol(struct evutil_addrinfo *ai, int protocol) argument
800 while (ai) {
801 if (ai->ai_protocol == protocol)
802 return ai;
810 test_ai_eq_(const struct evutil_addrinfo *ai, const char *sockaddr_port, int socktype, int protocol, int line) argument
927 struct evutil_addrinfo *ai = NULL, *a; local
1063 struct evutil_addrinfo *ai = NULL; local
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/bn/asm/
H A Dco-586.pl17 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
22 &comment("mul a[$ai]*b[$bi]");
25 # &mov("eax",&DWP($ai*4,$a,"",0)) ;
45 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
50 &comment("sqr a[$ai]*a[$bi]");
53 # &mov("eax",&DWP($ai*4,$a,"",0)) ;
56 if ($ai == $bi)
74 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
79 &comment("sqr a[$ai]*a[$bi]");
82 # &mov("eax",&DWP($ai*
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/bn/asm/x86/
H A Dcomba.pl6 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
11 &comment("mul a[$ai]*b[$bi]");
14 # &mov("eax",&DWP($ai*4,$a,"",0)) ;
34 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
39 &comment("sqr a[$ai]*a[$bi]");
42 # &mov("eax",&DWP($ai*4,$a,"",0)) ;
45 if ($ai == $bi)
63 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
68 &comment("sqr a[$ai]*a[$bi]");
71 # &mov("eax",&DWP($ai*
[all...]
/freebsd-9.3-release/crypto/openssl/crypto/asn1/
H A Da_enum.c136 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) argument
141 if (ai == NULL)
144 ret = ai;
167 if (ret != ai)
172 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) argument
176 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL)
178 else if (ai->type == V_ASN1_NEG_ENUMERATED)
/freebsd-9.3-release/lib/libc/net/
H A Dgetaddrinfo.c298 #define GET_AI(ai, afd, addr) \
301 (ai) = get_ai(pai, (afd), (addr)); \
302 if ((ai) == NULL) { \
308 #define GET_PORT(ai, serv) \
311 error = get_port((ai), (serv), 0); \
316 #define GET_CANONNAME(ai, str) \
319 error = get_canonname(pai, (ai), (str)); \
338 freeaddrinfo(struct addrinfo *ai) argument
343 next = ai->ai_next;
344 if (ai
377 struct addrinfo ai, ai0, *afai; local
639 struct addrinfo *ai, **aip; local
812 struct addrinfo ai = *aio->aio_ai; local
1132 struct addrinfo *ai; local
1178 struct addrinfo *ai; local
1302 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str) argument
1316 struct addrinfo *ai; local
1384 struct addrinfo *ai; local
1413 get_portmatch(const struct addrinfo *ai, const char *servname) argument
1422 get_port(struct addrinfo *ai, const char *servname, int matchonly) argument
1738 struct addrinfo *ai, *cai; local
1917 struct addrinfo ai; local
2121 struct addrinfo *ai; member in struct:addr_ptr
2128 struct addrinfo *ai; local
2189 struct addrinfo *ai; local
2496 struct addrinfo *ai = NULL; local
[all...]
/freebsd-9.3-release/contrib/nvi/ex/
H A Dex_txt.c190 if (LF_ISSET(TXT_DOTTERM) && tp->len == tp->ai + 1 &&
203 * Reset the autoindent line value. 0^D keeps the ai
213 OOBLNO, &ait, ait.ai, ntp))
232 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT))
236 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT))
288 if (tp->len > tp->ai + 1)
291 /* Save the ai string for later. */
294 BINC_GOTO(sp, ait.lb, ait.lb_len, tp->ai);
295 memcpy(ait.lb, tp->lb, tp->ai);
296 ait.ai
[all...]
/freebsd-9.3-release/usr.sbin/lpr/common_source/
H A Dnet.c92 struct addrinfo hints, *res, *ai; local
115 ai = res;
118 s = rresvport_af(&lport, ai->ai_family);
122 if (ai->ai_next) {
123 ai = ai->ai_next;
130 ai = res;
137 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) {
154 if (ai
[all...]
/freebsd-9.3-release/crypto/openssl/ssl/
H A Dssl_asn1.c298 ASN1_INTEGER ai, *aip; local
302 aip = &ai;
308 ai.data = NULL;
309 ai.length = 0;
311 if (ai.data != NULL) {
312 OPENSSL_free(ai.data);
313 ai.data = NULL;
314 ai.length = 0;
321 if (ai.data != NULL) {
322 OPENSSL_free(ai
[all...]
/freebsd-9.3-release/tools/regression/priv/
H A Dpriv_audit_setaudit.c47 static auditinfo_t ai; variable
54 if (getaudit(&ai) < 0) {
71 error = setaudit(&ai);

Completed in 193 milliseconds

1234567