Lines Matching refs:fd_acc
108 int fd_acc = accept4(fd, reinterpret_cast<struct sockaddr*>(addr), &len, SOCK_CLOEXEC); in TestAccept4() local
109 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestAccept4()
112 AssertCloseOnExec(fd_acc, true); in TestAccept4()
114 close(fd_acc); in TestAccept4()
141 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestRecvMMsg() local
142 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestRecvMMsg()
163 static_cast<size_t>(recvmmsg(fd_acc, msgs, NUM_RECV_MSGS, 0, &ts))) in TestRecvMMsg()
169 close(fd_acc); in TestRecvMMsg()
209 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestSendMMsg() local
210 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestSendMMsg()
214 FD_SET(fd_acc, &read_set); in TestSendMMsg()
220 ASSERT_LT(0, select(fd_acc+1, &read_set, nullptr, nullptr, &tv)); in TestSendMMsg()
223 static_cast<size_t>(recv(fd_acc, buffer, sizeof(buffer), 0))); in TestSendMMsg()
227 close(fd_acc); in TestSendMMsg()