Home
last modified time | relevance | path

Searched refs:openpty (Results 1 - 25 of 38) sorted by relevance

12

/third_party/rust/crates/nix/test/sys/
H A Dtest_termios.rs6 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 Dpty.py18 __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 Dopenpty.c32 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 Dpty.rs19 /// 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 Dtest_pty.rs201 // 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 Dcompat.rs55 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 Dpty.h11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dpty.h11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
/third_party/musl/porting/uniproton/kernel/include/
H A Dpty.h11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
/third_party/musl/include/
H A Dpty.h11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
/third_party/python/Lib/test/
H A Dtest_openpty.py1 # 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 Dtest_pty.py124 # 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 Dtest_ioctl.py72 mfd, sfd = pty.openpty()
H A Dtest_readline.py310 [master, slave] = pty.openpty()
/third_party/musl/src/misc/
H A Dopenpty.c11 int openpty(int *pm, int *ps, char *name, const struct termios *tio, const struct winsize *ws) in openpty() function
H A Dforkpty.c15 if (openpty(&m, &s, name, tio, ws) < 0) return -1; in forkpty()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dopenpty.c11 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 Dioctl01.c68 if (openpty(&amaster, &aslave, NULL, NULL, NULL) < 0) in setup()
/third_party/ltp/testcases/cve/
H A Dcve-2014-0196.c51 if (openpty(amaster, aslave, NULL, NULL, NULL) == -1) in create_pty()
/third_party/node/tools/
H A Dpseudo-tty.py53 parent_fd, child_fd = pty.openpty()
/third_party/littlefs/scripts/
H A Dwatch.py155 mpty, spty = pty.openpty()
/third_party/libuv/test/
H A Dtest-tty.c441 r = openpty(&master_fd, &slave_fd, NULL, NULL, &w); in TEST_IMPL()
/third_party/node/deps/v8/tools/dev/
H A Dgm.py218 parent, child = pty.openpty()
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/
H A Dmod.rs326 pub fn openpty( in openpty() functions
/third_party/python/Lib/test/test_asyncio/
H A Dtest_events.py1432 @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()

Completed in 20 milliseconds

12