/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | getnameinfo.c | 71 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 [all...] |
H A D | getaddrinfo.c | 128 static const struct afd { struct 188 const struct afd *, const char *)); 192 static const struct afd *find_afd __P((int)); 225 #define GET_AI(ai, afd, addr) \ 228 (ai) = get_ai(pai, (afd), (addr)); \ 738 const struct afd *afd; local 747 afd = find_afd(pai->ai_family); 748 if (afd == NULL) 752 GET_AI(cur->ai_next, afd, af 785 const struct afd *afd; local 1074 const struct afd *afd; local 1164 const struct afd *afd; local 1223 const struct afd *afd; local [all...] |
/illumos-gate/usr/src/test/zfs-tests/cmd/mktree/ |
H A D | mktree.c | 150 int afd = -1; local 177 if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) { 182 if (write(afd, pbuf, 1024) < 1024) { 183 (void) fprintf(stderr, "write(afd, pbuf, 1024) failed." 188 (void) close(afd);
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | collect.c | 299 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 D | milter.c | 1774 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 D | srvrsmtp.c | 3580 int afd; local 3611 else if ((afd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL)) < 0) 3618 else if (fsync(afd) < 0)
|
H A D | conf.c | 1935 static int afd = -1; local 1942 if (afd == -1 || lseek(afd, 0L, SEEK_SET) == -1) 1946 afd = open(_PATH_AVENRUN, O_RDONLY|O_SYNC); 1947 if (afd < 0) 1956 r = read(afd, &avenrun, sizeof(avenrun));
|
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | inc.h | 96 int afd; /* fd for the archive file */ member in struct:cmd_info
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fio.c | 459 afd_t *afd = &curthread->t_activefd; local 463 for (i = 0; i < afd->a_nfd; i++) { 465 ASSERT(afd->a_fd[i] == -1); 466 afd->a_fd[i] = -1; 468 afd->a_stale = 0; 472 free_afd(afd_t *afd) /* called below and from thread_free() */ argument 477 if (afd->a_nfd > sizeof (afd->a_buf) / sizeof (afd->a_buf[0])) { 479 kmem_free(afd 493 afd_t *afd = &curthread->t_activefd; local 543 afd_t *afd = &curthread->t_activefd; local 561 afd_t *afd = &t->t_activefd; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_quota.c | 1128 int newfd, dirfd, afd; local 1200 afd = attropen(file, SMB_QUOTA_CNTRL_INDEX_XATTR, O_RDWR | O_CREAT, 1202 if (afd == -1) { 1208 (void) close(afd);
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_backup_reader.c | 644 int afd = 0; local 724 afd = attropen(fnamep, dtp->d_name, O_RDONLY); 725 if (afd == -1) { 732 (void) output_xattr_header(fullname, dtp->d_name, afd, 791 if ((actual_size = read(afd, buf, read_size)) < 0) 816 (void) close(afd); 817 afd = -1; 824 if (afd > 0) 825 (void) close(afd);
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 7576 FILE *afd; local 7611 if ((afd = fopen(ALIASFILE, "r")) == NULL) { 7617 while (fgets(line, sizeof (line), afd) != NULL) { 7658 if (fclose(afd) == EOF) {
|