Home
last modified time | relevance | path

Searched refs:stdin_pipe (Results 1 – 10 of 10) sorted by relevance

/third_party/mesa3d/src/amd/compiler/tests/
Dmain.cpp175 int stdin_pipe[2]; in check_output() local
176 pipe(stdin_pipe); in check_output()
184 dup2(stdin_pipe[0], STDIN_FILENO); in check_output()
185 close(stdin_pipe[0]); in check_output()
186 close(stdin_pipe[1]); in check_output()
195 write(stdin_pipe[1], checker_stdin_data, checker_stdin_size); in check_output()
196 close(stdin_pipe[0]); in check_output()
197 close(stdin_pipe[1]); in check_output()
/third_party/libuv/docs/code/uvtee/
Dmain.c15 uv_pipe_t stdin_pipe; variable
48 uv_close((uv_handle_t *)&stdin_pipe, NULL); in read_stdin()
65 uv_pipe_init(loop, &stdin_pipe, 0); in main()
66 uv_pipe_open(&stdin_pipe, 0); in main()
76 uv_read_start((uv_stream_t*)&stdin_pipe, alloc_buffer, read_stdin); in main()
/third_party/libuv/test/
Dtest-pipe-close-stdout-read-stdin.c57 uv_pipe_t stdin_pipe; in TEST_IMPL() local
76 r = uv_pipe_init(uv_default_loop(), (uv_pipe_t *)&stdin_pipe, 0); in TEST_IMPL()
79 r = uv_pipe_open((uv_pipe_t *)&stdin_pipe, 0); in TEST_IMPL()
82 r = uv_read_start((uv_stream_t *)&stdin_pipe, alloc_buffer, read_stdin); in TEST_IMPL()
/third_party/skia/third_party/externals/tint/src/utils/io/
Dcommand_posix.cc150 Pipe stdin_pipe; in Exec() local
154 if (!stdin_pipe || !stdout_pipe || !stderr_pipe) { in Exec()
188 ssize_t n = write(stdin_pipe.write, input_.data(), input_.size()); in Exec()
195 stdin_pipe.write.Close(); in Exec()
240 if ((dup2(stdin_pipe.read, STDIN_FILENO) == -1) || in Exec()
248 stdin_pipe.Close(); in Exec()
Dcommand_windows.cc153 Pipe stdin_pipe(false); in Exec() local
154 if (!stdin_pipe || !stdout_pipe || !stderr_pipe) { in Exec()
161 if (!WriteFile(stdin_pipe.write, input_.data(), input_.size(), nullptr, in Exec()
168 stdin_pipe.write.Close(); in Exec()
175 si.hStdInput = stdin_pipe.read; in Exec()
199 stdin_pipe.read.Close(); in Exec()
/third_party/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc306 int stdin_pipe[2]; in Start() local
309 GOOGLE_CHECK(pipe(stdin_pipe) != -1); in Start()
319 dup2(stdin_pipe[0], STDIN_FILENO); in Start()
322 close(stdin_pipe[0]); in Start()
323 close(stdin_pipe[1]); in Start()
353 close(stdin_pipe[0]); in Start()
356 child_stdin_ = stdin_pipe[1]; in Start()
/third_party/glib/glib/
Dgspawn-win32.c568 int stdin_pipe[2] = { -1, -1 }; in fork_exec() local
584 if (!make_pipe (stdin_pipe, error)) in fork_exec()
586 stdin_fd = stdin_pipe[0]; in fork_exec()
879 close_and_invalidate (&stdin_pipe[0]); in fork_exec()
884 *stdin_pipe_out = stdin_pipe[1]; in fork_exec()
905 if (stdin_pipe[0] != -1) in fork_exec()
906 close (stdin_pipe[0]); in fork_exec()
907 if (stdin_pipe[1] != -1) in fork_exec()
908 close (stdin_pipe[1]); in fork_exec()
Dgspawn.c2001 gint stdin_pipe[2] = { -1, -1 }; in fork_exec() local
2015 if (!g_unix_open_pipe (stdin_pipe, pipe_flags, error)) in fork_exec()
2017 child_close_fds[n_child_close_fds++] = stdin_pipe[1]; in fork_exec()
2018 stdin_fd = stdin_pipe[0]; in fork_exec()
2434 close_and_invalidate (&stdin_pipe[0]); in fork_exec()
2439 *stdin_pipe_out = steal_fd (&stdin_pipe[1]); in fork_exec()
2469 close_and_invalidate (&stdin_pipe[0]); in fork_exec()
2470 close_and_invalidate (&stdin_pipe[1]); in fork_exec()
/third_party/glib/gio/
Dgsubprocess.c166 GOutputStream *stdin_pipe; member
453 self->stdin_pipe = platform_output_stream_from_spawn_fd (pipe_fds[0]); in initable_init()
468 g_clear_object (&self->stdin_pipe); in g_subprocess_finalize()
628 return subprocess->stdin_pipe; in g_subprocess_get_stdin_pipe()
1315 if (source == subprocess->stdin_pipe || in g_subprocess_communicate_made_progress()
1432 if (subprocess->stdin_pipe) in g_subprocess_communicate_internal()
1449 …blocking (g_unix_output_stream_get_fd (G_UNIX_OUTPUT_STREAM (subprocess->stdin_pipe)), TRUE, NULL); in g_subprocess_communicate_internal()
1453 g_output_stream_splice_async (subprocess->stdin_pipe, (GInputStream*)state->stdin_buf, in g_subprocess_communicate_internal()
/third_party/python/Lib/test/
Dtest_subprocess.py909 for stdin_pipe in (False, True):
913 if stdin_pipe: