| /third_party/rust/crates/nix/test/sys/ |
| D | test_termios.rs | 1 use std::os::unix::prelude::*; 2 use tempfile::tempfile; 4 use nix::errno::Errno; 5 use nix::fcntl; 6 use nix::pty::openpty; 7 use nix::sys::termios::{self, tcgetattr, LocalFlags, OutputFlags}; 8 use nix::unistd::{close, read, write}; 24 let pty = openpty(None, None).expect("openpty failed"); in test_tcgetattr_pty() localVariable 25 termios::tcgetattr(pty.slave).unwrap(); in test_tcgetattr_pty() 26 close(pty.master).expect("closing the master failed"); in test_tcgetattr_pty() [all …]
|
| /third_party/rust/crates/nix/test/ |
| D | test_pty.rs | 1 use std::fs::File; 2 use std::io::{Read, Write}; 3 use std::os::unix::prelude::*; 4 use std::path::Path; 5 use tempfile::tempfile; 7 use libc::{_exit, STDOUT_FILENO}; 8 use nix::fcntl::{open, OFlag}; 9 use nix::pty::*; 10 use nix::sys::stat; 11 use nix::sys::termios::*; [all …]
|
| /third_party/python/Lib/test/ |
| D | test_pty.py | 7 # don't use this module... a proper check for what crashes those is needed. 12 import pty 41 # setting. The newline translation may be OS-specific. To make the 42 # test suite deterministic and OS-independent, the functions _readline 73 tty.tcgetattr(pty.STDIN_FILENO) 79 # Marginal testing of pty suite. Cannot do extensive 'do or fail' testing 80 # because pty code is not too portable. 98 self.stdin_dim = tty.tcgetwinsize(pty.STDIN_FILENO) 99 self.addCleanup(tty.tcsetwinsize, pty.STDIN_FILENO, 114 mode = tty.tcgetattr(pty.STDIN_FILENO) [all …]
|
| D | test_readline.py | 36 print(f"use libedit emulation? {is_editline}") 80 # test write-clear-read == nop 146 rc, stdout, stderr = assert_python_ok('-c', 'import readline', 147 TERM='xterm-256color') 159 # bpo-44949: Sometimes, the newline character is not written at the 165 # bpo-44949: Sometimes, the newline character is not written at the 172 # bpo-29240: On FreeBSD, if the LC_CTYPE locale is C or POSIX, 173 # writing and reading non-ASCII bytes into/from a TTY works, but 174 # readline or ncurses ignores non-ASCII bytes on read. 194 readline.parse_and_bind(r'bind ^B ed-prev-char') [all …]
|
| /third_party/python/Lib/ |
| D | pty.py | 7 # Author: Steen Lumholt -- with additions by Guido. 27 """openpty() -> (master_fd, slave_fd) 28 Open a pty master/slave pair, using os.openpty() if possible.""" 39 """master_open() -> (master_fd, slave_name) 40 Open a pty master and return the fd, and the filename of the slave end. 41 Deprecated, use openpty() instead.""" 55 """Open pty master and return (master_fd, tty_name).""" 58 pty_name = '/dev/pty' + x + y 64 raise OSError('out of pty devices') 67 """slave_open(tty_name) -> slave_fd [all …]
|
| /third_party/rust/crates/nix/src/ |
| D | pty.rs | 1 //! Create master and slave virtual pseudo-terminals (PTYs) 3 pub use libc::pid_t as SessionId; 4 pub use libc::winsize as Winsize; 6 use std::ffi::CStr; 7 use std::io; 8 use std::mem; 9 use std::os::unix::prelude::*; 11 use crate::errno::Errno; 12 use crate::sys::termios::Termios; 14 use crate::unistd::{ForkResult, Pid}; [all …]
|
| /third_party/rust/crates/clang-sys/src/ |
| D | link.rs | 1 // SPDX-License-Identifier: Apache-2.0 13 fn $name:ident($($pname:ident: $pty:ty), *) $(-> $ret:ty)* 31 fn $name:ident($($pname:ident: $pty:ty), *) $(-> $ret:ty)* 33 link!(@LOAD: #[cfg(feature = "runtime")] fn $name($($pname: $pty), *) $(-> $ret)*); 39 pub fn $name:ident($($pname:ident: $pty:ty), *) $(-> $ret:ty)*; 42 use std::cell::{RefCell}; 43 use std::sync::{Arc}; 44 use std::path::{Path, PathBuf}; 68 pub $name: Option<unsafe extern fn($($pname: $pty), *) $(-> $ret)*>, 81 fn new(library: libloading::Library, path: PathBuf) -> Self { [all …]
|
| /third_party/skia/third_party/externals/tint/src/reader/spirv/ |
| D | function_var_test.cc | 4 // you may not use this file except in compliance with the License. 7 // http://www.apache.org/licenses/LICENSE-2.0 28 /// @returns a SPIR-V assembly segment which assigns debug names 61 %int_m1 = OpConstant %int -1 in CommonTypes() 81 // Returns the SPIR-V assembly for capabilities, the memory model, 93 // Returns the SPIR-V assembly for a vertex shader, optionally 94 // with OpName decorations for certain SPIR-V IDs 115 ASSERT_TRUE(p->BuildAndParseInternalModuleExceptFunctions()) << p->error(); in TEST_F() 116 auto fe = p->function_emitter(100); in TEST_F() 120 EXPECT_THAT(test::ToString(p->program(), ast_body), in TEST_F() [all …]
|
| /third_party/libphonenumber/resources/carrier/en/ |
| D | 64.txt | 4 # you may not use this file except in compliance with the License. 7 # http://www.apache.org/licenses/LICENSE-2.0 41 642880|Symbio Networks PTY 42 642881|Symbio Networks PTY 43 642882|Symbio Networks PTY
|
| /third_party/libwebsockets/test-apps/ |
| D | test-sshd.c | 4 * Written in 2010-2019 by Andy Green <andy@warmcat.com> 16 * The test apps are intended to be adapted for use in your code, which 24 * $ sudo libwebsockets-test-sshd 28 * $ ssh -p 2200 -i /usr/local/share/libwebsockets-test-server/lws-ssh-test-keys anyuser@127.0.0.1 37 /* import the whole of lws-plugin-sshd-base statically */ 38 #include <lws-plugin-sshd-static-build-includes.h> 46 #define TEST_SERVER_KEY_PATH "/etc/lws-test-sshd-server-key" 55 * /usr[/local]/share/libwebsockets-test-server/lws-ssh-test-keys.pub 56 * and the matching private key there too in .../lws-ssh-test-keys 58 * These keys are distributed for testing! Don't use them on a real system [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
| D | HexagonCommonGEP.cpp | 1 //===- HexagonCommonGEP.cpp -----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 26 #include "llvm/IR/Use.h" 53 static cl::opt<bool> OptSpeculate("commgep-speculate", cl::init(true), 56 static cl::opt<bool> OptEnableInv("commgep-inv", cl::init(true), cl::Hidden, 59 static cl::opt<bool> OptEnableConst("commgep-const", cl::init(true), 75 using UseSet = SetVector<Use *>; 89 return F1->second < F2->second; in operator ()() 138 void separateChainForNode(GepNode *Node, Use *U, NodeToValueMap &Loc); [all …]
|
| /third_party/rust/crates/atty/src/ |
| D | lib.rs | 26 use winapi::shared::minwindef::DWORD; 28 use winapi::shared::ntdef::WCHAR; 40 pub fn is(stream: Stream) -> bool { in is() 53 pub fn is(stream: Stream) -> bool { in is() 66 pub fn is(stream: Stream) -> bool { in is() 67 use winapi::um::winbase::{ in is() 97 pub fn isnt(stream: Stream) -> bool { in isnt() 103 unsafe fn console_on_any(fds: &[DWORD]) -> bool { in console_on_any() 104 use winapi::um::{consoleapi::GetConsoleMode, processenv::GetStdHandle}; in console_on_any() 118 unsafe fn msys_tty_on(fd: DWORD) -> bool { in msys_tty_on() [all …]
|
| /third_party/libunwind/ |
| D | .travis.yml | 5 - HOST=x86_64-linux-gnu 6 - HOST=x86-linux-gnu 7 - HOST=arm-linux-gnueabihf 8 - HOST=aarch64-linux-gnu 9 - HOST=mipsel-linux-gnu 11 #- HOST=powerpc64-linux-gnu 13 linux-s390x: &linux-s390x 16 env: BUILD=s390x-linux-gnu HOST=s390x-linux-gnu 18 - autoreconf -i 19 - ./configure [all …]
|
| /third_party/libwebsockets/plugins/ssh-base/include/ |
| D | lws-plugin-ssh.h | 2 * libwebsockets - small server side websockets and web server implementation 4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com> 9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 50 #define SSHMO_VEOF 5 /* End-of-file character (sends EOF from the 52 #define SSHMO_VEOL 6 /* End-of-line character in addition to 54 #define SSHMO_VEOL2 7 /* Additional end-of-line character. */ 56 * control-Q). */ 57 #define SSHMO_VSTOP 9 /* Pauses output (normally control-S). */ 100 #define SSHMO_ONLCR 72 /* Map NL to CR-NL. */ [all …]
|
| /third_party/libwebsockets/plugins/ssh-base/ |
| D | sshd.c | 2 * libwebsockets - small server side websockets and web server implementation 4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com> 9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 26 #include "lws-ssh.h" 96 pss->write_task[pss->wt_head] = (uint8_t)task; in write_task() 97 pss->write_channel[pss->wt_head] = ch; in write_task() 98 pss->wt_head = (pss->wt_head + 1) & 7; in write_task() 99 lws_callback_on_writable(pss->wsi); in write_task() 106 pss->wt_tail = (pss->wt_tail - 1) & 7; in write_task_insert() [all …]
|
| /third_party/ltp/testcases/kernel/pty/ |
| D | hangup01.c | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 42 * pty master clone device 47 #define MESSAGE2 "Use the LTP for all your Linux testing needs." 101 while ((i = poll(pollfds, 1, -1)) == 1) { in parent() 102 if (read(masterfd, buf, len) == -1) { in parent() 154 * pty, with a hangup after each. 209 int masterfd; /* master pty fd */ in main() 213 /*--------------------------------------------------------------------*/ in main() 227 if (childpid == -1) in main() 233 /*--------------------------------------------------------------------*/ in main()
|
| /third_party/rust/crates/is-terminal/src/ |
| D | lib.rs | 1 //! is-terminal is a simple utility that answers one question: 9 //! On Unix-family platforms, this is effectively the same as the [`isatty`] 11 //! accepts high-level stream types instead of raw file descriptors. 19 //! use is_terminal::IsTerminal; 26 //! [`isatty`]: https://man7.org/linux/man-pages/man3/isatty.3.html 31 use io_lifetimes::AsFilelike; 33 use io_lifetimes::BorrowedHandle; 35 use windows_sys::Win32::Foundation::HANDLE; 37 use windows_sys::Win32::System::Console::STD_HANDLE; 45 /// use is_terminal::IsTerminal; [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
| D | NVPTXAsmPrinter.cpp | 1 //===-- NVPTXAsmPrinter.cpp - NVPTX LLVM assembly writer ------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // of machine-dependent LLVM code to NVPTX assembly language. 12 //===----------------------------------------------------------------------===// 96 /// DiscoverDependentGlobals - Return a set of GlobalVariables on which \p V 105 for (unsigned i = 0, e = U->getNumOperands(); i != e; ++i) { in DiscoverDependentGlobals() 106 DiscoverDependentGlobals(U->getOperand(i), Globals); in DiscoverDependentGlobals() 112 /// VisitGlobalVariableForEmission - Add \p GV to the list of GlobalVariable 130 for (unsigned i = 0, e = GV->getNumOperands(); i != e; ++i) in VisitGlobalVariableForEmission() [all …]
|
| D | NVPTXAsmPrinter.h | 1 //===-- NVPTXAsmPrinter.h - NVPTX LLVM assembly writer ----------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 // of machine-dependent LLVM code to NVPTX assembly language. 12 //===----------------------------------------------------------------------===// 50 // therefore we are not able to use the MCAsmStreamer interface here. 69 // is a non-NULL address, then the aggregate is emitted as u32[] 73 // those symbol addresses. For the i-th symbol address in the 74 //aggregate, its corresponding 4-byte or 8-byte elements in 'buffer' 75 // are filled with 0s. symbolPosInBuffer[i-1] records its position [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/CFGuard/ |
| D | CFGuard.cpp | 1 //===-- CFGuard.cpp - Control Flow Guard checks -----------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 37 /// address-taken function. X86_64 targets use the CF_Dispatch mechanism. X86, 38 /// ARM, and AArch64 targets use the CF_Check machanism. 48 // By default, use the guard check mechanism. in CFGuard() 61 /// symbol. This checks that the target address is a valid address-taken 63 /// function in an architecture-specific register (e.g. ECX on 32-bit X86, 107 /// address is a valid address-taken function and, if so, tail calls the [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
| D | ScalarEvolutionExpander.cpp | 1 //===- ScalarEvolutionExpander.cpp - Scalar Evolution Analysis ------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 33 /// ReuseOrCreateCast - Arrange for there to be a cast of V to Ty at IP, 43 // We use this precondition to produce a cast that will dominate all its in ReuseOrCreateCast() 54 for (User *U : V->users()) in ReuseOrCreateCast() 55 if (U->getType() == Ty) in ReuseOrCreateCast() 57 if (CI->getOpcode() == Op) { in ReuseOrCreateCast() 65 Ret->takeName(CI); in ReuseOrCreateCast() [all …]
|
| /third_party/littlefs/scripts/ |
| D | watch.py | 7 # ./scripts/watch.py -s0.1 date 10 # SPDX-License-Identifier: BSD-3-Clause 18 import pty 33 def openio(path, mode='r', buffering=-1): 34 # allow '-' for stdin/stdout 35 if path == '-': 87 self.lines.extend(lines[:-1]) 89 if lines[-1]: 90 self.tail.write(lines[-1]) 111 shrink = LinesIO.canvas_lines - len(self.lines) [all …]
|
| /third_party/musl/libc-test/src/functionalext/supplement/misc/ |
| D | test_src_functionalext_supplement_misc.gni | 3 # you may not use this file except in compliance with the License. 6 # http://www.apache.org/licenses/LICENSE-2.0 31 "pty",
|
| /third_party/libuv/test/ |
| D | test-tty.c | 6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 18 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 32 # include <pty.h> 76 fprintf(stderr, "Cannot open /dev/tty as read-only: %s\n", strerror(errno)); in TEST_IMPL() 83 fprintf(stderr, "Cannot open /dev/tty as write-only: %s\n", strerror(errno)); in TEST_IMPL() 92 ASSERT_EQ(UV_UNKNOWN_HANDLE, uv_guess_handle(-1)); in TEST_IMPL() 151 buf->base = malloc(size); in tty_raw_alloc() 152 buf->len = size; in tty_raw_alloc() 158 ASSERT_EQ(buf->base[0], ' '); in tty_raw_read() 294 memset(dummy, '.', sizeof(dummy) - 1); in TEST_IMPL() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
| D | Module.cpp | 1 //===- Module.cpp - Implement the Module class ----------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 58 //===----------------------------------------------------------------------===// 69 //===----------------------------------------------------------------------===// 93 SmallString<32> Salt(P->getPassName()); in createRNG() 101 // the parameter non-const. This would unfortunately make this in createRNG() 110 /// getNamedValue - Return the first global value in the module with 117 /// getMDKindID - Return a unique non-zero ID for the specified metadata kind. [all …]
|