/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | freeaddrinfo.c | 39 * 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 D | getnameinfo_verified.c | 53 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 D | getaddrinfo_hostspec.c | 44 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-current/contrib/ntp/libntp/ |
H A D | ntp_rfc2553.c | 277 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 D | socktohost.c | 34 struct addrinfo * ai; local 88 for (ai = alist; ai != NULL; ai = ai->ai_next) { 90 * Make a convenience sockaddr_u copy from ai->ai_addr 97 octets = min(sizeof(addr), ai->ai_addrlen); 98 memcpy(&addr, ai->ai_addr, octets); 104 if (ai != NULL) {
|
/freebsd-current/sys/dev/acpica/Osd/ |
H A D | OsdInterrupt.c | 81 struct acpi_intr *ai; local 83 ai = arg; 84 KASSERT(ai != NULL && ai->ai_handler != NULL, 86 if (ai->ai_handler(ai->ai_context) == ACPI_INTERRUPT_HANDLED) 92 acpi_intr_destroy(device_t dev, struct acpi_intr *ai) argument 95 if (ai->ai_handle != NULL) 96 bus_teardown_intr(dev, ai->ai_irq, ai 108 struct acpi_intr *ai, *ap; local 180 struct acpi_intr *ai; local [all...] |
/freebsd-current/usr.bin/finger/ |
H A D | net.c | 52 static int do_protocol(const char *name, const struct addrinfo *ai); 53 static void trying(const struct addrinfo *ai); 60 struct addrinfo *ai, *ai0; local 88 for (ai = ai0; ai != NULL; ai = ai->ai_next) { 90 trying(ai); 92 error = do_protocol(name, ai); 101 do_protocol(const char *name, const struct addrinfo *ai) argument 212 trying(const struct addrinfo *ai) argument [all...] |
/freebsd-current/contrib/ldns/compat/ |
H A D | fake-rfc2553.c | 107 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-current/crypto/openssh/openbsd-compat/ |
H A D | fake-rfc2553.c | 110 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-current/contrib/ofed/librdmacm/ |
H A D | addrinfo.c | 48 static void ucma_convert_to_ai(struct addrinfo *ai, argument 51 memset(ai, 0, sizeof(*ai)); 53 ai->ai_flags = AI_PASSIVE; 55 ai->ai_flags |= AI_NUMERICHOST; 57 ai->ai_family = rai->ai_family; 64 ai->ai_socktype = SOCK_STREAM; 67 ai->ai_socktype = SOCK_DGRAM; 73 ai->ai_protocol = IPPROTO_TCP; 77 ai 144 ucma_convert_to_rai(struct rdma_addrinfo *rai, const struct rdma_addrinfo *hints, const struct addrinfo *ai) argument 220 struct addrinfo *ai; local [all...] |
/freebsd-current/lib/libc/tests/nss/ |
H A D | getaddrinfo_test.c | 146 free_addrinfo(struct addrinfo *ai) argument 148 if (ai == NULL) 151 free(ai->ai_addr); 152 free(ai->ai_canonname); 153 free_addrinfo(ai->ai_next); 157 sdump_addrinfo(struct addrinfo *ai, char *buffer, size_t buflen) argument 162 ai->ai_flags, ai->ai_family, ai->ai_socktype, ai 243 addrinfo_read_snapshot_ai(struct addrinfo *ai, char *line) argument 306 addrinfo_read_snapshot_func(struct addrinfo *ai, char *line) argument 344 addrinfo_test_correctness(struct addrinfo *ai, void *mdata __unused) argument 381 addrinfo_read_hostlist_func(struct addrinfo *ai, char *line) argument [all...] |
/freebsd-current/contrib/unbound/compat/ |
H A D | fake-rfc2553.c | 105 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 = calloc(1, sizeof(*ai) + sizeof(struct sockaddr_in)); 124 if (ai == NULL) 127 ai [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
H A D | h_gai.c | 45 struct addrinfo ai; variable in typeref:struct:addrinfo 116 memset(&ai, 0, sizeof(ai)); 117 ai.ai_family = PF_UNSPEC; 118 ai.ai_flags |= AI_CANONNAME; 122 ai.ai_socktype = SOCK_DGRAM; 125 ai.ai_family = atoi(optarg); 128 ai.ai_protocol = atoi(optarg); 131 ai.ai_flags |= AI_PASSIVE; 134 ai [all...] |
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | expand_hostname.c | 71 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-current/crypto/openssl/crypto/x509/ |
H A D | v3_tlsf.c | 66 ASN1_INTEGER *ai; local 69 ai = sk_ASN1_INTEGER_value(tls_feature, i); 70 tlsextid = ASN1_INTEGER_get(ai); 77 X509V3_add_value_int(NULL, ai, &ext_list); 92 ASN1_INTEGER *ai = NULL; local 125 if ((ai = ASN1_INTEGER_new()) == NULL 126 || !ASN1_INTEGER_set(ai, tlsextid) 127 || sk_ASN1_INTEGER_push(tlsf, ai) <= 0) { 132 ai = NULL; 138 ASN1_INTEGER_free(ai); [all...] |
/freebsd-current/sys/x86/isa/ |
H A D | atpic.c | 69 #define IMEN_MASK(ai) (IRQ_MASK((ai)->at_irq)) 93 #define IRQ(ap, ai) ((ap)->at_irqbase + (ai)->at_irq) 210 struct atpic_intsrc *ai; local 235 for (i = 0, ai = atintrs; i < NUM_ISA_IRQS; i++, ai++) { 238 intr_register_source(&ai->at_intsrc); 245 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local 249 if (ap->at_imen & IMEN_MASK(ai)) { 259 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local 316 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local 325 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local 345 struct atpic_intsrc *ai = (struct atpic_intsrc *)isrc; local 453 struct atpic_intsrc *ai; local [all...] |
/freebsd-current/contrib/ntp/sntp/libevent/test/ |
H A D | regress_util.c | 850 ai_find_by_family(struct evutil_addrinfo *ai, int family) argument 852 while (ai) { 853 if (ai->ai_family == family) 854 return ai; 855 ai = ai->ai_next; 861 ai_find_by_protocol(struct evutil_addrinfo *ai, int protocol) argument 863 while (ai) { 864 if (ai->ai_protocol == protocol) 865 return ai; 873 test_ai_eq_(const struct evutil_addrinfo *ai, const char *sockaddr_port, int socktype, int protocol, int line) argument 1000 struct evutil_addrinfo *ai = NULL, *a; local 1136 struct evutil_addrinfo *ai = NULL; local 1196 struct evutil_addrinfo *ai = NULL; local [all...] |
/freebsd-current/contrib/libevent/test/ |
H A D | regress_util.c | 850 ai_find_by_family(struct evutil_addrinfo *ai, int family) argument 852 while (ai) { 853 if (ai->ai_family == family) 854 return ai; 855 ai = ai->ai_next; 861 ai_find_by_protocol(struct evutil_addrinfo *ai, int protocol) argument 863 while (ai) { 864 if (ai->ai_protocol == protocol) 865 return ai; 873 test_ai_eq_(const struct evutil_addrinfo *ai, const char *sockaddr_port, int socktype, int protocol, int line) argument 1000 struct evutil_addrinfo *ai = NULL, *a; local 1136 struct evutil_addrinfo *ai = NULL; local 1196 struct evutil_addrinfo *ai = NULL; local [all...] |
/freebsd-current/usr.bin/getaddrinfo/ |
H A D | getaddrinfo.c | 262 struct addrinfo *ai; local 267 for (ai = addrinfo; ai != NULL; ai = ai->ai_next) { 269 if ((ai->ai_socktype >= 0) && 270 ((size_t)ai->ai_socktype < __arraycount(socket_types)) && 271 (socket_types[ai->ai_socktype] != NULL)) 272 n = printf("%s", socket_types[ai->ai_socktype]); 274 n = printf("%d", ai [all...] |
/freebsd-current/lib/msun/ld128/ |
H A D | s_cospil.c | 50 long double ai, ar, ax, c; local 75 /* Split ax = ai + ar with 0 <= ar < 1. */ 76 FFLOORL128(ax, ai, ar); 91 return (fmodl(ai, 2.L) == 0 ? c : -c);
|
/freebsd-current/crypto/openssl/crypto/bn/asm/ |
H A D | co-586.pl | 28 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 33 &comment("mul a[$ai]*b[$bi]"); 36 # &mov("eax",&DWP($ai*4,$a,"",0)) ; 56 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 61 &comment("sqr a[$ai]*a[$bi]"); 64 # &mov("eax",&DWP($ai*4,$a,"",0)) ; 67 if ($ai == $bi) 85 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 90 &comment("sqr a[$ai]*a[$bi]"); 93 # &mov("eax",&DWP($ai* [all...] |
/freebsd-current/usr.sbin/nvmfd/ |
H A D | nvmfd.c | 71 struct addrinfo hints, *ai, *list; local 84 for (ai = list; ai != NULL; ai = ai->ai_next) { 85 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); 89 if (bind(s, ai->ai_addr, ai [all...] |
/freebsd-current/lib/libc/net/ |
H A D | getaddrinfo.c | 317 #define GET_AI(ai, afd, addr) \ 320 (ai) = get_ai(pai, (afd), (addr)); \ 321 if ((ai) == NULL) { \ 327 #define GET_PORT(ai, serv) \ 330 error = get_port((ai), (serv), 0); \ 335 #define GET_CANONNAME(ai, str) \ 338 error = get_canonname(pai, (ai), (str)); \ 357 freeaddrinfo(struct addrinfo *ai) argument 361 while (ai != NULL) { 362 next = ai 395 struct addrinfo ai, ai0, *afai; local 676 struct addrinfo *ai, **aip; local 848 struct addrinfo ai = *aio->aio_ai; local 1196 struct addrinfo *ai; local 1245 struct addrinfo *ai, ai0; local 1395 get_canonname(const struct addrinfo *pai, struct addrinfo *ai, const char *str) argument 1409 struct addrinfo *ai; local 1446 struct addrinfo *ai; local 1474 get_portmatch(const struct addrinfo *ai, const char *servname) argument 1483 get_port(struct addrinfo *ai, const char *servname, int matchonly) argument 1805 struct addrinfo *ai, *cai; local 1985 struct addrinfo ai; local 2193 struct addrinfo *ai; member in struct:addr_ptr 2200 struct addrinfo *ai; local 2261 struct addrinfo *ai, ai0; local 2612 struct addrinfo *ai = NULL; local [all...] |
/freebsd-current/contrib/nvi/ex/ |
H A D | ex_txt.c | 185 if (LF_ISSET(TXT_DOTTERM) && tp->len == tp->ai + 1 && 198 * Reset the autoindent line value. 0^D keeps the ai 209 OOBLNO, &ait, ait.ai, ntp)) 228 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT)) 232 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT)) 284 if (tp->len > tp->ai + 1) 287 /* Save the ai string for later. */ 290 BINC_GOTOW(sp, ait.lb, ait.lb_len, tp->ai); 291 MEMCPY(ait.lb, tp->lb, tp->ai); 292 ait.ai [all...] |
/freebsd-current/usr.sbin/lpr/common_source/ |
H A D | net.c | 89 struct addrinfo hints, *res, *ai; local 112 ai = res; 115 s = rresvport_af(&lport, ai->ai_family); 119 if (ai->ai_next) { 120 ai = ai->ai_next; 127 ai = res; 134 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) { 151 if (ai [all...] |