Home
last modified time | relevance | path

Searched +full:use +full:- +full:pty (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/external/rust/android-crates-io/crates/nix/test/sys/
Dtest_termios.rs1 use std::os::unix::io::{AsFd, AsRawFd};
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, BaudRate, LocalFlags, OutputFlags};
8 use nix::unistd::{read, write};
33 let pty = openpty(None, None).expect("openpty failed"); in test_tcgetattr_pty() localVariable
34 termios::tcgetattr(&pty.slave).unwrap(); in test_tcgetattr_pty()
50 // Open one pty to get attributes for the second one in test_output_flags()
[all …]
/external/rust/android-crates-io/crates/nix/test/
Dtest_pty.rs1 use std::fs::File;
2 use std::io::{stdout, Read, Write};
3 use std::os::unix::prelude::*;
4 use std::path::Path;
6 use libc::_exit;
7 use nix::fcntl::{open, OFlag};
8 use nix::pty::*;
9 use nix::sys::stat;
10 use nix::sys::termios::*;
11 use nix::sys::wait::WaitStatus;
[all …]
/external/python/cpython3/Lib/
Dpty.py7 # 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."""
44 …warnings.warn("Use pty.openpty() instead.", DeprecationWarning, stacklevel=2) # Remove API in 3.14
58 """Open pty master and return (master_fd, tty_name)."""
61 pty_name = '/dev/pty' + x + y
67 raise OSError('out of pty devices')
[all …]
/external/python/bumble/examples/
DREADME.md14 controller, attached to a local link bus to a second, in-process, virtual controller, itself
21 In a terminal, run `socat` to bridge a UDP socket to a local PTY.
22 The PTY is used a virtual HCI UART.
24 the appropriate address for your environment. (you may also use a port number other than `22333` us…
26 socat -d -d -x PTY,link=./hci_pty,rawer UDP-SENDTO:172.16.104.1:22333,bind=:22333
29 In the local directory, `socat` creates a symbolic link named `hci_pty` that points to the PTY.
33 sudo btattach -P h4 -B hci_pty
36 This tells BlueZ to use the PTY as an HCI UART controller.
48 This configures one of the virtual controllers to use a UDP socket as its HCI transport. In this ex…
61 python run_controller.py device1.json pty:hci_pty
[all …]
/external/python/cpython3/Doc/library/
Dpty.rst1 :mod:`!pty` --- Pseudo-terminal utilities
4 .. module:: pty
6 :synopsis: Pseudo-Terminal Handling for Unix.
11 **Source code:** :source:`Lib/pty.py`
13 --------------
15 The :mod:`pty` module defines operations for handling the pseudo-terminal
21 Pseudo-terminal handling is highly platform dependent. This code is mainly
25 The :mod:`pty` module defines the following functions:
30 Fork. Connect the child's controlling terminal to a pseudo-terminal. Return
36 .. warning:: On macOS the use of this function is unsafe when mixed with using
[all …]
/external/llvm/unittests/Support/
DCasting.cpp1 //===---------- llvm/unittest/Support/Casting.cpp - Casting tests ---------===//
8 //===----------------------------------------------------------------------===//
79 // Test the peculiar behavior of Use in simplify_type.
80 static_assert(std::is_same<simplify_type<Use>::SimpleType, Value *>::value,
81 "Use doesn't simplify correctly!");
82 static_assert(std::is_same<simplify_type<Use *>::SimpleType, Value *>::value,
83 "Use doesn't simplify correctly!");
246 static bool classof(const Base *B) { return B->IsDerived; } in classof()
249 class PTy { class
252 PTy(Base *B) : B(B) {} in PTy() function in __anon03e426f90311::pointer_wrappers::PTy
[all …]
/external/openthread/.github/workflows/
Dposix.yml5 # Redistribution and use in source and binary forms, with or without
22 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
48 expects-linux:
49 runs-on: ubuntu-22.04
[all …]
/external/python/bumble/bumble/transport/
Dpty.py1 # Copyright 2021-2022 Google LLC
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
15 # -----------------------------------------------------------------------------
17 # -----------------------------------------------------------------------------
19 import pty
30 # -----------------------------------------------------------------------------
32 # -----------------------------------------------------------------------------
36 # -----------------------------------------------------------------------------
37 async def open_pty_transport(spec: Optional[str]) -> Transport:
[all …]
/external/kernel-headers/original/uapi/asm-generic/
Dioctls.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
9 * Most of them do not use the recommended _IOC(), but there is
11 * so we might as well use them for all new platforms.
13 * The architectures that use different values here typically
69 #define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
70 #define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */
76 #define TIOCSIG _IOW('T', 0x36, int) /* pty: generate signal */
79 #define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */
103 * conflict with a Hayes modem-specific ioctl value.
/external/openthread/tests/scripts/expect/
Dposix-rcp-stack-reset.exp1 #!/usr/bin/expect -f
6 # Redistribution and use in source and binary forms, with or without
23 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 set socat_pid [exec socat -d -d pty,raw,echo=0 pty,raw,echo=0 >/dev/null 2>$socat_out &]
40 if {[exec head -n2 $socat_out | wc -l] == 2} {
41 set radio_pty [exec head -n1 $socat_out | grep -o {/dev/.\+}]
42 set host_pty [exec head -n2 $socat_out | tail -n1 | grep -o {/dev/.\+}]
48 puts "Radio PTY: $radio_pty"
49 puts "Host PTY: $host_pty"
[all …]
Dposix-rcp-restoration.exp1 #!/usr/bin/expect -f
6 # Redistribution and use in source and binary forms, with or without
23 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 set socat_pid [exec socat -d -d pty,raw,echo=0 pty,raw,echo=0 >/dev/null 2>$socat_out &]
40 if {[exec head -n2 $socat_out | wc -l] == 2} {
41 set radio_pty [exec head -n1 $socat_out | grep -o {/dev/.\+}]
42 set host_pty [exec head -n2 $socat_out | tail -n1 | grep -o {/dev/.\+}]
48 puts "Radio PTY: $radio_pty"
49 puts "Host PTY: $host_pty"
[all …]
/external/rust/android-crates-io/crates/clang-sys/src/
Dlink.rs1 // 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::fmt;
44 use std::sync::{Arc};
45 use std::path::{Path, PathBuf};
69 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
[all …]
/external/rust/android-crates-io/crates/nix/src/
Dpty.rs1 //! 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;
9 use std::mem;
10 use std::os::unix::prelude::*;
12 use crate::errno::Errno;
14 use crate::sys::termios::Termios;
16 use crate::unistd::Pid;
[all …]
/external/pigweed/pw_emu/py/pw_emu/
Dqemu.py4 # use this file except in compliance with the License. You may obtain a copy of
7 # https://www.apache.org/licenses/LICENSE-2.0
66 def request(self, cmd: str, args: dict[str, Any] | None = None) -> Any:
77 _QMP_LOG.debug(' -> {json.dumps(cmd)}')
78 self._stream.write(json.dumps(req).encode('utf-8'))
81 _QMP_LOG.debug(' <- {line}')
103 def _set_qemu_channel_tcp(self, name: str, filename: str) -> None:
108 [disconnected|isconnected:]tcp:<host>:<port>[,<options>][ <->
119 host = ':'.join(host_port[0:-1])
120 port = host_port[-1]
[all …]
/external/pigweed/pw_emu/py/
Dmock_emu_frontend.py5 # use this file except in compliance with the License. You may obtain a copy of
8 # https://www.apache.org/licenses/LICENSE-2.0
39 ) -> None:
59 super().__init__('mock-emu', config_path)
70 ) -> list[str]:
72 if self._config.get_target(['pre-start-cmds']):
74 self._handles.add_channel_pty('test_subst_pty', 'pty-path')
76 channels += ['--tcp-channel', 'gdb']
78 channels += ['--tcp-channel', 'tcp']
80 channels += ['--pty-channel', 'pty']
[all …]
/external/ot-br-posix/tests/scripts/expect/
D_common.exp1 #!/usr/bin/expect -f
6 # Redistribution and use in source and binary forms, with or without
23 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 -re $success {
41 -re $failure {
54 expect -re "\[\r\n \]($line)(?=\[\r\n>\])"
60 # 1. cli: The cli app. ot-cli-ftd or ot-cli-mtd
61 # 2. otbr: The otbr-agent.
65 # If type is 'otbr', sim_app is the path of the coprocessor. It could be 'ot-rcp', 'ot-ncp-ftd'
[all …]
/external/openthread/tools/harness-simulation/posix/otbr_sim/
Dotbr_docker.py6 # Redistribution and use in source and binary forms, with or without
23 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 device_pattern = re.compile('(?<=PTY is )/dev/.+$')
58 def __repr__(self) -> str:
76 … self._socat_proc = subprocess.Popen(['socat', '-d', '-d', 'pty,raw,echo=0', 'pty,raw,echo=0'],
85 … self.logger.info(f"socat running: device PTY: {self._rcp_device_pty}, device: {self._rcp_device}")
109 # We expect ot-rcp not to quit in 1 second.
112 raise Exception(f"ot-rcp {self.nodeid} exited unexpectedly!")
129 '--rm',
[all …]
/external/pigweed/seed/
D0108.rst5 .. _seed-0108:
14 :proposal_date: 2023-06-24
19 -------
21 -------
26 -----------
28 -----------
30 for :ref:`target <docs-targets>` on the host machine. The **host** is the machine that
34 has a correspondence in the real world - a product, an evaluation board, a
41 An emulator may use an **object model**, a hierarchical arrangement of emulator
52 * An emulated UART could be exposed on the host as a `PTY
[all …]
/external/curl/.github/workflows/
Dlinux-old.yml3 # SPDX-License-Identifier: curl
12 # stretch has ELTS support from Freexian until 2027-06-30
13 # For ELTS info see https://www.freexian.com/lts/extended/docs/how-to-use-extended-lts/
14 # The Debian key will expire 2025-05-20, after which package signature
24 - master
25 - '*/ci'
26 paths-ignore:
27 - '**/*.md'
28 - '.circleci/**'
29 - 'appveyor.*'
[all …]
/external/rust/android-crates-io/crates/rustix/src/
Dpty.rs4 //! [rustix-openpty crate].
6 //! [rustix-openpty crate]: https://crates.io/crates/rustix-openpty
10 use crate::backend::c;
11 use crate::fd::{AsFd, OwnedFd};
12 use crate::fs::OFlags;
13 use crate::{backend, io};
18 use {crate::ffi::CString, alloc::vec::Vec};
21 use crate::{fd::FromRawFd, ioctl};
24 /// `O_*` flags for use with [`openpt`] and [`ioctl_tiocgptpeer`].
26 …/// [`ioctl_tiocgptpeer`]: https://docs.rs/rustix/*/x86_64-unknown-linux-gnu/rustix/pty/fn.ioctl_t…
[all …]
/external/python/cpython3/Lib/test/support/
Dpty_helper.py2 Helper to run a script in a pseudo-terminal.
14 pty = import_module('pty')
16 [master, slave] = pty.openpty()
17 args = (sys.executable, '-c', script)
31 # work with pseudo-terminals on OS X < 10.9 (Issue 20365) and Open
34 # to use with select().
/external/python/cpython3/Doc/deprecations/
Dpending-removal-in-3.14.rst2 ------------------------------
19 Use :class:`ast.Constant` instead.
43 For use in typing, prefer a union, like ``bytes | bytearray``,
56 Use :mod:`importlib.resources.abc` classes instead:
70 Linux, BSDs, and other non-macOS POSIX platforms where ``'fork'`` is currently
72 disruptive as the majority of code is not expected to care. Use the
75 your code *requires* ``'fork'``. See :ref:`multiprocessing-start-methods`.
83 use :func:`importlib.util.find_spec` instead.
86 * :mod:`pty`:
88 * ``master_open()``: use :func:`pty.openpty`.
[all …]
/external/libwebsockets/test-apps/
Dtest-sshd.c4 * 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 …]
/external/pigweed/pw_emu/py/tests/
Dqemu_test.py5 # use this file except in compliance with the License. You may obtain a copy of
8 # https://www.apache.org/licenses/LICENSE-2.0
32 # TODO: b/301382004 - The Python Pigweed package install (into python-venv)
35 # using Pigweed tools like pw cli or the arm-none-eabi-gdb wrapper.
56 'executable': 'qemu-system-arm',
59 'test-target': {
76 def setUp(self) -> None:
79 self._emu.start(target='test-target', pause=True)
81 def tearDown(self) -> None:
85 def test_running(self) -> None:
[all …]
Dcli_test.py5 # use this file except in compliance with the License. You may obtain a copy of
8 # https://www.apache.org/licenses/LICENSE-2.0
30 # TODO: b/301382004 - The Python Pigweed package install (into python-venv)
33 # using Pigweed tools like pw cli or the arm-none-eabi-gdb wrapper.
42 """Test non-interactive commands"""
46 'mock-emu': {
51 'mock-emu': {
55 'gdb': _mock_emu + ['--exit', '--'],
56 'targets': {'test-target': {'mock-emu': {}}},
59 def _build_cmd(self, args: list[str]) -> list[str]:
[all …]

12345678910>>...15