Lines Matching defs:file
51 /* Opening the same file multiple times quickly can cause uv_fs_open to fail
52 * with EBUSY, so append an identifier to the file name for each operation */
128 static void openFail(char *file, int error) {
133 r = uv_fs_open(NULL, &open_req, file, flags, S_IWUSR | S_IRUSR, NULL);
138 /* Ensure the first call does not create the file */
139 r = uv_fs_open(NULL, &open_req, file, flags, S_IWUSR | S_IRUSR, NULL);
147 static void refreshOpen(char *file) {
152 r = uv_fs_open(NULL, &open_req, file, flags, S_IWUSR | S_IRUSR, NULL);
158 static void writeExpect(char *file, char *expected, int size) {
161 refreshOpen(file);
181 r = uv_fs_open(NULL, &open_req, file, UV_FS_O_RDONLY, S_IWUSR | S_IRUSR, NULL);
201 static void writeFail(char *file, int error) {
204 refreshOpen(file);
226 static void readExpect(char *file, char *expected, int size) {
229 refreshOpen(file);
246 static void readFail(char *file, int error) {
249 refreshOpen(file);