Lines Matching refs:options

48 static uv_process_options_t options;  variable
169 options.file = exepath; in init_process_options()
170 options.args = args; in init_process_options()
171 options.exit_cb = exit_cb; in init_process_options()
172 options.flags = 0; in init_process_options()
191 options.file = options.args[0] = "program-that-had-better-not-exist"; in TEST_IMPL()
193 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
211 options.file = options.args[0] = "program-that-had-better-not-exist"; in TEST_IMPL()
213 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
250 options.env = env; in TEST_IMPL()
253 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
269 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
291 options.stdio = stdio; in TEST_IMPL()
292 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
293 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
294 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
295 options.stdio_count = 2; in TEST_IMPL()
297 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
335 options.stdio = stdio; in TEST_IMPL()
336 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
337 options.stdio[1].flags = UV_INHERIT_FD; in TEST_IMPL()
338 options.stdio[1].data.fd = file; in TEST_IMPL()
339 options.stdio_count = 2; in TEST_IMPL()
341 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
389 options.stdio = stdio; in TEST_IMPL()
390 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
391 options.stdio[1].flags = UV_INHERIT_FD; in TEST_IMPL()
392 options.stdio[1].data.fd = file; in TEST_IMPL()
393 options.stdio[2].flags = UV_INHERIT_FD; in TEST_IMPL()
394 options.stdio[2].data.fd = file; in TEST_IMPL()
395 options.stdio_count = 3; in TEST_IMPL()
397 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
451 options.stdio = stdio; in TEST_IMPL()
452 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
453 options.stdio[1].flags = UV_INHERIT_FD; in TEST_IMPL()
454 options.stdio[1].data.fd = file; in TEST_IMPL()
455 options.stdio[2].flags = UV_INHERIT_FD; in TEST_IMPL()
456 options.stdio[2].data.fd = file; in TEST_IMPL()
457 options.stdio_count = 3; in TEST_IMPL()
459 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
528 options.stdio = stdio; in TEST_IMPL()
529 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
530 options.stdio[1].flags = UV_INHERIT_FD; in TEST_IMPL()
531 options.stdio[1].data.fd = stderr_file; in TEST_IMPL()
532 options.stdio[2].flags = UV_INHERIT_FD; in TEST_IMPL()
533 options.stdio[2].data.fd = stdout_file; in TEST_IMPL()
534 options.stdio_count = 3; in TEST_IMPL()
536 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
596 options.stdio = stdio; in TEST_IMPL()
597 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE; in TEST_IMPL()
598 options.stdio[0].data.stream = (uv_stream_t*) ∈ in TEST_IMPL()
599 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
600 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
601 options.stdio_count = 2; in TEST_IMPL()
603 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
634 options.stdio = stdio; in TEST_IMPL()
635 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
636 options.stdio[1].flags = UV_IGNORE; in TEST_IMPL()
637 options.stdio[2].flags = UV_IGNORE; in TEST_IMPL()
638 options.stdio[3].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
639 options.stdio[3].data.stream = (uv_stream_t*) &pipe; in TEST_IMPL()
640 options.stdio_count = 4; in TEST_IMPL()
642 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
714 options.stdio = stdio; in TEST_IMPL()
715 options.stdio[0].flags = UV_INHERIT_FD; in TEST_IMPL()
716 options.stdio[0].data.fd = 0; in TEST_IMPL()
717 options.stdio[1].flags = UV_INHERIT_FD; in TEST_IMPL()
718 options.stdio[1].data.fd = 1; in TEST_IMPL()
719 options.stdio[2].flags = UV_INHERIT_FD; in TEST_IMPL()
720 options.stdio[2].data.fd = 2; in TEST_IMPL()
721 options.stdio[3].flags = UV_INHERIT_FD; in TEST_IMPL()
722 options.stdio[3].data.fd = fd; in TEST_IMPL()
723 options.stdio_count = 4; in TEST_IMPL()
725 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
744 options.stdio = NULL; in TEST_IMPL()
745 options.stdio_count = 0; in TEST_IMPL()
747 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
766 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
794 options.stdio = stdio; in TEST_IMPL()
795 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
796 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
797 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
798 options.stdio_count = 2; in TEST_IMPL()
804 options.env = NULL; in TEST_IMPL()
806 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
831 options.flags |= UV_PROCESS_DETACHED; in TEST_IMPL()
833 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
875 options.stdio = stdio; in TEST_IMPL()
876 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE; in TEST_IMPL()
877 options.stdio[0].data.stream = (uv_stream_t*) ∈ in TEST_IMPL()
878 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
879 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
880 options.stdio[2].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
881 options.stdio[2].data.stream = (uv_stream_t*) &err; in TEST_IMPL()
882 options.stdio_count = 3; in TEST_IMPL()
884 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
926 options.stdio = stdio; in TEST_IMPL()
927 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE; in TEST_IMPL()
928 options.stdio[0].data.stream = (uv_stream_t*) ∈ in TEST_IMPL()
929 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
930 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
931 options.stdio_count = 2; in TEST_IMPL()
933 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
973 options.stdio = stdio; in TEST_IMPL()
974 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE; in TEST_IMPL()
975 options.stdio[0].data.stream = (uv_stream_t*) ∈ in TEST_IMPL()
976 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
977 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
978 options.stdio_count = 2; in TEST_IMPL()
980 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1018 options.stdio = stdio; in TEST_IMPL()
1019 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE; in TEST_IMPL()
1020 options.stdio[0].data.stream = (uv_stream_t*) ∈ in TEST_IMPL()
1021 options.stdio_count = 1; in TEST_IMPL()
1025 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1060 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1105 options.stdio = stdio; in TEST_IMPL()
1106 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
1107 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
1108 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
1109 options.stdio_count = 2; in TEST_IMPL()
1127 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1360 options.file = options.args[0] = "program-that-had-better-not-exist"; in TEST_IMPL()
1361 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1384 options.env = env; in TEST_IMPL()
1387 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1404 options.flags |= UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME; in TEST_IMPL()
1408 options.file = options.args[0] = new_exepath; in TEST_IMPL()
1410 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1432 options.flags |= UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME; in TEST_IMPL()
1447 options.file = options.args[0] = file; in TEST_IMPL()
1448 options.env = env; in TEST_IMPL()
1450 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1479 options.uid = pw->pw_uid; in TEST_IMPL()
1480 options.gid = pw->pw_gid; in TEST_IMPL()
1483 options.args[2] = uidstr; in TEST_IMPL()
1484 options.args[3] = gidstr; in TEST_IMPL()
1485 options.flags = UV_PROCESS_SETUID | UV_PROCESS_SETGID; in TEST_IMPL()
1487 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1524 options.flags |= UV_PROCESS_SETUID; in TEST_IMPL()
1529 options.uid = -1; in TEST_IMPL()
1531 options.uid = 0; in TEST_IMPL()
1535 options.flags |= UV_PROCESS_WINDOWS_HIDE; in TEST_IMPL()
1536 options.flags |= UV_PROCESS_WINDOWS_HIDE_CONSOLE; in TEST_IMPL()
1537 options.flags |= UV_PROCESS_WINDOWS_HIDE_GUI; in TEST_IMPL()
1538 options.flags |= UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS; in TEST_IMPL()
1540 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1575 options.flags |= UV_PROCESS_SETGID; in TEST_IMPL()
1580 options.gid = -1; in TEST_IMPL()
1582 options.gid = 0; in TEST_IMPL()
1585 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1617 options.flags |= UV_PROCESS_SETUID; in TEST_IMPL()
1618 options.uid = (uv_uid_t) -42424242; in TEST_IMPL()
1620 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1638 options.flags |= UV_PROCESS_SETGID; in TEST_IMPL()
1639 options.gid = (uv_gid_t) -42424242; in TEST_IMPL()
1641 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1657 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1695 options.stdio = stdio; in TEST_IMPL()
1696 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE; in TEST_IMPL()
1697 options.stdio[0].data.stream = (uv_stream_t*) ∈ in TEST_IMPL()
1698 options.stdio_count = 1; in TEST_IMPL()
1714 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1752 options.stdio_count = 3; in TEST_IMPL()
1753 options.stdio = stdio; in TEST_IMPL()
1754 options.stdio[0].flags = UV_INHERIT_FD; in TEST_IMPL()
1755 options.stdio[0].data.fd = fd[0]; in TEST_IMPL()
1756 options.stdio[1].flags = UV_IGNORE; in TEST_IMPL()
1757 options.stdio[2].flags = UV_IGNORE; in TEST_IMPL()
1759 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1863 options.file = file; in TEST_IMPL()
1864 options.args[0] = file; in TEST_IMPL()
1865 options.env = env; in TEST_IMPL()
1867 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1928 options.stdio = child_stdio; in TEST_IMPL()
1929 options.stdio_count = 2; in TEST_IMPL()
1931 ASSERT_OK(uv_spawn(loop, &child_req, &options)); in TEST_IMPL()
1971 options.file = args[0]; in TEST_IMPL()
1972 options.args = args; in TEST_IMPL()
1973 options.exit_cb = exit_cb; in TEST_IMPL()
1974 options.flags = 0; in TEST_IMPL()
1979 options.env = quoted_path_env; in TEST_IMPL()
1982 uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1998 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
2101 options.cwd = exepath; in TEST_IMPL()
2102 options.file = options.args[0] = sep + 1; in TEST_IMPL()
2104 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()