Lines Matching refs:rv

30     auto rv = fn(std::forward<Params>(params)...);  in syscallRetry()  local
31 while ((rv == -1) && (errno == EINTR)) { in syscallRetry()
32 rv = fn(std::forward<Params>(params)...); in syscallRetry()
34 return rv; in syscallRetry()
61 auto rv = ::getsockname(sock.get(), addr, addrlen); in getsockname() local
62 if (rv == -1) { in getsockname()
70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen); in getsockopt() local
71 if (rv == -1) { in getsockopt()
79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen); in setsockopt() local
80 if (rv == -1) { in setsockopt()
87 auto rv = ::bind(sock.get(), addr, addrlen); in bind() local
88 if (rv == -1) { in bind()
95 auto rv = syscallRetry(::connect, sock.get(), addr, addrlen); in connect() local
96 if (rv == -1) { in connect()
103 auto rv = ::ioctl(sock.get(), request, ifr); in ioctl() local
104 if (rv == -1) { in ioctl()
122 auto rv = syscallRetry(::ppoll, fds, nfds, &ts, nullptr); in ppoll() local
123 if (rv == -1) { in ppoll()
126 return rv; in ppoll()
130 auto rv = syscallRetry(::writev, fd.get(), iov.data(), iov.size()); in writev() local
131 if (rv == -1) { in writev()
134 return rv; in writev()
138 auto rv = syscallRetry(::write, fd.get(), buf.base(), buf.size()); in write() local
139 if (rv == -1) { in write()
142 return static_cast<size_t>(rv); in write()
146 auto rv = syscallRetry(::read, fd.get(), buf.base(), buf.size()); in read() local
147 if (rv == -1) { in read()
150 return Slice(buf.base(), rv); in read()
155 auto rv = syscallRetry(::sendto, sock.get(), buf.base(), buf.size(), flags, dst, dstlen); in sendto() local
156 if (rv == -1) { in sendto()
159 return static_cast<size_t>(rv); in sendto()
164 auto rv = syscallRetry(::recvfrom, sock.get(), dst.base(), dst.size(), flags, src, srclen); in recvfrom() local
165 if (rv == -1) { in recvfrom()
168 if (rv == 0) { in recvfrom()
171 return take(dst, rv); in recvfrom()
175 auto rv = ::shutdown(fd.get(), how); in shutdown() local
176 if (rv == -1) { in shutdown()
183 auto rv = ::close(fd.get()); in close() local
184 if (rv == -1) { in close()
199 pid_t rv = ::fork(); in fork() local
200 if (rv == -1) { in fork()
203 return rv; in fork()
207 auto rv = ::vfprintf(file, format, ap); in vfprintf() local
208 if (rv == -1) { in vfprintf()
211 return rv; in vfprintf()
215 auto rv = ::vfscanf(file, format, ap); in vfscanf() local
216 if (rv == -1) { in vfscanf()
219 return rv; in vfscanf()
223 auto rv = ::fclose(file); in fclose() local
224 if (rv == -1) { in fclose()