Lines Matching refs:r

64     int r = vasprintf(&formatted, format, al);  in tellparent_vmessage()  local
65 if (r < 0) { perror("memory allocation failed during logging"); exit(-1); } in tellparent_vmessage()
110 ssize_t r = read(fd, buf, len); in read_exactly() local
111 if (r<=0) return r; in read_exactly()
112 assert(r <= len); in read_exactly()
113 len -= r; in read_exactly()
114 buf = (char*)buf + r; in read_exactly()
122 void *r = malloc(sz); in xmalloc() local
123 if (!r) { perror("memory allocation failed"); exit(-1); } in xmalloc()
124 return r; in xmalloc()
151 int r = dup2(unwriteable_fd, io_fd); in save_signal_handler() local
152 if (r != io_fd) in save_signal_handler()
165 int r; in setup_signals() local
173 r = sigaction(SIGTERM, &sa, 0); in setup_signals()
174 if (r) fail(errno,"sigaction SIGTERM failed"); in setup_signals()
178 r = sigprocmask(SIG_UNBLOCK,&spmask,0); in setup_signals()
179 if (r) fail(errno,"sigprocmask unblock SIGTERM failed"); in setup_signals()
192 int r = write(1, msg, len); in transmit() local
193 if (r<0) { perror("write"); exit(-1); } in transmit()
194 assert(r >= 0); in transmit()
195 assert(r <= len); in transmit()
196 len -= r; in transmit()
197 msg += r; in transmit()
213 int r = read_exactly(0, &v, sizeof(v)); in helper_getreply() local
214 if (r<=0) exit(-2); in helper_getreply()
237 int r; in main() local
261 r = xc_domain_save(xch, io_fd, dom, flags, &cb, stream_type, recv_fd); in main()
262 complete(r); in main()
286 r = xc_domain_restore(xch, io_fd, dom, store_evtchn, &store_mfn, in main()
290 complete(r); in main()