Home
last modified time | relevance | path

Searched refs:afd (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetaddrinfo.c738 const struct afd *afd; local
752 GET_AI(cur->ai_next, afd, afd->a_addrany);
758 GET_AI(cur->ai_next, afd, afd->a_loopback);
785 const struct afd *afd; local
851 const struct afd *afd;
921 const struct afd *afd;
941 memcpy(p + afd->a_off, addr, (size_t)afd->a_addrlen);
1074 const struct afd *afd; local
1078 for (afd = afdl; afd->a_af; afd++) {
1164 const struct afd *afd; local
[all …]
H A Dgetnameinfo.c71 static struct afd { struct
109 struct afd *afd; local
134 afd = &afdl[i];
140 if (salen != afd->a_socklen) return EAI_FAIL;
143 addr = (const char *)sa + afd->a_off;
198 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
212 switch(afd->a_af) {
225 if (inet_ntop(afd->a_af, addr, numaddr,
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c467 afd->a_fd[i] = -1; in clear_stale_fd()
469 afd->a_stale = 0; in clear_stale_fd()
478 if (afd->a_nfd > sizeof (afd->a_buf) / sizeof (afd->a_buf[0])) { in free_afd()
480 kmem_free(afd->a_fd, afd->a_nfd * sizeof (afd->a_fd[0])); in free_afd()
484 afd->a_fd = &afd->a_buf[0]; in free_afd()
485 afd->a_nfd = sizeof (afd->a_buf) / sizeof (afd->a_buf[0]); in free_afd()
486 afd->a_stale = 0; in free_afd()
488 afd->a_fd[i] = -1; in free_afd()
504 free_afd(afd); in set_active_fd()
532 afd->a_fd[i] = fd; in set_active_fd()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/mktree/
H A Dmktree.c155 int afd = -1; in crtfile() local
185 if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) { in crtfile()
191 if (write(afd, pbuf, 1024) < 1024) { in crtfile()
198 (void) close(afd); in crtfile()
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c644 int afd = 0; in tlm_output_xattr() local
724 afd = attropen(fnamep, dtp->d_name, O_RDONLY); in tlm_output_xattr()
725 if (afd == -1) { in tlm_output_xattr()
732 (void) output_xattr_header(fullname, dtp->d_name, afd, in tlm_output_xattr()
791 if ((actual_size = read(afd, buf, read_size)) < 0) in tlm_output_xattr()
816 (void) close(afd); in tlm_output_xattr()
817 afd = -1; in tlm_output_xattr()
824 if (afd > 0) in tlm_output_xattr()
825 (void) close(afd); in tlm_output_xattr()
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dinc.h96 int afd; /* fd for the archive file */ member
H A Dfile.c151 if ((cmd_info->afd = fd = open(arnam, O_RDONLY)) == -1) { in getaf()
316 int fd = cmd_info->afd; in getfile()
1330 (void) close(cmd_info->afd); in writefile()
/illumos-gate/usr/src/uts/common/sys/
H A Dfile.h227 extern void free_afd(afd_t *afd);
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_quota.c1130 int newfd, dirfd, afd; in smb_quota_add_ctrldir() local
1202 afd = attropen(file, SMB_QUOTA_CNTRL_INDEX_XATTR, O_RDWR | O_CREAT, in smb_quota_add_ctrldir()
1204 if (afd == -1) { in smb_quota_add_ctrldir()
1210 (void) close(afd); in smb_quota_add_ctrldir()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dcollect.c299 int afd; local
767 else if ((afd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL)) < 0)
774 else if (fsync(afd) < 0)
H A Dconf.c1936 static int afd = -1; in getla() local
1943 if (afd == -1 || lseek(afd, 0L, SEEK_SET) == -1) in getla()
1947 afd = open(_PATH_AVENRUN, O_RDONLY|O_SYNC); in getla()
1948 if (afd < 0) in getla()
1957 r = read(afd, &avenrun, sizeof(avenrun)); in getla()
H A Dmilter.c1774 int afd; local
1790 else if ((afd = sm_io_getinfo(e->e_dfp, SM_IO_WHAT_FD, NULL)) >= 0
1791 && fsync(afd) < 0)
H A Dsrvrsmtp.c3580 int afd; local
3611 else if ((afd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL)) < 0)
3618 else if (fsync(afd) < 0)
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevfsadm.c7589 FILE *afd; in read_driver_aliases_file() local
7624 if ((afd = fopen(ALIASFILE, "r")) == NULL) { in read_driver_aliases_file()
7630 while (fgets(line, sizeof (line), afd) != NULL) { in read_driver_aliases_file()
7671 if (fclose(afd) == EOF) { in read_driver_aliases_file()
/illumos-gate/usr/src/data/hwdata/
H A Dusb.ids13334 0afd Tateno Dennou, Inc.
H A Dpci.ids35557 7afd Alder Lake-S PCH Serial IO I2C Controller #5