/src/tests/net/net/ |
t_mapped.c | 168 int sfd = -1, cfd = -1, afd = -1; local in function:test 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/lib/libc/net/ |
getnameinfo.c | 83 static const struct afd { struct 253 const struct afd *afd; local in function:getnameinfo_inet 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)); \ 1224 const struct afd *afd; local in function:explore_null 1254 afd = find_afd(pai->ai_family); 1255 if (afd == NULL) 1259 GET_AI(cur->ai_next, afd, afd->a_addrany) 1290 const struct afd *afd; local in function:explore_numeric 1608 const struct afd *afd; local in function:find_afd 1707 const struct afd *afd; local in function:getanswer [all...] |
/src/usr.bin/cdplay/ |
cdplay.c | 153 int afd; member in struct:__anon2e93dcf70108 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...] |