Lines Matching refs:rval

193     ssize_t rval;  in Read()  local
195 rval = read(mSockFd, buffer, sizeof(buffer)); in Read()
197 if (rval > 0) in Read()
199 Decode(buffer, static_cast<uint16_t>(rval)); in Read()
201 else if ((rval < 0) && (errno != EAGAIN) && (errno != EINTR)) in Read()
236 ssize_t rval = write(mSockFd, aFrame, aLength); in Write() local
238 if (rval == aLength) in Write()
242 else if (rval > 0) in Write()
244 aLength -= static_cast<uint16_t>(rval); in Write()
245 aFrame += static_cast<uint16_t>(rval); in Write()
247 else if (rval < 0) in Write()
293 int rval; in WaitForFrame() local
300 rval = select(mSockFd + 1, &read_fds, nullptr, &error_fds, &timeout); in WaitForFrame()
302 if (rval > 0) in WaitForFrame()
317 else if (rval == 0) in WaitForFrame()
360 int rval; in WaitForWritable() local
369 rval = select(mSockFd + 1, nullptr, &writeFds, &errorFds, &timeout); in WaitForWritable()
371 if (rval > 0) in WaitForWritable()
386 else if ((rval < 0) && (errno != EINTR)) in WaitForWritable()
415 int rval = 0; in OpenFile() local
433 VerifyOrExit((rval = tcgetattr(fd, &tios)) == 0); in OpenFile()
573 … VerifyOrExit((rval = cfsetspeed(&tios, static_cast<speed_t>(speed))) == 0, perror("cfsetspeed")); in OpenFile()
574 VerifyOrExit((rval = tcsetattr(fd, TCSANOW, &tios)) == 0, perror("tcsetattr")); in OpenFile()
575 VerifyOrExit((rval = tcflush(fd, TCIOFLUSH)) == 0); in OpenFile()
579 if (rval != 0) in OpenFile()
605 int rval = -1; in ForkPty() local
640 VerifyOrDie((rval = execvp(argv[0], argv)) != -1, OT_EXIT_ERROR_ERRNO); in ForkPty()
644 VerifyOrDie((rval = fcntl(fd, F_GETFL)) != -1, OT_EXIT_ERROR_ERRNO); in ForkPty()
645 …VerifyOrDie((rval = fcntl(fd, F_SETFL, rval | O_NONBLOCK | O_CLOEXEC)) != -1, OT_EXIT_ERROR_ERRNO); in ForkPty()