Searched refs:aip (Results 1 - 18 of 18) sorted by relevance

/freebsd-current/usr.sbin/apm/
H A Dapm.c128 apm_getinfo(int fd, apm_info_t aip) argument
130 if (ioctl(fd, APMIO_GETINFO, aip) == -1)
191 print_all_info(int fd, apm_info_t aip, int bioscall_available) argument
197 printf("APM version: %d.%d\n", aip->ai_major, aip->ai_minor);
198 printf("APM Management: %s\n", aip->ai_status ? "Enabled" : "Disabled");
200 if (aip->ai_acline == APM_UNKNOWN)
202 else if (aip->ai_acline > 2)
203 printf("invalid value (0x%x)\n", aip->ai_acline);
205 printf("%s\n", line_msg[aip
[all...]
/freebsd-current/contrib/wireguard-tools/
H A Dipc-freebsd.h122 struct wgallowedip *aip = NULL; local
177 aip = calloc(1, sizeof(*aip));
178 if (!aip)
187 aip->family = AF_INET;
188 aip->cidr = number;
189 memcpy(&aip->ip4, binary, sizeof(aip->ip4));
197 aip->family = AF_INET6;
198 aip
283 struct wgallowedip *aip; local
[all...]
/freebsd-current/sys/x86/acpica/
H A Dacpi_apm.c132 acpi_capm_get_info(apm_info_t aip) argument
137 aip->ai_infoversion = 1;
138 aip->ai_major = 1;
139 aip->ai_minor = 2;
140 aip->ai_status = apm_active;
141 aip->ai_capabilities= 0xff00; /* unknown */
144 aip->ai_acline = 1; /* no info -- on-line best guess */
146 aip->ai_acline = acline; /* on/off */
149 aip->ai_batt_stat = 0; /* "high" old I/F has no unknown state */
150 aip
[all...]
/freebsd-current/sbin/ipf/iplang/
H A Diplang_y.y636 aniphdr_t *aip, *oip = canip;
639 aip = (aniphdr_t *)calloc(1, sizeof(*aip));
640 *aniptail = aip;
641 aniptail = &aip->ah_next;
642 aip->ah_p = type;
643 aip->ah_prev = oip;
644 canip = aip;
663 for (aip = aniphead; aip; ai
[all...]
/freebsd-current/tests/sys/netinet/
H A Dip6_v4mapped_test.c220 struct addrinfo ai_hint, *aip; local
258 error = getaddrinfo("127.0.0.1", NULL, &ai_hint, &aip);
260 memcpy(&su_mapped.saddr6, aip->ai_addr, sizeof(su_mapped.saddr6));
262 freeaddrinfo(aip);
329 struct addrinfo ai_hint, *aip; local
344 error = getaddrinfo("127.0.0.1", NULL, &ai_hint, &aip);
346 memcpy(&sin, aip->ai_addr, sizeof(sin));
364 error = getaddrinfo("127.0.0.1", NULL, &ai_hint, &aip);
366 memcpy(&sin6, aip->ai_addr, sizeof(sin6));
368 freeaddrinfo(aip);
[all...]
/freebsd-current/usr.sbin/nfscbd/
H A Dnfscbd.c105 struct addrinfo *aip, hints; local
130 error = getaddrinfo(myname, NULL, &hints, &aip);
132 if (aip->ai_canonname != NULL &&
133 (cp = strchr(aip->ai_canonname, '.')) != NULL
135 cp = aip->ai_canonname;
138 freeaddrinfo(aip);
186 freeaddrinfo(aip);
/freebsd-current/tools/regression/netinet/ipmulticast/
H A Dipmulticast.c361 struct addrinfo *aip; local
442 aip = NULL;
443 error = getaddrinfo(basegroup_str, NULL, &aih, &aip);
449 memcpy(&basegroup, aip->ai_addr, aip->ai_addrlen);
454 freeaddrinfo(aip);
470 aip = NULL;
471 error = getaddrinfo(ifaddr_str, NULL, &aih, &aip);
477 memcpy(&ifaddr, aip->ai_addr, aip
[all...]
/freebsd-current/sys/dev/wg/
H A Dif_wg.c519 struct wg_aip *aip; local
522 aip = malloc(sizeof(*aip), M_WG, M_WAITOK | M_ZERO);
523 aip->a_peer = peer;
524 aip->a_af = af;
531 aip->a_addr.in = *(const struct in_addr *)addr;
532 aip->a_mask.ip = htonl(~((1LL << (32 - cidr)) - 1) & 0xffffffff);
533 aip->a_addr.ip &= aip->a_mask.ip;
534 aip
618 struct wg_aip *aip, *taip; local
2612 struct wg_aip *aip; local
[all...]
/freebsd-current/sbin/umount/
H A Dumount.c574 struct addrinfo *aip; local
580 aip = nfshost_ai;
581 while (aip != NULL) {
582 if (sacmp(ai->ai_addr, aip->ai_addr) == 0)
584 aip = aip->ai_next;
/freebsd-current/sys/security/audit/
H A Daudit_pipe.c692 struct auditpipe_ioctl_preselect *aip; local
807 aip = (struct auditpipe_ioctl_preselect *)data;
808 error = audit_pipe_preselect_get(ap, aip->aip_auid,
809 &aip->aip_mask);
813 aip = (struct auditpipe_ioctl_preselect *)data;
814 audit_pipe_preselect_set(ap, aip->aip_auid, aip->aip_mask);
/freebsd-current/sys/ufs/ffs/
H A Dffs_softdep.c6026 struct allocindir *aip; local
6042 aip = (struct allocindir *)newblk;
6043 aip->ai_offset = ptrno;
6044 aip->ai_oldblkno = oldblkno;
6045 aip->ai_lbn = lbn;
6054 return (aip);
6073 struct allocindir *aip; local
6089 aip = newallocindir(ip, ptrno, newblkno, oldblkno, lbn);
6098 WORKLIST_INSERT(&nbp->b_dep, &aip->ai_block.nb_list);
6099 freefrag = setup_allocindir_phase2(bp, ip, inodedep, aip, lb
6118 struct allocindir *aip; local
6141 struct allocindir *aip; local
6238 setup_allocindir_phase2( struct buf *bp, struct inode *ip, struct inodedep *inodedep, struct allocindir *aip, ufs_lbn_t lbn) argument
6294 allocindir_merge( struct allocindir *aip, struct allocindir *oldaip) argument
6426 struct allocindir *aip, *aipn; local
8116 struct allocindir *aip; local
8508 cancel_allocindir( struct allocindir *aip, struct buf *bp, struct freeblks *freeblks, int trunc) argument
10802 struct allocindir *aip; local
11490 handle_allocindir_partdone( struct allocindir *aip) argument
11933 struct allocindir *aip; local
12955 struct allocindir *aip; local
14322 struct allocindir *aip; local
14856 allocindir_print(struct allocindir *aip) argument
[all...]
/freebsd-current/usr.sbin/nfsuserd/
H A Dnfsuserd.c118 struct addrinfo *aip, hints; local
149 error = getaddrinfo(hostname, NULL, &hints, &aip);
151 if (aip->ai_canonname != NULL &&
152 (cp = strchr(aip->ai_canonname, '.')) != NULL
157 freeaddrinfo(aip);
449 freeaddrinfo(aip);
/freebsd-current/usr.sbin/nfsd/
H A Dnfsd.c1010 struct addrinfo *aip, hints; local
1023 error = getaddrinfo(hostname, NULL, &hints, &aip);
1025 if (aip->ai_canonname != NULL &&
1026 (cp = strchr(aip->ai_canonname, '.')) !=
1029 "nfs@%s", aip->ai_canonname);
1030 freeaddrinfo(aip);
/freebsd-current/usr.sbin/rpc.tlsservd/
H A Drpc.tlsservd.c907 struct addrinfo *aip, hints; local
919 error = getaddrinfo(hostname, NULL, &hints, &aip);
921 if (aip->ai_canonname != NULL &&
922 (cp = strchr(aip->ai_canonname, '.')) !=
929 freeaddrinfo(aip);
/freebsd-current/contrib/telnet/telnet/
H A Dcommands.c2158 switch_af(struct addrinfo **aip)
2163 ai = *aip;
2168 *aip = ai;
2169 if (*aip != NULL) {
2150 switch_af(struct addrinfo **aip) argument
/freebsd-current/lib/libc/net/
H A Dgetaddrinfo.c676 struct addrinfo *ai, **aip; local
716 for (i = 0, aip = &sentinel->ai_next; i < n; i++) {
717 *aip = aio[i].aio_ai;
718 aip = &aio[i].aio_ai->ai_next;
720 *aip = NULL;
/freebsd-current/contrib/netbsd-tests/kernel/
H A Dt_ptrace_wait.c2427 AuxInfo ai[100], *aip; local
2461 for (aip = ai; aip->a_type != AT_NULL; aip++)
2463 (long long int)aip->a_type, (long long int)aip->a_v);
/freebsd-current/sys/netinet/
H A Dsctp_pcb.c6319 *aip; local
6323 aip = (struct sctp_adaptation_layer_indication *)phdr;
6324 if (aip) {
6325 stcb->asoc.peers_adaptation = ntohl(aip->indication);

Completed in 411 milliseconds