Lines Matching refs:ret
57 int ret; in vchan_wr() local
61 ret = libxenvchan_write(ctrl, inbuf, insiz); in vchan_wr()
62 if (ret < 0) { in vchan_wr()
66 if (ret > 0) { in vchan_wr()
67 insiz -= ret; in vchan_wr()
68 memmove(inbuf, inbuf + ret, insiz); in vchan_wr()
73 int ret; in stdout_wr() local
77 ret = write(1, outbuf, outsiz); in stdout_wr()
78 if (ret < 0 && errno != EAGAIN) in stdout_wr()
80 if (ret > 0) { in stdout_wr()
81 outsiz -= ret; in stdout_wr()
82 memmove(outbuf, outbuf + ret, outsiz); in stdout_wr()
110 int ret; in main() local
143 ret = select(libxenvchan_fd + 1, &rfds, &wfds, NULL, NULL); in main()
144 if (ret < 0) { in main()
149 ret = read(0, inbuf + insiz, BUFSIZE - insiz); in main()
150 if (ret < 0 && errno != EAGAIN) in main()
152 if (ret == 0) { in main()
159 if (ret) in main()
160 insiz += ret; in main()
170 ret = libxenvchan_read(ctrl, outbuf + outsiz, BUFSIZE - outsiz); in main()
171 if (ret < 0) in main()
173 outsiz += ret; in main()