Lines Matching refs:rc
89 ssize_t rc = send_msg(mSocket.fd.get(), &msg); in interruptableWriteFully() local
90 if (rc == ERR_NOT_ENOUGH_BUFFER) { in interruptableWriteFully()
97 rc = ::wait(mSocket.fd.get(), &uevt, INFINITE_TIME); in interruptableWriteFully()
98 if (rc < 0) { in interruptableWriteFully()
99 return statusFromTrusty(rc); in interruptableWriteFully()
108 rc = send_msg(mSocket.fd.get(), &msg); in interruptableWriteFully()
110 if (rc < 0) { in interruptableWriteFully()
111 return statusFromTrusty(rc); in interruptableWriteFully()
113 LOG_ALWAYS_FATAL_IF(static_cast<size_t>(rc) != size, in interruptableWriteFully()
114 "Sent the wrong number of bytes %zd!=%zu", rc, size); in interruptableWriteFully()
159 ssize_t rc = read_msg(mSocket.fd.get(), mMessageInfo.id, mMessageOffset, &msg); in interruptableReadFully() local
160 if (rc < 0) { in interruptableReadFully()
161 return statusFromTrusty(rc); in interruptableReadFully()
164 size_t processSize = static_cast<size_t>(rc); in interruptableReadFully()
225 int rc; in ensureMessage() local
233 rc = ::wait(mSocket.fd.get(), &uevt, wait ? INFINITE_TIME : 0); in ensureMessage()
234 if (rc < 0) { in ensureMessage()
235 if (rc == ERR_TIMED_OUT && !wait) { in ensureMessage()
239 return statusFromTrusty(rc); in ensureMessage()
252 rc = get_msg(mSocket.fd.get(), &mMessageInfo); in ensureMessage()
253 if (rc < 0) { in ensureMessage()
254 return statusFromTrusty(rc); in ensureMessage()