/libuv/test/ |
H A D | test-spawn.c | 170 options.args = args; 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() 211 options.file = options.args[0] = "program-that-had-better-not-exist"; in TEST_IMPL() 250 options.env = env; in TEST_IMPL() 1408 options.file = options.args[0] = new_exepath; in TEST_IMPL() 1447 options.file = options.args[0] = file; in TEST_IMPL() 1529 options.uid = -1; in TEST_IMPL() 1531 options.uid = 0; in TEST_IMPL() 1582 options.gid = 0; in TEST_IMPL() [all …]
|
H A D | test-thread.c | 254 uv_thread_options_t options; in TEST_IMPL() local 256 options.flags = UV_THREAD_HAS_STACK_SIZE; in TEST_IMPL() 257 options.stack_size = 1024 * 1024; in TEST_IMPL() 258 ASSERT_OK(uv_thread_create_ex(&thread, &options, in TEST_IMPL() 263 ASSERT_OK(uv_thread_create_ex(&thread, &options, in TEST_IMPL() 267 options.stack_size = 0; in TEST_IMPL() 268 ASSERT_OK(uv_thread_create_ex(&thread, &options, in TEST_IMPL() 272 options.stack_size = 42; in TEST_IMPL() 273 ASSERT_OK(uv_thread_create_ex(&thread, &options, in TEST_IMPL() 279 ASSERT_OK(uv_thread_create_ex(&thread, &options, in TEST_IMPL() [all …]
|
H A D | benchmark-spawn.c | 33 static uv_process_options_t options; variable 113 options.file = exepath; in spawn() 114 options.args = args; in spawn() 115 options.exit_cb = exit_cb; in spawn() 119 options.stdio = stdio; in spawn() 120 options.stdio_count = 2; in spawn() 121 options.stdio[0].flags = UV_IGNORE; in spawn() 122 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in spawn() 123 options.stdio[1].data.stream = (uv_stream_t*)&out; in spawn() 125 r = uv_spawn(loop, &process, &options); in spawn()
|
H A D | test-process-title.c | 87 uv_process_options_t options; in TEST_IMPL() local 115 memset(&options, 0, sizeof(options)); in TEST_IMPL() 116 options.file = exepath; in TEST_IMPL() 117 options.args = args; in TEST_IMPL() 118 options.exit_cb = exit_cb; in TEST_IMPL() 120 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
|
H A D | test-stdio-over-pipes.c | 32 static uv_process_options_t options; variable 70 options.file = exepath; in init_process_options() 71 options.args = args; in init_process_options() 72 options.exit_cb = exit_cb; in init_process_options() 131 options.stdio = stdio; in test_stdio_over_pipes() 134 options.stdio[0].data.stream = (uv_stream_t*) ∈ in test_stdio_over_pipes() 137 options.stdio[1].data.stream = (uv_stream_t*) &out; in test_stdio_over_pipes() 138 options.stdio[2].flags = UV_INHERIT_FD; in test_stdio_over_pipes() 139 options.stdio[2].data.fd = 2; in test_stdio_over_pipes() 140 options.stdio_count = 3; in test_stdio_over_pipes() [all …]
|
H A D | test-ref.c | 403 uv_process_options_t options; in TEST_IMPL() local 409 memset(&options, 0, sizeof(options)); in TEST_IMPL() 416 options.file = exepath; in TEST_IMPL() 417 options.args = argv; in TEST_IMPL() 418 options.exit_cb = NULL; in TEST_IMPL() 420 r = uv_spawn(uv_default_loop(), &h, &options); in TEST_IMPL()
|
H A D | test-ipc.c | 283 uv_process_options_t options; in spawn_helper() local 303 memset(&options, 0, sizeof(options)); in spawn_helper() 304 options.file = exepath; in spawn_helper() 305 options.args = args; in spawn_helper() 306 options.exit_cb = exit_cb; in spawn_helper() 307 options.stdio = stdio; in spawn_helper() 308 options.stdio_count = ARRAY_SIZE(stdio); in spawn_helper() 317 r = uv_spawn(uv_default_loop(), process, &options); in spawn_helper()
|
/libuv/src/unix/ |
H A D | process.c | 106 int options; in uv__wait_children() local 123 options = 0; in uv__wait_children() 127 options = WNOHANG; in uv__wait_children() 369 if (options->cwd != NULL && chdir(options->cwd)) in uv__process_child_init() 383 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init() 386 if ((options->flags & UV_PROCESS_SETUID) && setuid(options->uid)) in uv__process_child_init() 389 if (options->env != NULL) in uv__process_child_init() 398 execvpe(options->file, options->args, environ); in uv__process_child_init() 400 execvp(options->file, options->args); in uv__process_child_init() 689 env = options->env; in uv__spawn_resolve_and_spawn() [all …]
|
/libuv/docs/code/proc-streams/ |
H A D | main.c | 9 uv_process_options_t options; variable 30 options.stdio_count = 3; in main() 36 options.stdio = child_stdio; in main() 38 options.exit_cb = on_exit; in main() 39 options.file = args[0]; in main() 40 options.args = args; in main() 43 if ((r = uv_spawn(loop, &child_req, &options))) { in main()
|
/libuv/docs/code/detach/ |
H A D | main.c | 7 uv_process_options_t options; variable 17 options.exit_cb = NULL; in main() 18 options.file = "sleep"; in main() 19 options.args = args; in main() 20 options.flags = UV_PROCESS_DETACHED; in main() 23 if ((r = uv_spawn(loop, &child_req, &options))) { in main()
|
/libuv/docs/code/cgi/ |
H A D | main.c | 9 uv_process_options_t options; variable 29 options.stdio_count = 3; in invoke_cgi_script() 35 options.stdio = child_stdio; in invoke_cgi_script() 37 options.exit_cb = cleanup_handles; in invoke_cgi_script() 38 options.file = args[0]; in invoke_cgi_script() 39 options.args = args; in invoke_cgi_script() 44 if ((r = uv_spawn(loop, &child_req, &options))) { in invoke_cgi_script()
|
/libuv/docs/code/spawn/ |
H A D | main.c | 8 uv_process_options_t options; variable 23 options.exit_cb = on_exit; in main() 24 options.file = "mkdir"; in main() 25 options.args = args; in main() 28 if ((r = uv_spawn(loop, &child_req, &options))) { in main()
|
/libuv/docs/src/sphinx-plugins/ |
H A D | manpage.py | 18 def make_link_node(rawtext, app, name, manpage_num, options): argument 25 set_classes(options) 26 node = nodes.reference(rawtext, "%s(%s)" % (name, manpage_num), refuri=ref, **options) 30 def man_role(name, rawtext, text, lineno, inliner, options={}, content=[]): argument 37 node = make_link_node(rawtext, app, name, manpage_num, options)
|
/libuv/docs/code/multi-echo-server/ |
H A D | main.c | 11 uv_process_options_t options; member 85 worker->options.stdio = child_stdio; in setup_workers() 86 worker->options.stdio_count = 3; in setup_workers() 88 worker->options.exit_cb = close_process_handle; in setup_workers() 89 worker->options.file = args[0]; in setup_workers() 90 worker->options.args = args; in setup_workers() 92 uv_spawn(loop, &worker->req, &worker->options); in setup_workers()
|
/libuv/src/win/ |
H A D | process.c | 905 process->exit_cb = options->exit_cb; in uv_spawn() 912 if (options->file == NULL || in uv_spawn() 913 options->args == NULL) { in uv_spawn() 917 assert(options->file != NULL); in uv_spawn() 932 options->args, in uv_spawn() 938 if (options->env) { in uv_spawn() 939 err = make_program_env(options->env, &env); in uv_spawn() 944 if (options->cwd) { in uv_spawn() 1030 if (i == options->stdio_count - 1) in uv_spawn() 1042 if (options->flags & UV_PROCESS_DETACHED) { in uv_spawn() [all …]
|
H A D | process-stdio.c | 170 const uv_process_options_t* options, in uv__stdio_create() argument 176 count = options->stdio_count; in uv__stdio_create() 202 if (i < options->stdio_count) { in uv__stdio_create() 203 fdopt = options->stdio[i]; in uv__stdio_create()
|
H A D | internal.h | 279 const uv_process_options_t* options,
|
/libuv/.github/ |
H A D | dependabot.yml | 1 # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-up…
|
/libuv/docs/src/ |
H A D | loop.rst | 21 Additional loop options. 69 Set additional loop options. You should normally call this before the 75 Supported options:
|
H A D | process.rst | 120 * The following four options are mutually-exclusive, and define 257 …function:: int uv_spawn(uv_loop_t* loop, uv_process_t* handle, const uv_process_options_t* options)
|
H A D | threading.rst | 91 Like :c:func:`uv_thread_create`, but additionally specifies options for creating a new thread.
|
/libuv/docs/src/guide/ |
H A D | processes.rst | 37 ``options`` is implicitly initialized with zeros since it is a global 38 variable. If you change ``options`` to a local variable, remember to 41 uv_process_options_t options = {0}; 43 The ``uv_process_t`` struct only acts as the handle, all options are set via
|
/libuv/.github/workflows/ |
H A D | CI-unix.yml | 50 …emulator-options: -no-audio -no-window -gpu off -no-boot-anim -netdelay none -netspeed full -writa…
|
/libuv/ |
H A D | README.md | 65 Show different supported building options:
|
H A D | CMakeLists.txt | 695 test/test-udp-options.c 808 message(STATUS "summary of build options:
|