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

12345678

/freebsd-10.1-release/crypto/heimdal/lib/roken/
H A Dfreeaddrinfo.c39 * free the list of `struct addrinfo' starting at `ai'
43 freeaddrinfo(struct addrinfo *ai) argument
47 while(ai != NULL) {
48 free (ai->ai_canonname);
49 free (ai->ai_addr);
50 tofree = ai;
51 ai = ai->ai_next;
H A Dgetnameinfo_verified.c53 struct addrinfo *ai, *a; local
74 ret = getaddrinfo (host, serv, &hints, &ai);
80 for (a = ai; a != NULL; a = a->ai_next) {
83 freeaddrinfo (ai);
87 freeaddrinfo (ai);
H A Dgetaddrinfo_hostspec.c44 struct addrinfo **ai)
92 return getaddrinfo (host, portstr, &hints, ai);
98 struct addrinfo **ai)
100 return roken_getaddrinfo_hostspec2(hostspec, 0, port, ai);
41 roken_getaddrinfo_hostspec2(const char *hostspec, int socktype, int port, struct addrinfo **ai) argument
96 roken_getaddrinfo_hostspec(const char *hostspec, int port, struct addrinfo **ai) argument
/freebsd-10.1-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-10.1-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-10.1-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-10.1-release/contrib/ldns/compat/
H A Dfake-rfc2553.c107 freeaddrinfo(struct addrinfo *ai) argument
111 for(; ai != NULL;) {
112 next = ai->ai_next;
113 free(ai);
114 ai = next;
123 struct addrinfo *ai; local
125 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in));
126 if (ai == NULL)
129 memset(ai, '\
[all...]
/freebsd-10.1-release/contrib/unbound/compat/
H A Dfake-rfc2553.c105 freeaddrinfo(struct addrinfo *ai) argument
109 for(; ai != NULL;) {
110 next = ai->ai_next;
111 free(ai);
112 ai = next;
121 struct addrinfo *ai; local
123 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in));
124 if (ai == NULL)
127 memset(ai, '\
[all...]
/freebsd-10.1-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-10.1-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-10.1-release/crypto/heimdal/lib/krb5/
H A Dexpand_hostname.c71 struct addrinfo *ai, *a, hints; local
80 error = getaddrinfo (orig_hostname, NULL, &hints, &ai);
83 for (a = ai; a != NULL; a = a->ai_next) {
86 freeaddrinfo (ai);
96 freeaddrinfo (ai);
149 struct addrinfo *ai, *a, hints; local
160 error = getaddrinfo (orig_hostname, NULL, &hints, &ai);
165 for (a = ai; a != NULL; a = a->ai_next) {
169 freeaddrinfo (ai);
175 freeaddrinfo (ai);
[all...]
/freebsd-10.1-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-10.1-release/contrib/apr/strings/
H A Dapr_strnatcmp.c90 int ai, bi; local
93 ai = bi = 0;
95 ca = a[ai]; cb = b[bi];
99 ca = a[++ai];
109 if ((result = compare_left(a+ai, b+bi)) != 0)
112 if ((result = compare_right(a+ai, b+bi)) != 0)
133 ++ai; ++bi;
/freebsd-10.1-release/sys/contrib/octeon-sdk/
H A Dcvmx-app-hotplug.c327 cvmx_app_hotplug_info_t *ai = cvmx_app_hotplug_info_ptr; local
349 if (ai->hotplug_activated_coremask != sys_info_ptr->core_mask)
354 (unsigned int)ai->hotplug_activated_coremask);
364 if (ai->shutdown_callback)
366 ((void(*)(void*))(long)ai->shutdown_callback)(CASTPTR(void *, ai->data));
372 if (!ai->app_shutdown)
388 if (ai->unplug_callback)
392 ((void(*)(void*))(long)ai->unplug_callback)(CASTPTR(void *,
393 ai
685 cvmx_app_hotplug_info_t *ai; local
753 cvmx_app_hotplug_info_t *ai; local
780 cvmx_app_hotplug_info_t *ai; local
[all...]
/freebsd-10.1-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-10.1-release/crypto/openssl/crypto/bn/asm/
H A Dco-586.pl18 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
23 &comment("mul a[$ai]*b[$bi]");
26 # &mov("eax",&DWP($ai*4,$a,"",0)) ;
46 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
51 &comment("sqr a[$ai]*a[$bi]");
54 # &mov("eax",&DWP($ai*4,$a,"",0)) ;
57 if ($ai == $bi)
75 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
80 &comment("sqr a[$ai]*a[$bi]");
83 # &mov("eax",&DWP($ai*
[all...]
/freebsd-10.1-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-10.1-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-10.1-release/lib/libc/net/
H A Dgetaddrinfo.c299 #define GET_AI(ai, afd, addr) \
302 (ai) = get_ai(pai, (afd), (addr)); \
303 if ((ai) == NULL) { \
309 #define GET_PORT(ai, serv) \
312 error = get_port((ai), (serv), 0); \
317 #define GET_CANONNAME(ai, str) \
320 error = get_canonname(pai, (ai), (str)); \
339 freeaddrinfo(struct addrinfo *ai) argument
344 next = ai->ai_next;
345 if (ai
378 struct addrinfo ai, ai0, *afai; local
640 struct addrinfo *ai, **aip; local
813 struct addrinfo ai = *aio->aio_ai; local
1134 struct addrinfo *ai; local
1180 struct addrinfo *ai; local
1304 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str) argument
1318 struct addrinfo *ai; local
1386 struct addrinfo *ai; local
1415 get_portmatch(const struct addrinfo *ai, const char *servname) argument
1424 get_port(struct addrinfo *ai, const char *servname, int matchonly) argument
1743 struct addrinfo *ai, *cai; local
1922 struct addrinfo ai; local
2126 struct addrinfo *ai; member in struct:addr_ptr
2133 struct addrinfo *ai; local
2194 struct addrinfo *ai; local
2501 struct addrinfo *ai = NULL; local
[all...]
/freebsd-10.1-release/contrib/nvi/ex/
H A Dex_txt.c189 if (LF_ISSET(TXT_DOTTERM) && tp->len == tp->ai + 1 &&
202 * 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_GOTOW(sp, ait.lb, ait.lb_len, tp->ai);
295 MEMCPY(ait.lb, tp->lb, tp->ai);
296 ait.ai
[all...]
/freebsd-10.1-release/usr.sbin/lpr/common_source/
H A Dnet.c91 struct addrinfo hints, *res, *ai; local
114 ai = res;
117 s = rresvport_af(&lport, ai->ai_family);
121 if (ai->ai_next) {
122 ai = ai->ai_next;
129 ai = res;
136 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) {
153 if (ai
[all...]
/freebsd-10.1-release/crypto/openssl/ssl/
H A Dssl_asn1.c383 ASN1_INTEGER ai, *aip; local
387 aip = &ai;
393 ai.data = NULL;
394 ai.length = 0;
396 if (ai.data != NULL) {
397 OPENSSL_free(ai.data);
398 ai.data = NULL;
399 ai.length = 0;
406 if (ai.data != NULL) {
407 OPENSSL_free(ai
[all...]

Completed in 294 milliseconds

12345678