Home
last modified time | relevance | path

Searched refs:stdin (Results 1 - 25 of 606) sorted by relevance

12345678910>>...25

/third_party/node/lib/internal/bootstrap/switches/
H A Dis_main_thread.js31 defineStream('stdin', getStdin);
127 let stdin;
192 if (stdin) return stdin;
198 stdin = new tty.ReadStream(fd);
204 stdin = new fs.ReadStream(null, { fd: fd, autoClose: false });
217 stdin = new net.Socket({
224 stdin = new net.Socket({
231 // Make sure the stdin can't be `.end()`-ed
232 stdin
[all...]
/third_party/node/test/sequential/
H A Dtest-repl-timeout-throw.js17 child.stdin.end();
20 child.stdin.write = function(original) {
23 return original.call(child.stdin, c);
25 }(child.stdin.write);
28 child.stdin.write('let throws = 0;');
29 child.stdin.write('process.on("exit",function(){console.log(throws)});');
30 child.stdin.write('function thrower(){console.log("THROW",throws++);XXX};');
31 child.stdin.write('setTimeout(thrower);""\n');
36 child.stdin.write(`fs.readFile(${f}, thrower);\n`);
41 child.stdin
[all...]
/third_party/python/Lib/test/
H A Dtest_winconsoleio.py130 stdin = open('CONIN$', 'r')
131 old_stdin = sys.stdin
133 sys.stdin = stdin
135 stdin.buffer.raw,
140 sys.stdin = old_stdin
158 # Test that reading less than 1 full character works when stdin
163 with open('CONIN$', 'rb', buffering=0) as stdin:
164 write_input(stdin, source)
168 b = stdin
[all...]
H A Dtest_subprocess.py119 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
122 self.assertIsInstance(p.stdin, io.BufferedIOBase)
126 p.stdin.close()
133 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
136 self.assertIsInstance(p.stdin, io.RawIOBase)
140 p.stdin.close()
201 # check_output() can be called with stdin set to a file
208 "import sys; sys.stdout.write(sys.stdin.read().upper())"],
209 stdin=tf)
216 "import sys; sys.stdout.write(sys.stdin
[all...]
/third_party/python/Lib/asyncio/
H A Dsubprocess.py24 self.stdin = self.stdout = self.stderr = None
32 if self.stdin is not None:
33 info.append(f'stdin={self.stdin!r}')
59 self.stdin = streams.StreamWriter(stdin_transport,
76 pipe = self.stdin
114 if stream is self.stdin:
123 self.stdin = protocol.stdin
150 self.stdin
[all...]
H A Dbase_subprocess.py13 stdin, stdout, stderr, bufsize,
27 if stdin == subprocess.PIPE:
36 self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
68 stdin = self._pipes.get(0)
69 if stdin is not None:
70 info.append(f'stdin={stdin.pipe}')
84 def _start(self, args, shell, stdin, stdout, stderr, bufsize, **kwargs):
161 if proc.stdin i
[all...]
H A Dwindows_utils.py128 The stdin, stdout, stderr are None or instances of PipeHandle.
130 def __init__(self, args, stdin=None, stdout=None, stderr=None, **kwds):
135 if stdin == PIPE:
139 stdin_rfd = stdin
153 super().__init__(args, stdin=stdin_rfd, stdout=stdout_wfd,
162 self.stdin = PipeHandle(stdin_wh)
168 if stdin == PIPE:
/third_party/selinux/libselinux/src/
H A Dquery_user_context.c24 fflush(stdin); in context_menu()
25 if (fgets(response, sizeof(response), stdin) == NULL) in context_menu()
27 fflush(stdin); in context_menu()
50 fflush(stdin); in query_user_context()
51 if (fgets(response, sizeof(response), stdin) == NULL) in query_user_context()
53 fflush(stdin); in query_user_context()
84 fflush(stdin); in get_field()
85 if (fgets(newfield, newfieldlen, stdin) == NULL) in get_field()
87 fflush(stdin); in get_field()
133 if (fgets(response, sizeof(response), stdin) in manual_user_enter_context()
[all...]
/third_party/musl/libc-test/src/regression/
H A Drewind-clear-error.c17 n = fread(buf, 1, sizeof buf, stdin); in main()
18 if (n != 0 || !ferror(stdin)) in main()
19 t_error("fread(stdin) should have failed, got %d ferror %d feof %d\n", in main()
20 n, ferror(stdin), feof(stdin)); in main()
24 rewind(stdin); in main()
25 if (ferror(stdin)) in main()
H A Dfgetwc-buffering.c21 wc = fgetwc(stdin); in main()
26 wc = fgetwc(stdin); in main()
31 wc = fgetwc(stdin); in main()
36 A(feof(stdin)!=0); in main()
37 A(ferror(stdin)==0); in main()
/third_party/selinux/checkpolicy/
H A Dcheckpolicy.c751 FGETS(ans, sizeof(ans), stdin); in main()
755 FGETS(ans, sizeof(ans), stdin); in main()
759 FGETS(ans, sizeof(ans), stdin); in main()
763 FGETS(ans, sizeof(ans), stdin); in main()
827 FGETS(ans, sizeof(ans), stdin); in main()
848 FGETS(ans, sizeof(ans), stdin); in main()
872 FGETS(ans, sizeof(ans), stdin); in main()
875 FGETS(ans, sizeof(ans), stdin); in main()
879 FGETS(ans, sizeof(ans), stdin); in main()
930 FGETS(ans, sizeof(ans), stdin); in main()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dclearerr.c25 putc('c', stdin); in clearerr_0100()
26 if (ferror(stdin)) { in clearerr_0100()
27 clearerr(stdin); in clearerr_0100()
29 EXPECT_EQ("clearerr_0100", ferror(stdin), 0); in clearerr_0100()
/third_party/node/test/parallel/
H A Dtest-child-process-stdio-big-write-end.js62 } while (child.stdin.write(buf));
68 child.stdin.write(buf);
72 child.stdin.end();
79 process.stdin.on('data', mustCallAtLeast((c) => {
82 process.stdin.on('end', mustCall(() => {
H A Dtest-repl-import-referrer.js25 child.stdin.write('await import(\'./message.mjs\');\n');
26 child.stdin.write('.exit');
27 child.stdin.end();
H A Dtest-child-process-stdio-overlapped.js7 // if stdin doesn't have the FILE_FLAG_OVERLAPPED flag set on startup (see
16 // - The test program will be spawned with "overlapped" set on stdin and "pipe"
19 // write to the test program's stdin.
44 child.stdin.setEncoding('utf8');
49 child.stdin.write((n + 50).toString());
55 child.stdin.write('exit');
/third_party/musl/src/stdio/
H A Dgets.c9 FLOCK(stdin); in gets()
10 while ((c=getc_unlocked(stdin)) != EOF && c != '\n') s[i++] = c; in gets()
12 if (c != '\n' && (!feof(stdin) || !i)) s = 0; in gets()
13 FUNLOCK(stdin); in gets()
/third_party/rust/crates/rustix/examples/
H A Ddup2_to_replace_stdio.rs1 //! This is an example of how to use `dup2` to replace the stdin and stdout
14 // Acquire `OwnedFd` instances for stdin and stdout. These APIs are `unsafe` in main()
16 // that stdin and stdout will be open or safe to use. It's ok here, because in main()
17 // we're directly inside `main`, so we know that stdin and stdout haven't in main()
19 let (mut stdin, mut stdout) = unsafe { (rustix::io::take_stdin(), rustix::io::take_stdout()) }; in main()
27 dup2(&reader, &mut stdin).unwrap(); in main()
31 // close them. Here, we want stdin and stdout to remain open for the rest in main()
33 forget(stdin); in main()
44 // And we can read from stdin, and it'll read from our pipe. It's a little in main()
45 // silly that we connected our stdout to our own stdin, bu in main()
[all...]
/third_party/protobuf/examples/
H A DAddPerson.java15 static Person PromptForAddress(BufferedReader stdin, in PromptForAddress() argument
20 person.setId(Integer.valueOf(stdin.readLine())); in PromptForAddress()
23 person.setName(stdin.readLine()); in PromptForAddress()
26 String email = stdin.readLine(); in PromptForAddress()
33 String number = stdin.readLine(); in PromptForAddress()
42 String type = stdin.readLine(); in PromptForAddress()
/third_party/python/Lib/test/test_asyncio/
H A Dtest_subprocess.py29 'data = sys.stdin.buffer.read()',
40 self._proc.stdin = None
117 stdin=subprocess.PIPE,
122 proc.stdin.write(data)
123 await proc.stdin.drain()
124 proc.stdin.close()
143 stdin=subprocess.PIPE,
260 # the program ends before the stdin can be fed
264 stdin=subprocess.PIPE,
275 proc.stdin
341 code = 'import sys; data = sys.stdin.read(); print(len(data))' global() namespace
360 code = 'import sys; data = sys.stdin.read(); print(len(data))' global() namespace
379 code = 'import sys; data = sys.stdin.read(); print(len(data))' global() namespace
398 code = 'import sys; data = sys.stdin.read(); print(len(data))' global() namespace
417 code = 'import sys; data = sys.stdin.read(); print(len(data))' global() namespace
[all...]
/third_party/node/test/async-hooks/
H A Dtest-ttywrap.readstream.js14 if (!process.stdin.isTTY)
23 // listen to stdin except on Windows
36 process.stdin.on('error', (err) => assert.fail(err));
37 process.stdin.on('close', common.mustCall(() =>
40 process.stdin.destroy();
/third_party/python/Lib/
H A Dsubprocess.py438 pass a string to the subprocess's stdin. If you use this argument
439 you may not also use the Popen constructor's "stdin" argument, as
524 pass bytes or a string to the subprocess's stdin. If you use this argument
525 you may not also use the Popen constructor's "stdin" argument, as
537 if kwargs.get('stdin') is not None:
538 raise ValueError('stdin and input arguments may not both be used.')
539 kwargs['stdin'] = PIPE
758 creating the stdin/stdout/stderr pipe file objects
762 stdin, stdout and stderr: These specify the executed programs' standard
776 text: If true, decode stdin, stdou
[all...]
/third_party/nghttp2/
H A Dgit-clang-format259 The return value's `stdin` file object will produce a patch with the
264 p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
265 p.stdin.close()
316 return create_tree(filenames, '--stdin')
336 If mode is '--stdin', it must be a list of filenames. If mode is
340 assert mode in ('--stdin', '--index-info')
343 p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
345 p.stdin.write('%s\0' % line)
346 p.stdin.close()
365 clang_format = subprocess.Popen(clang_format_cmd, stdin
[all...]
/third_party/cups-filters/filter/foomatic-rip/
H A Dfoomaticrip.c571 file = stdin; in print_file()
594 if (file != stdin) in print_file()
614 /* If reading from stdin, write everything into a temporary file */ in print_file()
615 if (file == stdin) in print_file()
627 copy_file(tmpfile, stdin, buf, n); in print_file()
678 if (dup2(fileno(out), fileno(stdin)) < 0) in print_file()
682 clearerr(stdin); in print_file()
699 if (file == stdin) in print_file()
700 return print_pdf(stdin, buf, n, filename, startpos); in print_file()
706 if (file == stdin) in print_file()
[all...]
/third_party/openssl/ohos_lite/
H A De_os.h179 # if defined(_MSC_VER) && !defined(_WIN32_WCE) && !defined(_DLL) && defined(stdin)
181 # undef stdin macro
185 # define stdin (&__iob_func()[0]) macro
189 # undef stdin macro
200 # define stdin (&_imp___iob[0]) macro
/third_party/pulseaudio/speex/doc/
H A Dsampledec.c38 fread(&nbBytes, sizeof(int), 1, stdin); in main()
40 if (feof(stdin)) in main()
44 fread(cbits, 1, nbBytes, stdin); in main()

Completed in 12 milliseconds

12345678910>>...25