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

1234567

/freebsd-10.0-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.0-release/contrib/ntp/libntp/
H A Dntp_rfc2553.c130 static int do_nodename P((const char *nodename, struct addrinfo *ai,
139 struct addrinfo *ai = NULL; local
151 ai = calloc(sizeof(struct addrinfo), 1);
152 if (ai == NULL)
159 ai->ai_flags = hints->ai_flags;
160 ai->ai_family = hints->ai_family;
161 ai->ai_socktype = hints->ai_socktype;
162 ai->ai_protocol = hints->ai_protocol;
221 rval = do_nodename(nodename, ai, hints);
223 freeaddrinfo(ai);
270 freeaddrinfo(struct addrinfo *ai) argument
326 do_nodename( const char *nodename, struct addrinfo *ai, const struct addrinfo *hints) argument
[all...]
H A Ddecodenetnum.c17 struct addrinfo hints, *ai = NULL; local
33 err = getaddrinfo(num, NULL, &hints, &ai);
36 memcpy(netnum, (struct sockaddr_storage *)ai->ai_addr, ai->ai_addrlen);
37 freeaddrinfo(ai);
/freebsd-10.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-release/sys/x86/isa/
H A Datpic.c89 #define IRQ(ap, ai) ((ap)->at_irqbase + (ai)->at_irq)
191 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
195 if (*ap->at_imen & IMEN_MASK(ai)) {
196 *ap->at_imen &= ~IMEN_MASK(ai);
205 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
209 if (ai->at_trigger != INTR_TRIGGER_EDGE) {
210 *ap->at_imen |= IMEN_MASK(ai);
263 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
266 return (IRQ(ap, ai));
272 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
294 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local
421 struct atpic_intsrc *ai; local
497 struct atpic_intsrc *ai; local
[all...]
H A Dicu.h90 #define IMEN_MASK(ai) (IRQ_MASK((ai)->at_irq))
/freebsd-10.0-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.0-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.0-release/crypto/openssl/crypto/asn1/
H A Da_enum.c138 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) argument
143 if (ai == NULL)
146 ret=ai;
170 if (ret != ai) M_ASN1_ENUMERATED_free(ret);
174 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) argument
178 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
180 else if(ai->type == V_ASN1_NEG_ENUMERATED) BN_set_negative(ret,1);
/freebsd-10.0-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.0-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.0-release/lib/libc/net/
H A Dgetaddrinfo.c291 #define GET_AI(ai, afd, addr) \
294 (ai) = get_ai(pai, (afd), (addr)); \
295 if ((ai) == NULL) { \
301 #define GET_PORT(ai, serv) \
304 error = get_port((ai), (serv), 0); \
309 #define GET_CANONNAME(ai, str) \
312 error = get_canonname(pai, (ai), (str)); \
331 freeaddrinfo(struct addrinfo *ai) argument
336 next = ai->ai_next;
337 if (ai
370 struct addrinfo ai, ai0, *afai; local
632 struct addrinfo *ai, **aip; local
805 struct addrinfo ai = *aio->aio_ai; local
1125 struct addrinfo *ai; local
1171 struct addrinfo *ai; local
1295 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str) argument
1309 struct addrinfo *ai; local
1377 struct addrinfo *ai; local
1406 get_portmatch(const struct addrinfo *ai, const char *servname) argument
1415 get_port(struct addrinfo *ai, const char *servname, int matchonly) argument
1688 struct addrinfo *ai, *cai; local
1867 struct addrinfo ai; local
2071 struct addrinfo *ai; member in struct:addr_ptr
2078 struct addrinfo *ai; local
2139 struct addrinfo *ai; local
2446 struct addrinfo *ai = NULL; local
[all...]
/freebsd-10.0-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.0-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.0-release/crypto/openssl/ssl/
H A Dssl_asn1.c384 ASN1_INTEGER ai,*aip; local
388 aip= &ai;
394 ai.data=NULL; ai.length=0;
396 if (ai.data != NULL) { OPENSSL_free(ai.data); ai.data=NULL; ai.length=0; }
402 if (ai.data != NULL) { OPENSSL_free(ai
[all...]
/freebsd-10.0-release/tools/regression/priv/
H A Dpriv_audit_setaudit.c47 static auditinfo_t ai; variable
54 if (getaudit(&ai) < 0) {
71 error = setaudit(&ai);
/freebsd-10.0-release/crypto/heimdal/appl/login/
H A Dutmp_login.c48 struct addrinfo *ai; local
64 ret = getaddrinfo (hostname, NULL, NULL, &ai);
69 ret = getnameinfo (ai->ai_addr, ai->ai_addrlen,
73 freeaddrinfo (ai);

Completed in 262 milliseconds

1234567