Lines Matching refs:result
17 if (req->result < 0) { in on_write()
18 fprintf(stderr, "Write error: %s\n", uv_strerror((int)req->result)); in on_write()
21 uv_fs_read(uv_default_loop(), &read_req, open_req.result, &iov, 1, -1, on_read); in on_write()
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()
32 uv_fs_close(uv_default_loop(), &close_req, open_req.result, NULL); in on_read()
34 else if (req->result > 0) { in on_read()
35 iov.len = req->result; in on_read()
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()