Home
last modified time | relevance | path

Searched refs:tcgetattr (Results 1 - 25 of 66) sorted by relevance

123

/third_party/rust/crates/nix/test/sys/
H A Dtest_termios.rs7 use nix::sys::termios::{self, tcgetattr, LocalFlags, OutputFlags};
18 // Test tcgetattr on a terminal
25 termios::tcgetattr(pty.slave).unwrap(); in test_tcgetattr_pty()
30 // Test tcgetattr on something that isn't a terminal
35 termios::tcgetattr(file.as_raw_fd()).err(), in test_tcgetattr_enotty()
40 // Test tcgetattr on an invalid file descriptor
43 assert_eq!(termios::tcgetattr(-1).err(), Some(Errno::EBADF)); in test_tcgetattr_ebadf()
57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags()
103 let termios = tcgetattr(pt in test_local_flags()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/manual/termios/
H A Dtcgetattr.c29 int result = tcgetattr(STDIN_FILENO, &tio); in tcgetattr_0100()
43 int result = tcgetattr(-1, NULL); in tcgetattr_0200()
H A Dtcsetattr.c37 result = tcgetattr(STDIN_FILENO, &tio); in tcsetattr_0100()
/third_party/python/Lib/
H A Dtty.py20 mode = tcgetattr(fd)
32 mode = tcgetattr(fd)
H A Dgetpass.py69 old = termios.tcgetattr(fd) # a copy to save
176 termios.tcgetattr, termios.tcsetattr
H A Dpty.py16 from tty import setraw, tcgetattr, tcsetattr namespace
204 mode = tcgetattr(STDIN_FILENO)
/third_party/python/Lib/test/
H A Dtest_pty.py73 tty.tcgetattr(pty.STDIN_FILENO)
114 mode = tty.tcgetattr(pty.STDIN_FILENO)
117 debug("tty.tcgetattr(pty.STDIN_FILENO) failed")
163 self.assertEqual(tty.tcgetattr(slave_fd), mode,
310 self.orig_pty_tcgetattr = pty.tcgetattr
327 pty.tcgetattr = self.orig_pty_tcgetattr
408 pty.tcgetattr = lambda fd: mode_sentinel
H A Dtest_getpass.py118 mock.patch('termios.tcgetattr') as tcgetattr, \
122 tcgetattr.return_value = list(fake_attrs)
130 mock.patch('termios.tcgetattr'), \
145 mock.patch('termios.tcgetattr'), \
/third_party/rust/crates/rustix/src/termios/
H A Dtc.rs9 /// `tcgetattr(fd)`—Get terminal attributes.
14 /// - [POSIX `tcgetattr`]
18 /// [POSIX `tcgetattr`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetattr.html
24 pub fn tcgetattr<Fd: AsFd>(fd: Fd) -> io::Result<Termios> { in tcgetattr() functions
25 backend::termios::syscalls::tcgetattr(fd.as_fd()) in tcgetattr()
/third_party/musl/src/termios/
H A Dtcgetattr.c4 int tcgetattr(int fd, struct termios *tio) in tcgetattr() function
/third_party/musl/porting/uniproton/kernel/include/
H A Dtermios.h27 int tcgetattr (int, struct termios *);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dtermios.h27 int tcgetattr (int, struct termios *);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dtermios.h28 int tcgetattr (int, struct termios *);
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dtermios.h24 int tcgetattr (int, struct termios *);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtermios.h27 int tcgetattr (int, struct termios *);
/third_party/musl/include/
H A Dtermios.h28 int tcgetattr (int, struct termios *);
/third_party/musl/libc-test/src/functionalext/supplement/termios/termios_gtest/
H A Dtermios_cfsetspeed_test.cpp25 int result1 = tcgetattr(fd, &tty); in HWTEST_F()
/third_party/musl/src/legacy/
H A Dgetpass.c17 tcgetattr(fd, &t); in getpass()
/third_party/ltp/testcases/kernel/pty/
H A Dpty02.c33 if (tcgetattr(ptmx, &io) != 0) in do_test()
34 tst_brk(TBROK | TERRNO, "tcgetattr() failed"); in do_test()
/third_party/musl/Benchmark/musl/
H A Dlibc_ioctl.cpp37 ret = tcgetattr(fd, &ttydev); in Bm_function_Ioctl_baudrate()
/third_party/rust/crates/rustix/src/backend/libc/termios/
H A Dsyscalls.rs22 pub(crate) fn tcgetattr(fd: BorrowedFd<'_>) -> io::Result<Termios> {
25 ret(c::tcgetattr(borrowed_fd(fd), result.as_mut_ptr()))?;
/third_party/toybox/toys/pending/
H A Dsulogin.c47 tcgetattr(0, &(TT.crntio)); in validate_password()
/third_party/rust/crates/nix/test/
H A Dtest_pty.rs160 let mut termios = tcgetattr(fd).unwrap(); in make_raw()
244 let termios = tcgetattr(pty.slave).unwrap(); in test_openpty_with_termios()
/third_party/curl/src/
H A Dtool_getpass.c147 tcgetattr(fd, &withecho); in ttyecho()
/third_party/ltp/testcases/cve/
H A Dcve-2014-0196.c100 tcgetattr(master_fd, &t); in run()

Completed in 6 milliseconds

123