Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 27) sorted by relevance

12

/libuv/test/
H A Dtest-spawn.c170 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()
1410 options.file = options.args[0] = new_exepath; in TEST_IMPL()
1449 options.file = options.args[0] = file; in TEST_IMPL()
1531 options.uid = -1; in TEST_IMPL()
1533 options.uid = 0; in TEST_IMPL()
1584 options.gid = 0; in TEST_IMPL()
[all …]
H A Dtest-thread.c254 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 Dbenchmark-spawn.c33 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 Dtest-process-title.c87 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 Dtest-stdio-over-pipes.c32 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 Dtest-ref.c403 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 Dtest-ipc.c283 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 Dprocess.c105 int options; in uv__wait_children() local
122 options = 0; in uv__wait_children()
126 options = WNOHANG; in uv__wait_children()
368 if (options->cwd != NULL && chdir(options->cwd)) in uv__process_child_init()
382 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init()
385 if ((options->flags & UV_PROCESS_SETUID) && setuid(options->uid)) in uv__process_child_init()
388 if (options->env != NULL) in uv__process_child_init()
397 execvpe(options->file, options->args, environ); in uv__process_child_init()
399 execvp(options->file, options->args); in uv__process_child_init()
688 env = options->env; in uv__spawn_resolve_and_spawn()
[all …]
/libuv/docs/code/proc-streams/
H A Dmain.c9 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 Dmain.c7 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 Dmain.c9 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 Dmain.c8 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 Dmanpage.py18 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 Dmain.c11 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 Dprocess.c905 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 Dprocess-stdio.c170 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 Dinternal.h279 const uv_process_options_t* options,
/libuv/docs/src/
H A Dprocess.rst120 * 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 Dloop.rst56 Set additional loop options. You should normally call this before the
62 Supported options:
H A Dthreading.rst83 Like :c:func:`uv_thread_create`, but additionally specifies options for creating a new thread.
/libuv/docs/src/guide/
H A Dprocesses.rst37 ``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 DCI-unix.yml38 # see build options you can use in https://developer.android.com/ndk/guides/cmake
/libuv/
H A DREADME.md65 Show different supported building options:
H A DCMakeLists.txt688 test/test-udp-options.c
801 message(STATUS "summary of build options:
H A DMakefile.am321 test/test-udp-options.c \

Completed in 87 milliseconds

12