Home
last modified time | relevance | path

Searched refs:stdio (Results 1 – 25 of 611) sorted by relevance

12345678910>>...25

/third_party/node/lib/internal/
Dchild_process.js229 function stdioStringToArray(stdio, channel) { argument
232 switch (stdio) {
235 case 'pipe': options.push(stdio, stdio, stdio); break;
238 throw new ERR_INVALID_OPT_VALUE('stdio', stdio);
304 const stdio = subprocess.stdio;
306 if (stdio == null) return;
308 for (let i = 0; i < stdio.length; i++) {
309 const stream = stdio[i];
349 let stdio = options.stdio || 'pipe';
351 stdio = getValidStdio(stdio, false);
[all …]
/third_party/libuv/test/
Dtest-spawn.c283 uv_stdio_container_t stdio[2]; in TEST_IMPL() local
288 options.stdio = stdio; in TEST_IMPL()
289 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
290 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE; in TEST_IMPL()
291 options.stdio[1].data.stream = (uv_stream_t*) &out; in TEST_IMPL()
317 uv_stdio_container_t stdio[2]; in TEST_IMPL() local
332 options.stdio = stdio; in TEST_IMPL()
333 options.stdio[0].flags = UV_IGNORE; in TEST_IMPL()
334 options.stdio[1].flags = UV_INHERIT_FD; in TEST_IMPL()
335 options.stdio[1].data.fd = file; in TEST_IMPL()
[all …]
Dbenchmark-spawn.c104 uv_stdio_container_t stdio[2]; in spawn() local
119 options.stdio = stdio; 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()
Dtest-stdio-over-pipes.c122 uv_stdio_container_t stdio[3]; in test_stdio_over_pipes() local
131 options.stdio = stdio; in test_stdio_over_pipes()
132 options.stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE | in test_stdio_over_pipes()
134 options.stdio[0].data.stream = (uv_stream_t*) &in; in test_stdio_over_pipes()
135 options.stdio[1].flags = UV_CREATE_PIPE | UV_WRITABLE_PIPE | 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()
/third_party/musl/porting/uniproton/kernel/
Dmusl.gni79 "$MUSLPORTINGDIR/src/stdio/__fdopen.c",
80 "$MUSLPORTINGDIR/src/stdio/__fmodeflags.c",
81 "$MUSLPORTINGDIR/src/stdio/__lockfile.c",
82 "$MUSLPORTINGDIR/src/stdio/__overflow.c",
83 "$MUSLPORTINGDIR/src/stdio/__stdio_close.c",
84 "$MUSLPORTINGDIR/src/stdio/__stdio_read.c",
85 "$MUSLPORTINGDIR/src/stdio/__stdio_seek.c",
86 "$MUSLPORTINGDIR/src/stdio/__stdio_write.c",
87 "$MUSLPORTINGDIR/src/stdio/__stdout_write.c",
88 "$MUSLPORTINGDIR/src/stdio/__string_read.c",
[all …]
/third_party/musl/porting/liteos_m/kernel/
Dmusl.gni83 "$MUSLPORTINGDIR/src/stdio/__fdopen.c",
84 "$MUSLPORTINGDIR/src/stdio/__fmodeflags.c",
85 "$MUSLPORTINGDIR/src/stdio/__lockfile.c",
86 "$MUSLPORTINGDIR/src/stdio/__overflow.c",
87 "$MUSLPORTINGDIR/src/stdio/__stdio_close.c",
88 "$MUSLPORTINGDIR/src/stdio/__stdio_read.c",
89 "$MUSLPORTINGDIR/src/stdio/__stdio_seek.c",
90 "$MUSLPORTINGDIR/src/stdio/__stdio_write.c",
91 "$MUSLPORTINGDIR/src/stdio/__stdout_write.c",
92 "$MUSLPORTINGDIR/src/stdio/__string_read.c",
[all …]
/third_party/alsa-lib/src/
Dinput.c128 snd_input_stdio_t *stdio = input->private_data; in snd_input_stdio_close() local
129 if (stdio->close) in snd_input_stdio_close()
130 fclose(stdio->fp); in snd_input_stdio_close()
131 free(stdio); in snd_input_stdio_close()
137 snd_input_stdio_t *stdio = input->private_data; in snd_input_stdio_scan() local
139 return vfscanf(stdio->fp, format, args); in snd_input_stdio_scan()
144 snd_input_stdio_t *stdio = input->private_data; in snd_input_stdio_gets() local
145 return fgets(str, (int) size, stdio->fp); in snd_input_stdio_gets()
150 snd_input_stdio_t *stdio = input->private_data; in snd_input_stdio_getc() local
151 return getc(stdio->fp); in snd_input_stdio_getc()
[all …]
Doutput.c137 snd_output_stdio_t *stdio = output->private_data; in snd_output_stdio_close() local
138 if (stdio->close) in snd_output_stdio_close()
139 fclose(stdio->fp); in snd_output_stdio_close()
140 free(stdio); in snd_output_stdio_close()
146 snd_output_stdio_t *stdio = output->private_data; in snd_output_stdio_print() local
147 return vfprintf(stdio->fp, format, args); in snd_output_stdio_print()
152 snd_output_stdio_t *stdio = output->private_data; in snd_output_stdio_puts() local
153 return fputs(str, stdio->fp); in snd_output_stdio_puts()
158 snd_output_stdio_t *stdio = output->private_data; in snd_output_stdio_putc() local
159 return putc(c, stdio->fp); in snd_output_stdio_putc()
[all …]
/third_party/node/deps/npm/node_modules/execa/lib/
Dstdio.js11 if (opts.stdio && hasAlias(opts)) {
15 if (typeof opts.stdio === 'string') {
16 return opts.stdio;
19 const stdio = opts.stdio || []; constant
21 if (!Array.isArray(stdio)) {
22 …new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
26 const len = Math.max(stdio.length, alias.length);
31 if (stdio[i] !== undefined) {
32 value = stdio[i];
/third_party/node/src/
Dprocess_wrap.cc88 static uv_stream_t* StreamForWrap(Environment* env, Local<Object> stdio) { in StreamForWrap() argument
92 stdio->Get(env->context(), handle_key).ToLocalChecked().As<Object>(); in StreamForWrap()
108 options->stdio = new uv_stdio_container_t[len]; in ParseStdioOptions()
112 Local<Object> stdio = in ParseStdioOptions() local
115 stdio->Get(context, env->type_string()).ToLocalChecked(); in ParseStdioOptions()
118 options->stdio[i].flags = UV_IGNORE; in ParseStdioOptions()
120 options->stdio[i].flags = static_cast<uv_stdio_flags>( in ParseStdioOptions()
122 options->stdio[i].data.stream = StreamForWrap(env, stdio); in ParseStdioOptions()
124 options->stdio[i].flags = static_cast<uv_stdio_flags>( in ParseStdioOptions()
127 options->stdio[i].data.stream = StreamForWrap(env, stdio); in ParseStdioOptions()
[all …]
/third_party/musl/porting/liteos_a/kernel/
Dmusl.gni295 "$MUSLPORTINGDIR/src/stdio/__fdopen.c",
296 "$MUSLPORTINGDIR/src/stdio/__fmodeflags.c",
297 "$MUSLPORTINGDIR/src/stdio/__lockfile.c",
298 "$MUSLPORTINGDIR/src/stdio/__overflow.c",
299 "$MUSLPORTINGDIR/src/stdio/__stdio_close.c",
300 "$MUSLPORTINGDIR/src/stdio/__stdio_read.c",
301 "$MUSLPORTINGDIR/src/stdio/__stdio_seek.c",
302 "$MUSLPORTINGDIR/src/stdio/__stdio_write.c",
303 "$MUSLPORTINGDIR/src/stdio/__stdout_write.c",
304 "$MUSLPORTINGDIR/src/stdio/__toread.c",
[all …]
/third_party/musl/
Dmusl_src.gni1081 "src/stdio/__fclose_ca.c",
1082 "src/stdio/__fdopen.c",
1083 "src/stdio/__fmodeflags.c",
1084 "src/stdio/__fopen_rb_ca.c",
1085 "src/stdio/__lockfile.c",
1086 "src/stdio/__overflow.c",
1087 "src/stdio/__stdio_close.c",
1088 "src/stdio/__stdio_exit.c",
1089 "src/stdio/__stdio_read.c",
1090 "src/stdio/__stdio_seek.c",
[all …]
/third_party/node/deps/npm/lib/utils/
Dspawn.js7 function willCmdOutput (stdio) { argument
8 if (stdio === 'inherit') return true
9 if (!Array.isArray(stdio)) return false
11 if (stdio[fh] === 'inherit') return true
12 if (stdio[fh] === 1 || stdio[fh] === 2) return true
18 var cmdWillOutput = willCmdOutput(options && options.stdio)
/third_party/node/deps/npm/node_modules/npm-lifecycle/lib/
Dspawn.js22 function willCmdOutput (stdio) { argument
23 if (stdio === 'inherit') return true
24 if (!Array.isArray(stdio)) return false
26 if (stdio[fh] === 'inherit') return true
27 if (stdio[fh] === 1 || stdio[fh] === 2) return true
33 const cmdWillOutput = willCmdOutput(options && options.stdio)
/third_party/node/lib/
Dchild_process.js138 if (typeof options.stdio === 'string') {
139 options.stdio = stdioStringToArray(options.stdio, 'ipc');
140 } else if (!ArrayIsArray(options.stdio)) {
143 options.stdio = stdioStringToArray(
146 } else if (!options.stdio.includes('ipc')) {
749 options.stdio = getValidStdio(options.stdio || 'pipe', true).stdio;
752 const stdin = options.stdio[0] = { ...options.stdio[0] };
757 for (let i = 0; i < options.stdio.length; i++) {
758 const input = options.stdio[i] && options.stdio[i].input;
760 const pipe = options.stdio[i] = { ...options.stdio[i] };
[all …]
/third_party/skia/third_party/externals/brotli/python/
Dbro.py26 stdio = getattr(sys, stream)
34 stdio = os.fdopen(stdio.fileno(), mode, 0)
38 msvcrt.setmode(stdio.fileno(), os.O_BINARY)
39 return stdio
42 if hasattr(stdio, 'buffer'):
43 return stdio.buffer
/third_party/node/test/parallel/
Dtest-fs-syncwritestream.js15 console.log(JSON.stringify([process.stdout, process.stderr].map((stdio) => ({
16 instance: stdio instanceof stream.Writable,
17 readable: stdio.readable,
18 writable: stdio.writable,
31 stdio: ['inherit', stdoutFd, stdoutFd ] property
Dtest-child-process-validate-stdio.js34 const stdio = ['foo']; variable
35 assert.throws(() => getValidStdio(stdio, false),
42 const stdio = [{ foo: 'bar' }]; variable
43 assert.throws(() => getValidStdio(stdio), expectedError);
50 stdio: [ property
Dtest-child-process-stdio.js29 const child = spawn(...common.pwdCommand, { stdio: ['pipe'] }); property
36 const child = spawn(...common.pwdCommand, { stdio: 'ignore' }); property
43 const options = { stdio: 'ignore' }; property
45 assert.deepStrictEqual(options, { stdio: 'ignore' }); property
73 { stdio: ['pipe', 'pipe', 'pipe', 'ipc', 'ipc'] } property
Dtest-child-process-spawn-error.js39 assert(Array.isArray(enoentChild.stdio));
40 assert.strictEqual(enoentChild.stdio[0], enoentChild.stdin);
41 assert.strictEqual(enoentChild.stdio[1], enoentChild.stdout);
42 assert.strictEqual(enoentChild.stdio[2], enoentChild.stderr);
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/android/
Dandroid_workflow_test.dart29 MockStdio stdio;
36 stdio = MockStdio();
56 Stdio: () => stdio,
70 Stdio: () => stdio,
85 Stdio: () => stdio,
103 Stdio: () => stdio,
122 Stdio: () => stdio,
141 Stdio: () => stdio,
154 Stdio: () => stdio,
167 Stdio: () => stdio,
[all …]
/third_party/node/deps/npm/test/tap/
Dshrinkwrap-nested.js128 common.npm(['pack', 'file:modB@1'], {cwd: testdir, stdio: [0, 2, 2]}), property
129 common.npm(['pack', 'file:modB@2'], {cwd: testdir, stdio: [0, 2, 2]}), property
136 common.npm(['pack', 'file:modA'], {cwd: testdir, stdio: [0, 2, 2]}), property
137 common.npm(['pack', 'file:modC'], {cwd: testdir, stdio: [0, 2, 2]}), property
143 return common.npm(['install'], {cwd: testdir, stdio: [0, 2, 2]}) property
152 common.npm(['install'], {cwd: testdir, stdio: [0, 2, 2]}, function (err, code) { property
/third_party/icu/docs/userguide/io/
Dustdio.md14 This API provides a `<stdio.h>`-like API wrapper around ICU's other [formatting
16 Unicode support to a preexisting applications using stdio. The following is a
17 small list of noticable differences between stdio and ICU I/O's ustdio
25 (unlike the standard stdio implementations found on various platforms).
27 when compared to the typical stdio implementation.
/third_party/flutter/skia/third_party/externals/sdl/src/file/
DSDL_rwops.c316 if (fseeko64(context->hidden.stdio.fp, (off64_t)offset, whence) == 0) { in stdio_seek()
317 return ftello64(context->hidden.stdio.fp); in stdio_seek()
320 if (fseeko(context->hidden.stdio.fp, (off_t)offset, whence) == 0) { in stdio_seek()
321 return ftello(context->hidden.stdio.fp); in stdio_seek()
324 if (_fseeki64(context->hidden.stdio.fp, offset, whence) == 0) { in stdio_seek()
325 return _ftelli64(context->hidden.stdio.fp); in stdio_seek()
328 if (fseek(context->hidden.stdio.fp, offset, whence) == 0) { in stdio_seek()
329 return ftell(context->hidden.stdio.fp); in stdio_seek()
340 nread = fread(ptr, size, maxnum, context->hidden.stdio.fp); in stdio_read()
341 if (nread == 0 && ferror(context->hidden.stdio.fp)) { in stdio_read()
[all …]
/third_party/typescript/src/testRunner/
DexternalCompileRunner.ts51 const stdio = isWorker ? "pipe" : "inherit"; constant
71 … const npmVersionText = exec("npm", ["--version"], { cwd, stdio: "pipe" })?.trim();
94 …ommand: string, args: string[], options: { cwd: string, timeout?: number, stdio?: import("child_pr…
95 …s = cp.spawnSync(isWorker ? `${command} 2>&1` : command, args, { shell: true, stdio, ...options });
99 return options.stdio === "pipe" ? res.stdout.toString("utf8") : undefined;
155 const stdio = isWorker ? "pipe" : "inherit"; constant
156 …er ? `${command} 2>&1` : command, args, { timeout: this.timeout, shell: true, stdio, ...options });

12345678910>>...25