Home
last modified time | relevance | path

Searched +full:- +full:- +full:stdin (Results 1 – 25 of 1090) sorted by relevance

12345678910>>...44

/external/rust/crates/tokio/src/io/
Dstdin.rs13 /// reads of `Stdin` must be executed with care.
15 /// This handle is best used for non-interactive uses, such as when a file
16 /// is piped into the application. For technical reasons, `stdin` is
24 /// Created by the [`stdin`] function.
26 /// [`stdin`]: fn@stdin
29 pub struct Stdin {
30 std: Blocking<std::io::Stdin>,
35 /// This handle is best used for non-interactive uses, such as when a file
36 /// is piped into the application. For technical reasons, `stdin` is
43 pub fn stdin() -> Stdin {
[all …]
/external/zstd/tests/cli-tests/progress/
Dprogress.sh.stderr.glob2 args = --progress
6 *Read:*stdin*stdout*
8 *Read:*stdin*hello.zst*
16 *stdin*stdin*
18 *stdin*stdin*
24 args = --fake-stderr-is-console
29 *Read:*stdin*hello.zst*
37 *stdin*stdin*
42 args = --progress --fake-stderr-is-console -q
46 *Read:*stdin*stdout*
[all …]
Dno-progress.sh.stderr.glob7 *stdin*hello.zst*
15 *stdin*
20 args = --fake-stderr-is-console -q
32 args = --fake-stderr-is-console -qq --progress
44 args = --no-progress --fake-stderr-is-console
49 *stdin*hello.zst*
57 *stdin*
62 args = --no-progress --fake-stderr-is-console -v
68 *stdin*stdout*
71 *stdin*hello.zst*
[all …]
/external/elfutils/tests/
Drun-addr2line-test.sh18 . $srcdir/test-subr.sh
21 tempfiles good.out stdin.nl stdin.nl.out stdin.nonl stdin.nonl.out foo.out
26 /home/drepper/gnu/new-bu/build/ttt/f.c:3
28 /home/drepper/gnu/new-bu/build/ttt/b.c:4
30 /home/drepper/gnu/new-bu/build/ttt/f.c:3
32 /home/drepper/gnu/new-bu/build/ttt/b.c:4
34 /home/drepper/gnu/new-bu/build/ttt/f.c:3
36 /home/drepper/gnu/new-bu/build/ttt/b.c:4
38 /home/drepper/gnu/new-bu/build/ttt/f.c:3
40 /home/drepper/gnu/new-bu/build/ttt/b.c:4
[all …]
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-sign/
DCMakeLists.txt1 project(lws-crypto-cose-sign C)
8 set(SAMP lws-crypto-cose-sign)
20 add_test(NAME crypto-cose-sign-1
21 COMMAND lws-crypto-cose-sign -s -k set1.cks --kid 11
22 --alg ES256 --cose-sign
23 --stdin payload.txt
24 --stdout ctest-sig-es256.sig)
25 add_test(NAME crypto-cose-sign-2
26 COMMAND lws-crypto-cose-sign -s -k set1.cks --kid sec384
27 --alg ES384 --cose-sign
[all …]
/external/python/cpython3/Lib/test/
Dtest_winconsoleio.py26 "negative file descriptor", ConIO, -1)
30 # Windows 10: "Cannot open non-console file"
33 "Cannot open (console|non-console file)", ConIO, fd)
95 # bpo-45354: Windows 11 changed MS-DOS device name handling
119 # bpo-45354: Windows 11 changed MS-DOS device name handling
130 stdin = open('CONIN$', 'r')
131 old_stdin = sys.stdin
133 sys.stdin = stdin
135 stdin.buffer.raw,
136 (text + '\r\n').encode('utf-16-le', 'surrogatepass')
[all …]
Dtest_subprocess.py71 ZERO_RETURN_CMD = (sys.executable, '-c', 'pass')
119 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()
147 rc = subprocess.call([sys.executable, "-c",
157 [sys.executable, "-c", "while True: pass"],
166 # check_call() function with non-zero return code
[all …]
/external/llvm/test/CodeGen/X86/GC/
Docaml-gc.ll1 ; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s
4 ; CHECK-NEXT: .file "<stdin>"
7 ; CHECK: .globl "caml<stdin>__code_begin"
8 ; CHECK-NEXT: "caml<stdin>__code_begin":
9 ; CHECK-NEXT: .data
10 ; CHECK-NEXT: .globl "caml<stdin>__data_begin"
11 ; CHECK-NEXT: "caml<stdin>__data_begin":
16 ; CHECK: .globl "caml<stdin>__code_end"
17 ; CHECK-NEXT: "caml<stdin>__code_end":
18 ; CHECK-NEXT: .data
[all …]
/external/rust/crates/rustix/src/
Dstdio.rs21 /// In `std`-using configurations, this is a safe function, because the
22 /// standard library already assumes that the stdin file descriptor is always
27 /// This function allows reading directly from stdin without coordinating
28 /// with the buffering performed by [`std::io::Stdin`], so it could cause
32 /// - [POSIX]
33 /// - [Linux]
34 /// - [FreeBSD]
35 /// - [NetBSD]
36 /// - [OpenBSD]
37 /// - [DragonFly BSD]
[all …]
/external/mksh/src/
Dcheck.t2 # -*- mode: sh -*-
3 #-
23 #-
28 # http://svnweb.freebsd.org/base/head/bin/test/tests/legacy_test.sh?view=co&content-type=text%2Fpla…
31 # (2013/12/02 20:39:44) http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress/bin/ksh/?sortby=date
33 expected-stdout:
37 stdin:
41 ---
42 expected-stdout:
46 stdin:
[all …]
/external/python/cpython2/Lib/
Dsubprocess.py1 # subprocess - Subprocesses with accessible I/O streams
5 # Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se>
28 ---------
46 check_output() returns a non-zero exit status.
56 return "Command '%s' returned non-zero exit status %d" % (self.cmd, self.returncode)
118 PIPE = -1
119 STDOUT = -2
137 """Return a list of command-line arguments reproducing the current
156 args.append('-' + opt * v)
158 args.append('-R')
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_subprocess.py23 PROGRAM_BLOCKED = [sys.executable, '-c', 'import time; time.sleep(3600)']
27 sys.executable, '-c',
29 'data = sys.stdin.buffer.read()',
40 self._proc.stdin = None
43 self._proc.pid = -1
93 "<TestSubprocessTransport pid=-1 returncode=6>"
98 "<TestSubprocessTransport pid=-1 running>"
117 stdin=subprocess.PIPE,
122 proc.stdin.write(data)
123 await proc.stdin.drain()
[all …]
/external/llvm/tools/llvm-c-test/
Dmain.c1 /*===-- main.c - tool for testing libLLVM and llvm-c API ------------------===*\
8 |*===----------------------------------------------------------------------===*|
10 |* Main file for llvm-c-tests. "Parses" arguments and dispatches. *|
12 \*===----------------------------------------------------------------------===*/
14 #include "llvm-c-test.h"
15 #include "llvm-c/BitReader.h"
21 fprintf(stderr, "llvm-c-test command\n\n"); in print_usage()
23 fprintf(stderr, " * --module-dump\n"); in print_usage()
24 fprintf(stderr, " Read bitcode from stdin - print disassembly\n\n"); in print_usage()
25 fprintf(stderr, " * --lazy-module-dump\n"); in print_usage()
[all …]
/external/python/cpython2/Demo/pysvr/
Dpysvr.py3 """A multi-threaded telnet-like server that gives a Python prompt.
53 print "Refusing connection from non-local host", addr[0], "."
62 stdin = conn.makefile("r")
64 run_interpreter(stdin, stdout)
67 def run_interpreter(stdin, stdout): argument
76 line = stdin.readline()
81 if line[-2:] == '\r\n':
82 line = line[:-2] + '\n'
94 run_command(code, stdin, stdout, globals)
105 def run_command(code, stdin, stdout, globals): argument
[all …]
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DCommandLineOptions.java7 * http://www.apache.org/licenses/LICENSE-2.0
22 * Command line options for google-java-format.
24 * <p>google-java-format doesn't depend on AutoValue, to allow AutoValue to depend on
25 * google-java-format.
37 private final boolean stdin; field in CommandLineOptions
56 boolean stdin, in CommandLineOptions() argument
73 this.stdin = stdin; in CommandLineOptions()
109 /** Use AOSP style instead of Google Style (4-space indentation). */
124 /** Format input from stdin. */
125 boolean stdin() { in stdin() method in CommandLineOptions
[all …]
/external/rust/crates/lz4_flex/src/
Dlib.rs3 …ailed explanation of the algorithm can be found [here](http://ticki.github.io/blog/how-lz4-works/).
24 //! # Example: compress data on `stdin` with frame format
25 //! This program reads data from `stdin`, compresses it and emits it to `stdout`.
29 //! let stdin = io::stdin();
31 //! let mut rdr = stdin.lock();
37 //! # Example: decompress data on `stdin` with frame format
38 //! This program reads data from `stdin`, decompresses it and emits it to `stdout`.
42 //! let stdin = io::stdin();
44 //! // Wrap the stdin reader in a LZ4 FrameDecoder.
45 //! let mut rdr = lz4_flex::frame::FrameDecoder::new(stdin.lock());
[all …]
/external/rust/crates/bstr/
DREADME.md4 their use as byte strings, where byte strings are _conventionally_ UTF-8. This
6 not required to be valid UTF-8, but may be fully or partially valid UTF-8.
20 <https://docs.rs/bstr/1.*/bstr/#when-should-i-use-byte-strings>.
23 incorrect to require valid UTF-8.
39 the I/O convenience functions provided for reading line-by-line quickly.
41 This first example simply shows how to efficiently iterate over lines in stdin,
48 fn main() -> Result<(), Box<dyn Error>> {
49 let stdin = io::stdin();
52 stdin.lock().for_byte_line_with_terminator(|line| {
62 This example shows how to count all of the words (Unicode-aware) in stdin,
[all …]
/external/python/cpython2/Lib/test/
Dtest_subprocess.py87 rc = subprocess.call([sys.executable, "-c",
93 rc = subprocess.check_call([sys.executable, "-c",
98 # check_call() function with non-zero return code
100 subprocess.check_call([sys.executable, "-c",
107 [sys.executable, "-c", "print 'BDFL'"])
111 # check_call() function with non-zero return code
114 [sys.executable, "-c", "import sys; sys.exit(5)"])
120 [sys.executable, "-c", "import sys; sys.stderr.write('BDFL')"],
128 [sys.executable, "-c", "print 'will not be run'"],
137 rc = subprocess.call([sys.executable, "-c",
[all …]
/external/python/cpython3/Doc/library/
Dasyncio-subprocess.rst3 .. _asyncio-subprocess:
12 ----------------------------------------
14 This section describes high-level async/await asyncio APIs to
64 .. coroutinefunction:: create_subprocess_exec(program, *args, stdin=None, \
82 .. coroutinefunction:: create_subprocess_shell(cmd, stdin=None, \
111 used. See :ref:`Subprocess Support on Windows <asyncio-windows-subprocess>`
116 asyncio also has the following *low-level* APIs to work with subprocesses:
119 as well as the :ref:`Subprocess Transports <asyncio-subprocess-transports>`
120 and :ref:`Subprocess Protocols <asyncio-subprocess-protocols>`.
129 Can be passed to the *stdin*, *stdout* or *stderr* parameters.
[all …]
/external/libbrillo/brillo/minijail/
Dminijail.cc2 // Use of this source code is governed by a BSD-style license that can be
99 int* stdin) { in RunPipe() argument
102 stdin, NULL, NULL) == 0; in RunPipe()
104 return minijail_run_pid_pipes(jail, args[0], args.data(), pid, stdin, NULL, in RunPipe()
112 int* stdin, in RunPipes() argument
117 stdin, stdout, stderr) == 0; in RunPipes()
119 return minijail_run_pid_pipes(jail, args[0], args.data(), pid, stdin, stdout, in RunPipes()
128 int* stdin, in RunEnvPipes() argument
133 env.data(), pid, stdin, stdout, in RunEnvPipes()
137 stdin, stdout, stderr) == 0; in RunEnvPipes()
[all …]
/external/toolchain-utils/compiler_wrapper/
Dclang_syntax_flag_test.go2 // Use of this source code is governed by a BSD-style license that can be
18 ctx.cmdMock = func(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error {
23 if err := verifyArgOrder(cmd, mainCc, "-fsyntax-only", `-stdlib=libstdc\+\+`); err != nil {
30 ctx.newCommand(gccX86_64, "-clang-syntax", mainCc)))
37 if err := verifyArgCount(cmd, 0, "-clang-syntax"); err != nil {
45 ctx.cmdMock = func(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error {
53 ctx.newCommand(gccX86_64, "-clang-syntax", mainCc)))
65 ctx.cmdMock = func(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error {
67 // the gcc call, and we assert that stdin is cloned and forwarded
69 stdinStr := ctx.readAllString(stdin)
[all …]
/external/zstd/tests/cli-tests/file-stat/
Dcompress-stdin-to-file.sh.stderr.exact5 Trace:FileStat: > UTIL_getFileSize(/*stdin*\)
6 Trace:FileStat: > UTIL_stat(-1, /*stdin*\)
8 Trace:FileStat: < -1
9 Trace:FileStat: > UTIL_isSameFile(/*stdin*\, file.zst)
10 Trace:FileStat: > UTIL_stat(-1, /*stdin*\)
14 Trace:FileStat: > UTIL_stat(-1, file.zst)
18 Trace:FileStat: > UTIL_stat(-1, file.zst)
21 Trace:FileStat: > UTIL_getFileSize(/*stdin*\)
22 Trace:FileStat: > UTIL_stat(-1, /*stdin*\)
24 Trace:FileStat: < -1
/external/rust/crates/vmm-sys-util/src/unix/
Dterminal.rs7 // SPDX-License-Identifier: BSD-3-Clause
9 //! Trait for working with [`termios`](http://man7.org/linux/man-pages/man3/termios.3.html).
22 fn modify_mode<F: FnOnce(&mut termios)>(fd: RawFd, f: F) -> Result<()> { in modify_mode()
48 fn get_flags(fd: RawFd) -> Result<c_int> { in get_flags()
57 fn set_flags(fd: RawFd, flags: c_int) -> Result<()> { in set_flags()
67 /// [`isatty`](http://man7.org/linux/man-pages/man3/isatty.3.html).
76 fn tty_fd(&self) -> RawFd; in tty_fd()
83 /// [`termios`](http://man7.org/linux/man-pages/man3/termios.3.html).
84 fn set_canon_mode(&self) -> Result<()> { in set_canon_mode()
93 fn set_raw_mode(&self) -> Result<()> { in set_raw_mode()
[all …]
/external/llvm-libc/src/__support/File/linux/
Dstdin.cpp1 //===--- Definition of Linux stdin ----------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
16 static LinuxFile StdIn(0, stdin_buffer, STDIN_BUFFER_SIZE, _IOFBF, false, variable
18 File *stdin = &StdIn; variable
23 FILE *stdin = reinterpret_cast<FILE *>(&LIBC_NAMESPACE::StdIn); variable
/external/autotest/client/bin/
Dprespawner.py3 # Use of this source code is governed by a BSD-style license that can be
15 if len(sys.argv) == 2 and sys.argv[1] == '--prespawn_autotest':
16 # Run an autotest process, and on stdin, wait for a pickled environment +
31 env, sys.argv = pickle.load(sys.stdin)
69 # Write the environment and argv to the process's stdin; it will launch
71 pickle.dump((new_env, args), process.stdin, protocol=2)
72 process.stdin.close()
77 Starts a thread to pre-spawn autotests.
82 ['python', '-u', os.path.realpath(__file__),
83 '--prespawn_autotest'],
[all …]

12345678910>>...44