| 178 | } |
| 179 | |
| 180 | ssize_t recv(int fd, void* buf, size_t count, int flags, Timeout timeout) { |
| 181 | return DOIO_ONCE(::recv(fd, buf, count, flags), wait_for_fd_readable(fd, timeout)); |
| 182 | } |
| 183 | |
| 184 | ssize_t recvmsg(int fd, struct msghdr* msg, int flags, Timeout timeout) { |
| 185 | return DOIO_ONCE(::recvmsg(fd, msg, flags), wait_for_fd_readable(fd, timeout)); |