Home
last modified time | relevance | path

Searched refs:pty (Results 1 - 25 of 36) sorted by relevance

12

/third_party/rust/crates/nix/test/sys/
H A Dtest_termios.rs6 use nix::pty::openpty;
24 let pty = openpty(None, None).expect("openpty failed"); in test_tcgetattr_pty()
25 termios::tcgetattr(pty.slave).unwrap(); in test_tcgetattr_pty()
26 close(pty.master).expect("closing the master failed"); in test_tcgetattr_pty()
27 close(pty.slave).expect("closing the slave failed"); in test_tcgetattr_pty()
52 // Open one pty to get attributes for the second one in test_output_flags()
54 let pty = openpty(None, None).expect("openpty failed"); in test_output_flags()
55 assert!(pty.master > 0); in test_output_flags()
56 assert!(pty.slave > 0); in test_output_flags()
57 let termios = tcgetattr(pty in test_output_flags()
[all...]
/third_party/python/Lib/test/
H A Dtest_pty.py12 import pty namespace
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)
117 debug("tty.tcgetattr(pty.STDIN_FILENO) failed")
123 # Modify pty.STDIN_FILENO window size; we need to
124 # check if pty
[all...]
H A Dtest_ioctl.py25 import pty namespace
27 pty = None variable
70 if not pty:
71 raise unittest.SkipTest('pty module required')
72 mfd, sfd = pty.openpty()
H A Dtest_readline.py308 pty = import_module('pty')
310 [master, slave] = pty.openpty()
/third_party/rust/crates/nix/test/
H A Dtest_pty.rs9 use nix::pty::*;
204 let pty = openpty(None, None).unwrap(); in test_openpty()
205 assert!(pty.master > 0); in test_openpty()
206 assert!(pty.slave > 0); in test_openpty()
211 write(pty.master, string.as_bytes()).unwrap(); in test_openpty()
212 crate::read_exact(pty.slave, &mut buf); in test_openpty()
219 crate::read_exact(pty.master, &mut buf); in test_openpty()
225 write(pty.slave, string2.as_bytes()).unwrap(); in test_openpty()
226 crate::read_exact(pty.master, &mut buf); in test_openpty()
230 close(pty in test_openpty()
[all...]
H A Dtest_ptymaster_drop.rs4 use nix::pty::*;
/third_party/rust/crates/clang-sys/src/
H A Dlink.rs13 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)*;
68 pub $name: Option<unsafe extern fn($($pname: $pty), *) $(-> $ret)*>,
144 pub unsafe fn $name($($pname: $pty), *) $(-> $ret)* {
165 $(link!(@LOAD: $(#[cfg($cfg)])* fn $name($($pname: $pty), *) $(-> $ret)*);)+
254 pub fn $name:ident($($pname:ident: $pty:ty), *) $(-> $ret:ty)*;
260 pub fn $name($($pname: $pty), *) $(-> $ret)*;
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dpty.c31 int pty, err; in __ptsname_r() local
33 if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return -err; in __ptsname_r()
34 if (snprintf(buf, len, "/dev/pts/%d", pty) >= len) return ERANGE; in __ptsname_r()
H A Dopenpty.c4 #include <pty.h>
/third_party/musl/src/misc/
H A Dpty.c31 int pty, err; in __ptsname_r() local
33 if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return -err; in __ptsname_r()
34 if (snprintf(buf, len, "/dev/pts/%d", pty) >= len) return ERANGE; in __ptsname_r()
H A Dopenpty.c4 #include <pty.h>
H A Dforkpty.c1 #include <pty.h>
/third_party/libwebsockets/test-apps/
H A Dtest-sshd.c415 ssh_ops_pty_req(void *_priv, struct lws_ssh_pty *pty) in ssh_ops_pty_req() argument
418 uint8_t *p = (uint8_t *)pty->modes, opc; in ssh_ops_pty_req()
421 lwsl_notice("%s: pty term %s, modes_len %d\n", __func__, pty->term, in ssh_ops_pty_req()
422 pty->modes_len); in ssh_ops_pty_req()
424 ssh_cgi_env_add(priv, "TERM", pty->term); in ssh_ops_pty_req()
426 while (p < (uint8_t *)pty->modes + pty->modes_len) { in ssh_ops_pty_req()
438 lwsl_debug("pty opc %d: 0x%x\n", opc, arg); in ssh_ops_pty_req()
/third_party/ltp/testcases/kernel/mce-test/kvm/host/
H A Dhost_run.sh247 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
259 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
/third_party/libwebsockets/plugins/ssh-base/
H A Dsshd.c744 * string "pty-req" in lws_ssh_parse_plaintext()
1438 if (!strcmp(pss->name, "pty-req")) { in lws_ssh_parse_plaintext()
1499 /* CHRQ pty-req */ in lws_ssh_parse_plaintext()
1502 memcpy(pss->args.pty.term, pss->name, in lws_ssh_parse_plaintext()
1503 sizeof(pss->args.pty.term) - 1); in lws_ssh_parse_plaintext()
1507 pss->args.pty.width_ch = pss->len; in lws_ssh_parse_plaintext()
1511 pss->args.pty.height_ch = pss->len; in lws_ssh_parse_plaintext()
1515 pss->args.pty.width_px = pss->len; in lws_ssh_parse_plaintext()
1519 pss->args.pty.height_px = pss->len; in lws_ssh_parse_plaintext()
1524 pss->args.pty in lws_ssh_parse_plaintext()
[all...]
/third_party/node/tools/
H A Dpseudo-tty.py5 import pty namespace
53 parent_fd, child_fd = pty.openpty()
70 # Ensure the pty is a controlling tty.
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dopenpty.c17 #include <pty.h>
H A Dptsname.c16 #include <pty.h>
H A Dforkpty.c16 #include <pty.h>
H A Dpty.c17 #include <pty.h>
/third_party/ltp/testcases/kernel/
H A DMakefile35 pty \
/third_party/ltp/testcases/kernel/syscalls/ioctl/
H A Dioctl01.c26 #include <pty.h>
69 tst_brk(TBROK | TERRNO, "unable to open pty"); in setup()
/third_party/littlefs/scripts/
H A Dwatch.py18 import pty namespace
155 mpty, spty = pty.openpty()
/third_party/ltp/testcases/cve/
H A Dcve-2014-0196.c25 #include <pty.h>
52 tst_brk(TBROK | TERRNO, "pty creation failed"); in create_pty()
/third_party/libwebsockets/plugins/ssh-base/include/
H A Dlws-plugin-ssh.h272 * pty_req() - Create a Pseudo-TTY as described in pty
275 * \param pty: pointer to struct describing the desired pty
277 * Client requested a pty. Return nonzero to fail.
279 int (*pty_req)(void *priv, struct lws_ssh_pty *pty);

Completed in 9 milliseconds

12