Lines Matching refs:res
170 uint64_t res; in initProcessPipe() local
171 readFully(&res, sizeof(res)); in initProcessPipe()
172 return res; in initProcessPipe()
216 size_t res = len; in writeFully() local
219 while (res > 0) { in writeFully()
220 ssize_t stat = transferToHost((const char *)(buf) + (len - res), res); in writeFully()
222 res -= stat; in writeFully()
257 size_t res = len; in readFully() local
258 while (res > 0) { in readFully()
259 ssize_t stat = transferFromHost((char *)(buf) + len - res, res); in readFully()
268 ", res %zu): %s, lethal error, exiting.", buf, len, res, in readFully()
273 res -= stat; in readFully()
312 int res = transferFromHost(p, len); in recv() local
313 if (res > 0) { in recv()
314 p += res; in recv()
315 ret += res; in recv()
316 len -= res; in recv()
319 if (res == 0) { /* EOF */ in recv()