/freebsd-current/contrib/blocklist/test/ |
H A D | srvtest.c | 62 process_tcp(int afd) argument 69 if ((n = read(afd, buffer, sizeof(buffer))) == -1) 72 printf("%s: sending %d %s\n", getprogname(), afd, buffer); 74 blacklist_r(b, 1, afd, buffer); 76 blacklist(1, afd, buffer); 82 process_udp(int afd) argument 93 if ((n = recvfrom(afd, buffer, sizeof(buffer), 0, (void *)&ss, 97 printf("%s: sending %d %s\n", getprogname(), afd, buffer); 98 blacklist_sa(1, afd, (void *)&ss, slen, buffer); 142 int afd; local [all...] |
/freebsd-current/lib/libc/net/ |
H A D | getnameinfo.c | 65 static const struct afd *find_afd(int); 66 static int getnameinfo_inet(const struct afd *, 74 static int getnameinfo_link(const struct afd *, 78 static int getnameinfo_un(const struct afd *, 82 static const struct afd { struct 87 int (*a_func)(const struct afd *, 116 const struct afd *afd; local 121 afd = find_afd(sa->sa_family); 122 if (afd 164 const struct afd *afd; local 176 getnameinfo_inet(const struct afd *afd, const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) argument 421 getnameinfo_link(const struct afd *afd, const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) argument 515 getnameinfo_un(const struct afd *afd, const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) argument [all...] |
H A D | getaddrinfo.c | 123 static const struct afd { struct 263 const struct afd *, const char *); 267 static const struct afd *find_afd(int); 317 #define GET_AI(ai, afd, addr) \ 320 (ai) = get_ai(pai, (afd), (addr)); \ 397 const struct afd *afd; local 523 for (afd = afdl; afd->a_af; afd 1195 const struct afd *afd; local 1244 const struct afd *afd; local 1406 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr) argument 1585 const struct afd *afd; local 1986 const struct afd *afd; local [all...] |
/freebsd-current/tests/sys/cddl/zfs/bin/ |
H A D | mktree.c | 151 int afd = -1; local 179 if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) { 184 if (write(afd, pbuf, 1024) < 1024) { 185 (void) fprintf(stderr, "write(afd, pbuf, 1024) failed." 190 (void) close(afd);
|
/freebsd-current/contrib/openbsm/libbsm/ |
H A D | bsm_wrappers.c | 73 int error, afd, subj_ex; local 93 afd = au_open(); 94 if (afd < 0) { 152 (void) au_close(afd, AU_TO_NO_WRITE, au_event); 156 if (au_write(afd, token) < 0) { 160 (void) au_close(afd, AU_TO_NO_WRITE, au_event); 172 (void) au_close(afd, AU_TO_NO_WRITE, au_event); 176 if (au_write(afd, token) < 0) { 180 (void) au_close(afd, AU_TO_NO_WRITE, au_event); 189 (void) au_close(afd, AU_TO_NO_WRIT [all...] |
/freebsd-current/crypto/openssl/test/helpers/ |
H A D | ssltestlib.c | 910 int afd = -1, cfd = -1, sfd = -1; local 916 afd = socket(AF_INET, SOCK_STREAM, 0); 917 if (afd < 0) 920 if (bind(afd, (struct sockaddr*)&sin, sizeof(sin)) < 0) 923 if (getsockname(afd, (struct sockaddr*)&sin, &slen) < 0) 926 if (listen(afd, 1) < 0) 933 if (set_nb(afd) == -1) 937 sfd = accept(afd, NULL, 0); 960 if (afd != -1) 961 close(afd); [all...] |
/freebsd-current/contrib/sendmail/src/ |
H A D | collect.c | 371 int afd; local 894 else if ((afd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL)) < 0) 901 else if (fsync(afd) < 0)
|
H A D | conf.c | 2013 static int afd = -1; local 2020 if (afd == -1 || lseek(afd, 0L, SEEK_SET) == -1) 2024 afd = open(_PATH_AVENRUN, O_RDONLY|O_SYNC); 2025 if (afd < 0) 2034 r = read(afd, &avenrun, sizeof(avenrun));
|
H A D | milter.c | 1750 int afd; local 1766 else if ((afd = sm_io_getinfo(e->e_dfp, SM_IO_WHAT_FD, NULL)) >= 0 1767 && fsync(afd) < 0)
|
H A D | srvrsmtp.c | 4282 int afd; local 4313 else if ((afd = sm_io_getinfo(df, SM_IO_WHAT_FD, NULL)) < 0) 4320 else if (fsync(afd) < 0)
|