Lines Matching refs:open_req
42 static uv_fs_t open_req; variable
90 r = uv_fs_open(NULL, &open_req, empty_file, in refresh()
93 ASSERT(open_req.result >= 0); in refresh()
94 uv_fs_req_cleanup(&open_req); in refresh()
96 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in refresh()
104 r = uv_fs_open(NULL, &open_req, dummy_file, in refresh()
107 ASSERT(open_req.result >= 0); in refresh()
108 uv_fs_req_cleanup(&open_req); in refresh()
111 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in refresh()
116 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in refresh()
133 r = uv_fs_open(NULL, &open_req, file, flags, S_IWUSR | S_IRUSR, NULL); in openFail()
135 ASSERT(open_req.result == error); in openFail()
136 uv_fs_req_cleanup(&open_req); in openFail()
139 r = uv_fs_open(NULL, &open_req, file, flags, S_IWUSR | S_IRUSR, NULL); in openFail()
141 ASSERT(open_req.result == error); in openFail()
142 uv_fs_req_cleanup(&open_req); in openFail()
152 r = uv_fs_open(NULL, &open_req, file, flags, S_IWUSR | S_IRUSR, NULL); in refreshOpen()
154 ASSERT(open_req.result >= 0); in refreshOpen()
155 uv_fs_req_cleanup(&open_req); in refreshOpen()
164 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeExpect()
170 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeExpect()
175 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in writeExpect()
181 r = uv_fs_open(NULL, &open_req, file, UV_FS_O_RDONLY, S_IWUSR | S_IRUSR, NULL); in writeExpect()
183 ASSERT(open_req.result >= 0); in writeExpect()
184 uv_fs_req_cleanup(&open_req); in writeExpect()
187 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in writeExpect()
193 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in writeExpect()
207 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeFail()
213 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeFail()
218 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in writeFail()
232 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in readExpect()
238 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in readExpect()
252 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in readFail()
258 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in readFail()
263 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in readFail()