Lines Matching refs:rval
140 ssize_t rval = write(aFile, aBuffer, aSize); in DoWrite() local
141 if (rval <= 0) in DoWrite()
143 VerifyOrExit((rval == -1) && (errno == EINTR), perror("write"); ret = false); in DoWrite()
147 aBuffer = reinterpret_cast<const uint8_t *>(aBuffer) + rval; in DoWrite()
148 aSize -= static_cast<size_t>(rval); in DoWrite()
194 int rval; in ReconnectSession() local
199 rval = ConnectSession(aConfig); in ReconnectSession()
201 VerifyOrExit(rval == -1, ok = true); in ReconnectSession()
367 ssize_t rval = read(sSessionFd, buffer, sizeof(buffer)); in main() local
368 VerifyOrExit(rval != -1, perror("read"); ret = OT_EXIT_FAILURE); in main()
370 if (rval == 0) in main()
383 … VerifyOrExit(DoWrite(STDOUT_FILENO, buffer, static_cast<size_t>(rval)), ret = OT_EXIT_FAILURE); in main()
387 for (ssize_t i = 0; i < rval; i++) in main()