Lines Matching defs:file
169 options.file = exepath;
191 options.file = options.args[0] = "program-that-had-better-not-exist";
211 options.file = options.args[0] = "program-that-had-better-not-exist";
318 uv_file file;
333 file = r;
338 options.stdio[1].data.fd = file;
351 r = uv_fs_read(NULL, &fs_req, file, &buf, 1, 0, NULL);
355 r = uv_fs_close(NULL, &fs_req, file, NULL);
372 uv_file file;
387 file = r;
392 options.stdio[1].data.fd = file;
394 options.stdio[2].data.fd = file;
407 r = uv_fs_read(NULL, &fs_req, file, &buf, 1, 0, NULL);
411 r = uv_fs_close(NULL, &fs_req, file, NULL);
429 uv_file file;
439 /* Replace stderr with our file */
448 file = dup2(r, STDERR_FILENO);
449 ASSERT_NE(file, -1);
454 options.stdio[1].data.fd = file;
456 options.stdio[2].data.fd = file;
469 r = uv_fs_read(NULL, &fs_req, file, &buf, 1, 0, NULL);
473 r = uv_fs_close(NULL, &fs_req, file, NULL);
1362 options.file = options.args[0] = "program-that-had-better-not-exist";
1410 options.file = options.args[0] = new_exepath;
1427 char file[64];
1431 /* Set up the process, but make sure that the file to run is relative and
1440 snprintf(file, sizeof(file), "%.*s_no_ext",
1449 options.file = options.args[0] = file;
1767 /* uv_pipe_open() takes ownership of the file descriptor. */
1816 char file[64];
1831 /* Set up the process, but make sure that the file to run is relative and
1839 strcpy(file, exepath + len);
1865 options.file = file;
1866 options.args[0] = file;
1973 options.file = args[0];
2007 dummy_options.file = args[0] = "program-that-had-better-not-exist";
2104 options.file = options.args[0] = sep + 1;