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

/netbsd-current/external/bsd/blocklist/test/
H A Dsrvtest.c62 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 blocklist_r(b, 1, afd, buffer);
76 blocklist(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 blocklist_sa(1, afd, (void *)&ss, slen, buffer);
142 int afd; local
[all...]
/netbsd-current/external/bsd/libbind/dist/irs/
H A Dgetaddrinfo.c130 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, af
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...]
H A Dgetnameinfo.c73 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
[all...]
/netbsd-current/external/mpl/dhcp/bind/dist/lib/irs/
H A Dgetnameinfo.c119 /*% 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,
/netbsd-current/lib/libc/net/
H A Dgetnameinfo.c83 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
[all...]
H A Dgetaddrinfo.c134 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)); \
1224 const struct afd *afd; local
1254 afd = find_afd(pai->ai_family);
1255 if (afd == NULL)
1259 GET_AI(cur->ai_next, afd, af
1290 const struct afd *afd; local
1488 get_ai(const struct addrinfo *pai, const struct afd *afd, const char *addr) argument
1608 const struct afd *afd; local
1707 const struct afd *afd; local
[all...]
/netbsd-current/tests/net/net/
H A Dt_mapped.c168 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);
/netbsd-current/usr.bin/cdplay/
H A Dcdplay.c153 int afd; member in struct:__anon14
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_GETEN
1440 readaudio(int afd, int lba, int blocks, u_char *data) argument
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/test/helpers/
H A Dssltestlib.c919 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...]
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/mips/
H A Dmicromips@msa.d378 [0-9a-f]+ <[^>]*> 5afd e6f3 dpsub_u\.d \$w27,\$w28,\$w29
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/tic54x/
H A Dall-opcodes.d2823 afd: 0f0a.*
6919 1afd: 0c1c.*
11015 2afd: 0c0d.*
15111 3afd: 6ff1.*
19207 4afd: 0f1d.*
22055 561d: 0afd.*
23303 5afd: 0c1d.*
27399 6afd: 0cb9.*
31495 7afd: 0c18.*
35591 8afd
[all...]

Completed in 499 milliseconds