HomeSort by: relevance | last modified time | path
    Searched refs:afd (Results 1 - 11 of 11) sorted by relevancy

  /src/external/bsd/blocklist/test/
srvtest.c 64 process_tcp(int afd)
71 if ((n = read(afd, buffer, sizeof(buffer))) == -1)
74 printf("%s: sending %d %s\n", getprogname(), afd, buffer);
76 blocklist_r(b, 1, afd, buffer);
78 blocklist(1, afd, buffer);
84 process_udp(int afd)
95 if ((n = recvfrom(afd, buffer, sizeof(buffer), 0, (void *)&ss,
99 printf("%s: sending %d %s\n", getprogname(), afd, buffer);
100 blocklist_sa(1, afd, (void *)&ss, slen, buffer);
144 int afd; local
    [all...]
  /src/external/bsd/libbind/dist/irs/
getaddrinfo.c 130 static const struct afd { struct
190 const struct afd *, const char *));
194 static const struct afd *find_afd __P((int));
227 #define GET_AI(ai, afd, addr) \
230 (ai) = get_ai(pai, (afd), (addr)); \
740 const struct afd *afd; local
749 afd = find_afd(pai->ai_family);
750 if (afd == NULL)
754 GET_AI(cur->ai_next, afd, afd->a_addrany)
787 const struct afd *afd; local
1076 const struct afd *afd; local
1166 const struct afd *afd; local
1225 const struct afd *afd; local
    [all...]
getnameinfo.c 73 static struct afd { struct
111 struct afd *afd; local
136 afd = &afdl[i];
142 if (salen != afd->a_socklen) return EAI_FAIL;
145 addr = (const char *)sa + afd->a_off;
200 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
214 switch(afd->a_af) {
227 if (inet_ntop(afd->a_af, addr, numaddr
    [all...]
  /src/external/mpl/dhcp/bind/dist/lib/irs/
getnameinfo.c 119 /*% afd structure definition */
120 static struct afd { struct
153 struct afd *afd = NULL; local
187 afd = &afdl[i];
195 if (salen != afd->a_socklen) {
264 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) ==
270 if (afd->a_af == AF_INET6 &&
425 if (inet_ntop(afd->a_af, addr, numaddr,
  /src/crypto/external/apache2/openssl/dist/test/
bio_tfo_test.c 208 int afd = -1; /* accept socket */ local
268 if (!TEST_int_ge(afd = BIO_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol, 0), 0)
269 || !TEST_true(BIO_listen(afd, baddr, server_flags)))
274 if (!TEST_int_ge(getsockname(afd, (struct sockaddr *)&sstorage, &slen), 0))
300 sfd = BIO_accept_ex(afd, NULL, 0);
329 if (!TEST_int_ge(BIO_socket_wait(afd, 1, time(NULL) + 2), 0)) {
336 sfd = BIO_accept_ex(afd, NULL, 0);
372 if (!TEST_int_ge(BIO_socket_wait(afd, 1, time(NULL) + 2), 0)) {
379 sfd = BIO_accept_ex(afd, NULL, 0);
409 BIO_closesocket(afd);
    [all...]
  /src/lib/libc/net/
getnameinfo.c 83 static const struct afd { struct
253 const struct afd *afd; local
273 afd = &afdl[i];
279 if (salen < afd->a_socklen)
284 addr = (const char *)(const void *)sa + afd->a_off;
370 switch(afd->a_af) {
383 if (inet_ntop(afd->a_af, addr, numaddr,
396 hp = gethostbyaddr_r(addr, afd->a_addrlen, afd->a_af, &hent
    [all...]
getaddrinfo.c 134 static const struct afd { struct
249 const struct afd *, const char *);
254 static const struct afd *find_afd(int);
317 #define GET_AI(ai, afd, addr) \
320 (ai) = get_ai(pai, (afd), (addr)); \
1227 const struct afd *afd; local
1257 afd = find_afd(pai->ai_family);
1258 if (afd == NULL)
1262 GET_AI(cur->ai_next, afd, afd->a_addrany)
1293 const struct afd *afd; local
1611 const struct afd *afd; local
1710 const struct afd *afd; local
    [all...]
  /src/tests/net/net/
t_mapped.c 168 int sfd = -1, cfd = -1, afd = -1; local
208 afd = accept(sfd, (struct sockaddr *)&paddr, &plen);
209 if (afd == -1)
223 if (read(afd, buf, sizeof(mymsg)) != sizeof(mymsg))
229 (void)close(afd);
239 (void)close(afd);
  /src/usr.bin/cdplay/
cdplay.c 153 int afd; member in struct:__anon8222
254 da.afd = -1;
392 if (da.afd == -1 && !openaudio()) {
422 close(da.afd);
423 da.afd = -1;
888 (void)write(da.afd, da.aubuf, aulen);
1400 if (da.afd > -1)
1402 da.afd = open(da.auname, O_WRONLY);
1403 if (da.afd < 0) {
1410 rc = ioctl(da.afd, AUDIO_GETENC, &ae)
    [all...]
  /src/crypto/external/bsd/openssl/dist/test/helpers/
ssltestlib.c 919 int afd = -1, cfd = -1, sfd = -1; local
925 afd = socket(AF_INET, SOCK_STREAM, 0);
926 if (afd < 0)
929 if (bind(afd, (struct sockaddr*)&sin, sizeof(sin)) < 0)
932 if (getsockname(afd, (struct sockaddr*)&sin, &slen) < 0)
935 if (listen(afd, 1) < 0)
942 if (set_nb(afd) == -1)
946 sfd = accept(afd, NULL, 0);
969 if (afd != -1)
970 close(afd);
    [all...]
  /src/crypto/external/apache2/openssl/dist/test/helpers/
ssltestlib.c 1051 int afd = -1, cfd = -1, sfd = -1; local
1057 afd = BIO_socket(AF_INET, socktype,
1059 if (afd == INVALID_SOCKET)
1062 if (bind(afd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
1065 if (getsockname(afd, (struct sockaddr *)&sin, &slen) < 0)
1073 if (socktype == SOCK_STREAM && listen(afd, 1) < 0)
1081 if (!BIO_socket_nbio(afd, 1))
1090 sfd = afd;
1091 afd = -1;
1095 sfd = accept(afd, NULL, 0)
    [all...]

Completed in 32 milliseconds