Lines Matching refs:rval

196     ssize_t rval;  in Read()  local
198 rval = read(mSockFd, buffer, sizeof(buffer)); in Read()
200 if (rval > 0) in Read()
202 Decode(buffer, static_cast<uint16_t>(rval)); in Read()
204 else if ((rval < 0) && (errno != EAGAIN) && (errno != EINTR)) in Read()
242 ssize_t rval = write(mSockFd, aFrame, aLength); in Write() local
244 if (rval == aLength) in Write()
248 else if (rval > 0) in Write()
250 aLength -= static_cast<uint16_t>(rval); in Write()
251 aFrame += static_cast<uint16_t>(rval); in Write()
253 else if (rval < 0) in Write()
312 int rval; in WaitForFrame() local
319 rval = select(mSockFd + 1, &read_fds, nullptr, &error_fds, &timeout); in WaitForFrame()
321 if (rval > 0) in WaitForFrame()
336 else if (rval == 0) in WaitForFrame()
398 int rval; in WaitForWritable() local
407 rval = select(mSockFd + 1, nullptr, &writeFds, &errorFds, &timeout); in WaitForWritable()
409 if (rval > 0) in WaitForWritable()
424 else if ((rval < 0) && (errno != EINTR)) in WaitForWritable()
453 int rval = 0; in OpenFile() local
470 VerifyOrExit((rval = tcgetattr(fd, &tios)) == 0); in OpenFile()
619 … VerifyOrExit((rval = cfsetspeed(&tios, static_cast<speed_t>(speed))) == 0, perror("cfsetspeed")); in OpenFile()
620 rval = tcsetattr(fd, TCSANOW, &tios); in OpenFile()
623 if (rval) in OpenFile()
626 VerifyOrExit((rval = tcgetattr(fd, &orig_tios)) == 0, perror("tcgetattr")); in OpenFile()
627 … VerifyOrExit((rval = cfsetispeed(&tios, cfgetispeed(&orig_tios))) == 0, perror("cfsetispeed")); in OpenFile()
628 … VerifyOrExit((rval = cfsetospeed(&tios, cfgetospeed(&orig_tios))) == 0, perror("cfsetospeed")); in OpenFile()
629 VerifyOrExit((rval = tcsetattr(fd, TCSANOW, &tios)) == 0, perror("tcsetattr")); in OpenFile()
630 VerifyOrExit((rval = ioctl(fd, IOSSIOSPEED, &speed)) == 0, perror("ioctl IOSSIOSPEED")); in OpenFile()
633 VerifyOrExit(rval == 0, perror("tcsetattr")); in OpenFile()
635 VerifyOrExit((rval = tcflush(fd, TCIOFLUSH)) == 0); in OpenFile()
639 if (rval != 0) in OpenFile()
665 int rval = -1; in ForkPty() local
700 VerifyOrDie((rval = execvp(argv[0], argv)) != -1, OT_EXIT_ERROR_ERRNO); in ForkPty()
704 VerifyOrDie((rval = fcntl(fd, F_GETFL)) != -1, OT_EXIT_ERROR_ERRNO); in ForkPty()
705 …VerifyOrDie((rval = fcntl(fd, F_SETFL, rval | O_NONBLOCK | O_CLOEXEC)) != -1, OT_EXIT_ERROR_ERRNO); in ForkPty()