Lines Matching refs:req
9 uv_write_t req; member
22 void free_write_req(uv_write_t *req) { in free_write_req() argument
23 write_req_t *wr = (write_req_t*) req; in free_write_req()
28 void on_stdout_write(uv_write_t *req, int status) { in on_stdout_write() argument
29 free_write_req(req); in on_stdout_write()
32 void on_file_write(uv_write_t *req, int status) { in on_file_write() argument
33 free_write_req(req); in on_file_write()
37 write_req_t *req = (write_req_t*) malloc(sizeof(write_req_t)); in write_data() local
38 req->buf = uv_buf_init((char*) malloc(size), size); in write_data()
39 memcpy(req->buf.base, buf.base, size); in write_data()
40 uv_write((uv_write_t*) req, (uv_stream_t*)dest, &req->buf, 1, cb); in write_data()