Lines Matching defs:options
48 static uv_process_options_t options;
169 options.file = exepath;
170 options.args = args;
171 options.exit_cb = exit_cb;
172 options.flags = 0;
191 options.file = options.args[0] = "program-that-had-better-not-exist";
193 r = uv_spawn(uv_default_loop(), &process, &options);
211 options.file = options.args[0] = "program-that-had-better-not-exist";
213 r = uv_spawn(uv_default_loop(), &process, &options);
250 options.env = env;
253 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
269 r = uv_spawn(uv_default_loop(), &process, &options);
291 options.stdio = stdio;
292 options.stdio[0].flags = UV_IGNORE;
293 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
294 options.stdio[1].data.stream = (uv_stream_t*) &out;
295 options.stdio_count = 2;
297 r = uv_spawn(uv_default_loop(), &process, &options);
335 options.stdio = stdio;
336 options.stdio[0].flags = UV_IGNORE;
337 options.stdio[1].flags = UV_INHERIT_FD;
338 options.stdio[1].data.fd = file;
339 options.stdio_count = 2;
341 r = uv_spawn(uv_default_loop(), &process, &options);
389 options.stdio = stdio;
390 options.stdio[0].flags = UV_IGNORE;
391 options.stdio[1].flags = UV_INHERIT_FD;
392 options.stdio[1].data.fd = file;
393 options.stdio[2].flags = UV_INHERIT_FD;
394 options.stdio[2].data.fd = file;
395 options.stdio_count = 3;
397 r = uv_spawn(uv_default_loop(), &process, &options);
451 options.stdio = stdio;
452 options.stdio[0].flags = UV_IGNORE;
453 options.stdio[1].flags = UV_INHERIT_FD;
454 options.stdio[1].data.fd = file;
455 options.stdio[2].flags = UV_INHERIT_FD;
456 options.stdio[2].data.fd = file;
457 options.stdio_count = 3;
459 r = uv_spawn(uv_default_loop(), &process, &options);
528 options.stdio = stdio;
529 options.stdio[0].flags = UV_IGNORE;
530 options.stdio[1].flags = UV_INHERIT_FD;
531 options.stdio[1].data.fd = stderr_file;
532 options.stdio[2].flags = UV_INHERIT_FD;
533 options.stdio[2].data.fd = stdout_file;
534 options.stdio_count = 3;
536 r = uv_spawn(uv_default_loop(), &process, &options);
596 options.stdio = stdio;
597 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE;
598 options.stdio[0].data.stream = (uv_stream_t*) ∈
599 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
600 options.stdio[1].data.stream = (uv_stream_t*) &out;
601 options.stdio_count = 2;
603 r = uv_spawn(uv_default_loop(), &process, &options);
634 options.stdio = stdio;
635 options.stdio[0].flags = UV_IGNORE;
636 options.stdio[1].flags = UV_IGNORE;
637 options.stdio[2].flags = UV_IGNORE;
638 options.stdio[3].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
639 options.stdio[3].data.stream = (uv_stream_t*) &pipe;
640 options.stdio_count = 4;
642 r = uv_spawn(uv_default_loop(), &process, &options);
714 options.stdio = stdio;
715 options.stdio[0].flags = UV_INHERIT_FD;
716 options.stdio[0].data.fd = 0;
717 options.stdio[1].flags = UV_INHERIT_FD;
718 options.stdio[1].data.fd = 1;
719 options.stdio[2].flags = UV_INHERIT_FD;
720 options.stdio[2].data.fd = 2;
721 options.stdio[3].flags = UV_INHERIT_FD;
722 options.stdio[3].data.fd = fd;
723 options.stdio_count = 4;
725 r = uv_spawn(uv_default_loop(), &process, &options);
744 options.stdio = NULL;
745 options.stdio_count = 0;
747 r = uv_spawn(uv_default_loop(), &process, &options);
766 r = uv_spawn(uv_default_loop(), &process, &options);
794 options.stdio = stdio;
795 options.stdio[0].flags = UV_IGNORE;
796 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
797 options.stdio[1].data.stream = (uv_stream_t*) &out;
798 options.stdio_count = 2;
803 /* Explicitly set options.env to NULL to test for env clobbering. */
804 options.env = NULL;
806 r = uv_spawn(uv_default_loop(), &process, &options);
831 options.flags |= UV_PROCESS_DETACHED;
833 r = uv_spawn(uv_default_loop(), &process, &options);
875 options.stdio = stdio;
876 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE;
877 options.stdio[0].data.stream = (uv_stream_t*) ∈
878 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
879 options.stdio[1].data.stream = (uv_stream_t*) &out;
880 options.stdio[2].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
881 options.stdio[2].data.stream = (uv_stream_t*) &err;
882 options.stdio_count = 3;
884 r = uv_spawn(uv_default_loop(), &process, &options);
926 options.stdio = stdio;
927 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE;
928 options.stdio[0].data.stream = (uv_stream_t*) ∈
929 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
930 options.stdio[1].data.stream = (uv_stream_t*) &out;
931 options.stdio_count = 2;
933 r = uv_spawn(uv_default_loop(), &process, &options);
973 options.stdio = stdio;
974 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE;
975 options.stdio[0].data.stream = (uv_stream_t*) ∈
976 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
977 options.stdio[1].data.stream = (uv_stream_t*) &out;
978 options.stdio_count = 2;
980 r = uv_spawn(uv_default_loop(), &process, &options);
1018 options.stdio = stdio;
1019 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE;
1020 options.stdio[0].data.stream = (uv_stream_t*) ∈
1021 options.stdio_count = 1;
1025 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1060 r = uv_spawn(uv_default_loop(), &process, &options);
1105 options.stdio = stdio;
1106 options.stdio[0].flags = UV_IGNORE;
1107 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE;
1108 options.stdio[1].data.stream = (uv_stream_t*) &out;
1109 options.stdio_count = 2;
1127 r = uv_spawn(uv_default_loop(), &process, &options);
1362 options.file = options.args[0] = "program-that-had-better-not-exist";
1363 r = uv_spawn(uv_default_loop(), &process, &options);
1386 options.env = env;
1389 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1406 options.flags |= UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME;
1410 options.file = options.args[0] = new_exepath;
1412 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1434 options.flags |= UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME;
1449 options.file = options.args[0] = file;
1450 options.env = env;
1452 r = uv_spawn(uv_default_loop(), &process, &options);
1481 options.uid = pw->pw_uid;
1482 options.gid = pw->pw_gid;
1485 options.args[2] = uidstr;
1486 options.args[3] = gidstr;
1487 options.flags = UV_PROCESS_SETUID | UV_PROCESS_SETGID;
1489 r = uv_spawn(uv_default_loop(), &process, &options);
1526 options.flags |= UV_PROCESS_SETUID;
1531 options.uid = -1;
1533 options.uid = 0;
1537 options.flags |= UV_PROCESS_WINDOWS_HIDE;
1538 options.flags |= UV_PROCESS_WINDOWS_HIDE_CONSOLE;
1539 options.flags |= UV_PROCESS_WINDOWS_HIDE_GUI;
1540 options.flags |= UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS;
1542 r = uv_spawn(uv_default_loop(), &process, &options);
1577 options.flags |= UV_PROCESS_SETGID;
1582 options.gid = -1;
1584 options.gid = 0;
1587 r = uv_spawn(uv_default_loop(), &process, &options);
1619 options.flags |= UV_PROCESS_SETUID;
1620 options.uid = (uv_uid_t) -42424242;
1622 r = uv_spawn(uv_default_loop(), &process, &options);
1640 options.flags |= UV_PROCESS_SETGID;
1641 options.gid = (uv_gid_t) -42424242;
1643 r = uv_spawn(uv_default_loop(), &process, &options);
1659 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1697 options.stdio = stdio;
1698 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE;
1699 options.stdio[0].data.stream = (uv_stream_t*) ∈
1700 options.stdio_count = 1;
1716 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1754 options.stdio_count = 3;
1755 options.stdio = stdio;
1756 options.stdio[0].flags = UV_INHERIT_FD;
1757 options.stdio[0].data.fd = fd[0];
1758 options.stdio[1].flags = UV_IGNORE;
1759 options.stdio[2].flags = UV_IGNORE;
1761 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1865 options.file = file;
1866 options.args[0] = file;
1867 options.env = env;
1869 r = uv_spawn(uv_default_loop(), &process, &options);
1930 options.stdio = child_stdio;
1931 options.stdio_count = 2;
1933 ASSERT_OK(uv_spawn(loop, &child_req, &options));
1973 options.file = args[0];
1974 options.args = args;
1975 options.exit_cb = exit_cb;
1976 options.flags = 0;
1981 options.env = quoted_path_env;
1984 uv_spawn(uv_default_loop(), &process, &options);
2000 r = uv_spawn(uv_default_loop(), &process, &options);
2103 options.cwd = exepath;
2104 options.file = options.args[0] = sep + 1;
2106 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));