Searched refs:afd (Results 1 - 9 of 9) sorted by relevance

/freebsd-10.0-release/contrib/ntp/arlib/
H A Dsample.c26 int afd, nfd, pid = getpid(), del; local
28 afd = ar_init(ARES_INITLIST|ARES_CALLINIT|ARES_INITSOCK);
30 (void)printf("afd = %d pid = %d\n",afd, pid);
39 FD_SET(afd,&rd);
76 if (FD_ISSET(afd, &rd))
77 (void)waitonlookup(afd);
104 int waitonlookup(afd)
105 int afd;
121 FD_SET(afd,
[all...]
/freebsd-10.0-release/contrib/tcpdump/missing/
H A Dgetnameinfo.c70 static struct afd { struct
109 struct afd *afd; local
131 afd = &afdl[i];
137 if (salen != afd->a_socklen)
141 addr = (char *)sa + afd->a_off;
216 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr))
223 if (afd->a_af == AF_INET6 &&
244 hp = getipnodebyaddr(addr, afd->a_addrlen, afd
[all...]
/freebsd-10.0-release/lib/libc/net/
H A Dgetnameinfo.c97 static const struct afd { struct
123 const struct afd *afd; local
140 afd = &afdl[i];
146 if (salen != afd->a_socklen)
151 addr = (const char *)sa + afd->a_off;
229 switch(afd->a_af) {
242 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr))
252 hp = getipnodebyaddr(addr, afd->a_addrlen, afd
[all...]
H A Dgetaddrinfo.c128 static const struct afd { struct
240 const struct afd *, const char *);
244 static const struct afd *find_afd(int);
291 #define GET_AI(ai, afd, addr) \
294 (ai) = get_ai(pai, (afd), (addr)); \
372 const struct afd *afd; local
479 for (afd = afdl; afd->a_af; afd
1124 const struct afd *afd; local
1170 const struct afd *afd; local
1306 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr) argument
1511 const struct afd *afd; local
1868 const struct afd *afd; local
[all...]
/freebsd-10.0-release/contrib/openbsm/libbsm/
H A Dbsm_wrappers.c69 int error, afd, subj_ex; local
89 afd = au_open();
90 if (afd < 0) {
148 (void) au_close(afd, AU_TO_NO_WRITE, au_event);
152 if (au_write(afd, token) < 0) {
156 (void) au_close(afd, AU_TO_NO_WRITE, au_event);
168 (void) au_close(afd, AU_TO_NO_WRITE, au_event);
172 if (au_write(afd, token) < 0) {
176 (void) au_close(afd, AU_TO_NO_WRITE, au_event);
185 (void) au_close(afd, AU_TO_NO_WRIT
[all...]
/freebsd-10.0-release/contrib/sendmail/src/
H A Dcollect.c299 int afd; local
777 else if ((afd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL)) < 0)
784 else if (fsync(afd) < 0)
H A Dconf.c1933 static int afd = -1; local
1940 if (afd == -1 || lseek(afd, 0L, SEEK_SET) == -1)
1944 afd = open(_PATH_AVENRUN, O_RDONLY|O_SYNC);
1945 if (afd < 0)
1954 r = read(afd, &avenrun, sizeof(avenrun));
H A Dmilter.c1751 int afd; local
1767 else if ((afd = sm_io_getinfo(e->e_dfp, SM_IO_WHAT_FD, NULL)) >= 0
1768 && fsync(afd) < 0)
H A Dsrvrsmtp.c3591 int afd; local
3622 else if ((afd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL)) < 0)
3629 else if (fsync(afd) < 0)

Completed in 209 milliseconds