/third_party/rust/crates/nix/test/sys/ |
H A D | test_termios.rs | 6 use nix::pty::openpty; 21 // openpty uses ptname(3) internally in test_tcgetattr_pty() 24 let pty = openpty(None, None).expect("openpty failed"); in test_tcgetattr_pty() 49 // openpty uses ptname(3) internally in test_output_flags() 54 let pty = openpty(None, None).expect("openpty failed"); in test_output_flags() 75 let pty = openpty(None, &termios).unwrap(); in test_output_flags() 95 // openpty uses ptname(3) internally in test_local_flags() 100 let pty = openpty(Non in test_local_flags() [all...] |
/third_party/python/Lib/ |
H A D | pty.py | 18 __all__ = ["openpty", "fork", "spawn"] 26 def openpty(): function 27 """openpty() -> (master_fd, slave_fd) 28 Open a pty master/slave pair, using os.openpty() if possible.""" 31 return os.openpty() 41 Deprecated, use openpty() instead.""" 44 master_fd, slave_fd = os.openpty() 70 Deprecated, use openpty() instead.""" 101 master_fd, slave_fd = openpty()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | openpty.c | 32 int ret = openpty(&amaster, &aslave, NULL, NULL, NULL); in openpty_0100() 51 int ret = openpty(&amaster, &aslave, name, &tio, &size); in openpty_0200()
|
/third_party/rust/crates/nix/src/ |
H A D | pty.rs | 19 /// This is returned by `openpty`. Note that this type does *not* implement `Drop`, so the user 241 /// (see [`openpty`](https://man7.org/linux/man-pages/man3/openpty.3.html)). 247 pub fn openpty< in openpty() functions 265 libc::openpty( in openpty() 275 libc::openpty( in openpty() 286 libc::openpty( in openpty() 296 libc::openpty( in openpty()
|
/third_party/rust/crates/nix/test/ |
H A D | test_pty.rs | 201 // openpty uses ptname(3) internally in test_openpty() 204 let pty = openpty(None, None).unwrap(); in test_openpty() 236 // openpty uses ptname(3) internally in test_openpty_with_termios() 241 let pty = openpty(None, None).unwrap(); in test_openpty_with_termios() 252 let pty = openpty(None, &termios).unwrap(); in test_openpty_with_termios() 287 // forkpty calls openpty which uses ptname(3) internally. in test_forkpty()
|
/third_party/rust/crates/libc/src/unix/solarish/ |
H A D | compat.rs | 55 pub unsafe fn openpty( in openpty() functions 131 if openpty(amain, &mut fds, name, termp, winp) != 0 { in forkpty()
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | pty.h | 11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | pty.h | 11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | pty.h | 11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
|
/third_party/musl/include/ |
H A D | pty.h | 11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
|
/third_party/python/Lib/test/ |
H A D | test_openpty.py | 1 # Test to see if openpty works. (But don't worry if it isn't available.) 5 if not hasattr(os, "openpty"): 6 raise unittest.SkipTest("os.openpty() not available.") 11 master, slave = os.openpty()
|
H A D | test_pty.py | 124 # check if pty.openpty() is able to set pty slave 142 debug("Calling pty.openpty()") 144 master_fd, slave_fd, slave_name = pty.openpty(mode, new_dim, 147 master_fd, slave_fd = pty.openpty() 164 "openpty() failed to set slave termios") 167 "openpty() failed to set slave window size") 279 debug("Calling pty.openpty()") 280 master_fd, slave_fd = pty.openpty()
|
H A D | test_ioctl.py | 72 mfd, sfd = pty.openpty()
|
H A D | test_readline.py | 310 [master, slave] = pty.openpty()
|
/third_party/musl/src/misc/ |
H A D | openpty.c | 11 int openpty(int *pm, int *ps, char *name, const struct termios *tio, const struct winsize *ws) in openpty() function
|
H A D | forkpty.c | 15 if (openpty(&m, &s, name, tio, ws) < 0) return -1; in forkpty()
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
H A D | openpty.c | 11 int openpty(int *pm, int *ps, char *name, const struct termios *tio, const struct winsize *ws) in openpty() function
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
H A D | ioctl01.c | 68 if (openpty(&amaster, &aslave, NULL, NULL, NULL) < 0) in setup()
|
/third_party/ltp/testcases/cve/ |
H A D | cve-2014-0196.c | 51 if (openpty(amaster, aslave, NULL, NULL, NULL) == -1) in create_pty()
|
/third_party/node/tools/ |
H A D | pseudo-tty.py | 53 parent_fd, child_fd = pty.openpty()
|
/third_party/littlefs/scripts/ |
H A D | watch.py | 155 mpty, spty = pty.openpty()
|
/third_party/libuv/test/ |
H A D | test-tty.c | 441 r = openpty(&master_fd, &slave_fd, NULL, NULL, &w); in TEST_IMPL()
|
/third_party/node/deps/v8/tools/dev/ |
H A D | gm.py | 218 parent, child = pty.openpty()
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/ |
H A D | mod.rs | 326 pub fn openpty( in openpty() functions
|
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_events.py | 1432 @unittest.skipUnless(hasattr(os, 'openpty'), 'need os.openpty()') 1436 master, slave = os.openpty() 1530 @unittest.skipUnless(hasattr(os, 'openpty'), 'need os.openpty()') 1535 master, slave = os.openpty() 1575 @unittest.skipUnless(hasattr(os, 'openpty'), 'need os.openpty()') 1580 master, read_slave = os.openpty()
|