Lines Matching refs:req
6 void on_read(uv_fs_t *req);
16 void on_write(uv_fs_t *req) { in on_write() argument
17 if (req->result < 0) { in on_write()
18 fprintf(stderr, "Write error: %s\n", uv_strerror((int)req->result)); in on_write()
25 void on_read(uv_fs_t *req) { in on_read() argument
26 if (req->result < 0) { in on_read()
27 fprintf(stderr, "Read error: %s\n", uv_strerror(req->result)); in on_read()
29 else if (req->result == 0) { in on_read()
34 else if (req->result > 0) { in on_read()
35 iov.len = req->result; in on_read()
40 void on_open(uv_fs_t *req) { in on_open() argument
43 assert(req == &open_req); in on_open()
44 if (req->result >= 0) { in on_open()
46 uv_fs_read(uv_default_loop(), &read_req, req->result, in on_open()
50 fprintf(stderr, "error opening file: %s\n", uv_strerror((int)req->result)); in on_open()