/third_party/rust/crates/rustix/src/termios/ |
H A D | constants.rs | 12 pub use backend::termios::types::B1000000; 23 pub use backend::termios::types::B1152000; 34 pub use backend::termios::types::B1500000; 45 pub use backend::termios::types::B2000000; 58 pub use backend::termios::types::B2500000; 71 pub use backend::termios::types::B3000000; 84 pub use backend::termios::types::B3500000; 97 pub use backend::termios::types::B4000000; 105 pub use backend::termios::types::B460800; 117 pub use backend::termios [all...] |
H A D | cf.rs | 1 use crate::termios::{Speed, Termios}; 4 /// `cfgetospeed(termios)` 7 pub fn cfgetospeed(termios: &Termios) -> Speed { in cfgetospeed() 8 backend::termios::syscalls::cfgetospeed(termios) in cfgetospeed() 11 /// `cfgetispeed(termios)` 14 pub fn cfgetispeed(termios: &Termios) -> Speed { in cfgetispeed() 15 backend::termios::syscalls::cfgetispeed(termios) in cfgetispeed() 18 /// `cfmakeraw(termios)` [all...] |
H A D | tc.rs | 5 pub use backend::termios::types::{ 16 /// - [Linux `termios`] 20 /// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html 25 backend::termios::syscalls::tcgetattr(fd.as_fd()) in tcgetattr() 40 backend::termios::syscalls::tcgetwinsize(fd.as_fd()) in tcgetwinsize() 57 backend::termios::syscalls::tcgetpgrp(fd.as_fd()) in tcgetpgrp() 74 backend::termios::syscalls::tcsetpgrp(fd.as_fd(), pid) in tcsetpgrp() 84 /// - [Linux `termios`] 88 /// [Linux `termios`] [all...] |
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/ |
H A D | syscalls.rs | 1 //! linux_raw syscalls supporting `rustix::termios`. 13 use crate::termios::{ 61 termios: &Termios, 75 by_ref(termios) 147 pub(crate) fn cfgetospeed(termios: &Termios) -> u32 { 148 termios.c_cflag & CBAUD 154 pub(crate) fn cfgetispeed(termios: &Termios) -> u32 { 155 termios.c_cflag & CBAUD 159 pub(crate) fn cfmakeraw(termios: &mut Termios) { 163 termios [all...] |
/third_party/toybox/toys/pending/ |
H A D | getty.c | 42 struct termios termios; 149 if (tcgetattr(STDIN_FILENO, &TT.termios) < 0) perror_exit("tcgetattr"); in termios_init() 152 TT.termios.c_cflag &= (0|CSTOPB|PARENB|PARODD); in termios_init() 154 if (toys.optflags & FLAG_h) TT.termios.c_cflag |= CRTSCTS; in termios_init() 156 if (toys.optflags & FLAG_L) TT.termios.c_cflag |= CLOCAL; in termios_init() 157 TT.termios.c_cc[VTIME] = 0; in termios_init() 158 TT.termios.c_cc[VMIN] = 1; in termios_init() 159 TT.termios.c_oflag = OPOST|ONLCR; in termios_init() 160 TT.termios in termios_init() [all...] |
/third_party/rust/crates/nix/src/sys/ |
H A D | termios.rs | 3 //! This interface provides a safe wrapper around the termios subsystem defined by POSIX. The 7 //! If you are unfamiliar with the `termios` API, you should first read the 8 //! [API documentation](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html) and 14 //! standard fields of the underlying `termios` struct and uses safe type wrappers for those fields. 16 //! copied into the underlying `termios` struct, then the operation is done, and the data is copied 17 //! back (with additional sanity checking) into the safe wrapper types. The `termios` struct is 26 //! # use self::nix::sys::termios::SpecialCharacterIndices::VEOF; 27 //! # use self::nix::sys::termios::{_POSIX_VDISABLE, Termios}; 28 //! # let mut termios: Termios = unsafe { std::mem::zeroed() }; 29 //! termios 263 let mut termios = self.inner.borrow_mut(); global() variables 289 let mut termios = self.inner.borrow_mut(); global() variables 1147 let mut termios = mem::MaybeUninit::uninit(); tcgetattr() variables [all...] |
/third_party/rust/crates/nix/test/sys/ |
H A D | test_termios.rs | 7 use nix::sys::termios::{self, tcgetattr, LocalFlags, OutputFlags}; 25 termios::tcgetattr(pty.slave).unwrap(); in test_tcgetattr_pty() 35 termios::tcgetattr(file.as_raw_fd()).err(), in test_tcgetattr_enotty() 43 assert_eq!(termios::tcgetattr(-1).err(), Some(Errno::EBADF)); in test_tcgetattr_ebadf() 53 let mut termios = { in test_output_flags() variables 57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags() 60 termios in test_output_flags() 64 assert!(!termios in test_output_flags() 70 termios in test_output_flags() 75 let pty = openpty(None, &termios) in test_output_flags() 99 let mut termios = { test_local_flags() variables [all...] |
H A D | test_ioctl.rs | 201 use libc::{termios, TCGETS, TCSBRK, TCSETS, TIOCNXCL}; 214 ioctl_read_bad!(tcgets, TCGETS, termios); 218 let mut termios = unsafe { mem::zeroed() }; in test_ioctl_read_bad() variables 219 let res = unsafe { tcgets(file.as_raw_fd(), &mut termios) }; in test_ioctl_read_bad() 231 ioctl_write_ptr_bad!(tcsets, TCSETS, termios); 235 let termios: termios = unsafe { mem::zeroed() }; in test_ioctl_write_ptr_bad() 236 let res = unsafe { tcsets(file.as_raw_fd(), &termios) }; in test_ioctl_write_ptr_bad() 340 use libc::termios; 359 ioctl_read!(tiocgeta, TTY_IOC_MAGIC, TTY_IOC_TYPE_GETA, termios); 363 let mut termios = unsafe { mem::zeroed() }; test_ioctl_read() variables [all...] |
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | termios.h | 20 #include <bits/termios.h> 22 speed_t cfgetospeed (const struct termios *); 23 speed_t cfgetispeed (const struct termios *); 24 int cfsetospeed (struct termios *, speed_t); 25 int cfsetispeed (struct termios *, speed_t); 27 int tcgetattr (int, struct termios *); 28 int tcsetattr (int, int, const struct termios *); 38 void cfmakeraw(struct termios *); 39 int cfsetspeed(struct termios *, speed_t);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | termios.h | 20 #include <bits/termios.h> 22 speed_t cfgetospeed (const struct termios *); 23 speed_t cfgetispeed (const struct termios *); 24 int cfsetospeed (struct termios *, speed_t); 25 int cfsetispeed (struct termios *, speed_t); 27 int tcgetattr (int, struct termios *); 28 int tcsetattr (int, int, const struct termios *); 38 void cfmakeraw(struct termios *); 39 int cfsetspeed(struct termios *, speed_t);
|
H A D | pty.h | 8 #include <termios.h> 11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *); 12 int forkpty(int *, char *, const struct termios *, const struct winsize *);
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | termios.h | 21 #include <bits/termios.h> 23 speed_t cfgetospeed (const struct termios *); 24 speed_t cfgetispeed (const struct termios *); 25 int cfsetospeed (struct termios *, speed_t); 26 int cfsetispeed (struct termios *, speed_t); 28 int tcgetattr (int, struct termios *); 29 int tcsetattr (int, int, const struct termios *); 42 void cfmakeraw(struct termios *); 43 int cfsetspeed(struct termios *, speed_t);
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
H A D | termios.h | 17 #include <bits/termios.h> 19 speed_t cfgetospeed (const struct termios *); 20 speed_t cfgetispeed (const struct termios *); 21 int cfsetospeed (struct termios *, speed_t); 22 int cfsetispeed (struct termios *, speed_t); 24 int tcgetattr (int, struct termios *); 25 int tcsetattr (int, int, const struct termios *); 35 void cfmakeraw(struct termios *); 36 int cfsetspeed(struct termios *, speed_t);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | termios.h | 20 #include <bits/termios.h> 22 speed_t cfgetospeed (const struct termios *); 23 speed_t cfgetispeed (const struct termios *); 24 int cfsetospeed (struct termios *, speed_t); 25 int cfsetispeed (struct termios *, speed_t); 27 int tcgetattr (int, struct termios *); 28 int tcsetattr (int, int, const struct termios *); 38 void cfmakeraw(struct termios *); 39 int cfsetspeed(struct termios *, speed_t);
|
H A D | pty.h | 8 #include <termios.h> 11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *); 12 int forkpty(int *, char *, const struct termios *, const struct winsize *);
|
/third_party/musl/include/ |
H A D | termios.h | 21 #include <bits/termios.h> 23 speed_t cfgetospeed (const struct termios *); 24 speed_t cfgetispeed (const struct termios *); 25 int cfsetospeed (struct termios *, speed_t); 26 int cfsetispeed (struct termios *, speed_t); 28 int tcgetattr (int, struct termios *); 29 int tcsetattr (int, int, const struct termios *); 42 void cfmakeraw(struct termios *); 43 int cfsetspeed(struct termios *, speed_t);
|
/third_party/rust/crates/libc/src/unix/solarish/ |
H A D | compat.rs | 10 pub unsafe fn cfmakeraw(termios: *mut ::termios) { in cfmakeraw() 11 (*termios).c_iflag &= in cfmakeraw() 13 (*termios).c_oflag &= !OPOST; in cfmakeraw() 14 (*termios).c_lflag &= !(ECHO | ECHONL | ICANON | ISIG | IEXTEN); in cfmakeraw() 15 (*termios).c_cflag &= !(CSIZE | PARENB); in cfmakeraw() 16 (*termios).c_cflag |= CS8; in cfmakeraw() 31 (*termios).c_cc[VMIN] = 1; in cfmakeraw() 32 (*termios).c_cc[VTIME] = 0; in cfmakeraw() 35 pub unsafe fn cfsetspeed(termios [all...] |
/third_party/python/Lib/ |
H A D | getpass.py | 69 old = termios.tcgetattr(fd) # a copy to save 71 new[3] &= ~termios.ECHO # 3 == 'lflags' 72 tcsetattr_flags = termios.TCSAFLUSH 73 if hasattr(termios, 'TCSASOFT'): 74 tcsetattr_flags |= termios.TCSASOFT 76 termios.tcsetattr(fd, tcsetattr_flags, new) 79 termios.tcsetattr(fd, tcsetattr_flags, old) 81 except termios.error: 173 import termios namespace 174 # it's possible there is an incompatible termios fro [all...] |
/third_party/python/Lib/test/ |
H A D | test_ioctl.py | 7 termios = import_module('termios') variable 8 get_attribute(termios, 'TIOCGPGRP') #Can't run tests without this feature 17 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 35 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 52 r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, True) 74 if termios.TIOCSWINSZ < 0: 75 set_winsz_opcode_maybe_neg = termios.TIOCSWINSZ 76 set_winsz_opcode_pos = termios.TIOCSWINSZ & 0xffffffff 78 set_winsz_opcode_pos = termios [all...] |
/third_party/ltp/testcases/kernel/pty/ |
H A D | ptem01.c | 28 #include <termios.h> 50 * test termio/termios ioctls 57 struct termios termios; in test1() local 78 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test1() 82 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 86 if (ioctl(slavefd, TCSETSW, &termios) != 0) { in test1() 90 if (ioctl(slavefd, TCSETSF, &termios) != 0) { in test1() 94 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 383 struct termios termio in test6() local [all...] |
/third_party/rust/crates/nix/src/ |
H A D | pty.rs | 12 use crate::sys::termios::Termios; 244 /// the values in `winsize`. If `termios` is not `None`, the pseudoterminal's 245 /// terminal settings of the slave will be set to the values in `termios`. 254 termios: U, in openpty() 261 match (termios.into(), winsize.into()) { in openpty() 262 (Some(termios), Some(winsize)) => { in openpty() 263 let inner_termios = termios.get_libc_termios(); in openpty() 269 &*inner_termios as *const libc::termios as *mut _, in openpty() 283 (Some(termios), None) => { in openpty() 284 let inner_termios = termios in openpty() [all...] |
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
H A D | ioctl01.c | 25 #include <termios.h> 37 static struct termios termios; variable 47 {"File descriptor is invalid (termios)", &bfd, TCGETS, &termios, EBADF}, 49 {"Termios address is invalid", &fd, TCGETS, (struct termios *)-1, EFAULT}, 55 {"File descriptor is for a regular file (termios)", &fd_file, TCGETS, &termios, ENOTTY},
|
/third_party/musl/libc-test/src/api/ |
H A D | termios.c | 1 #include <termios.h> 12 struct termios x; in f() 120 {speed_t(*p)(const struct termios*) = cfgetispeed;} in f() 121 {speed_t(*p)(const struct termios*) = cfgetospeed;} in f() 122 {int(*p)(struct termios*,speed_t) = cfsetispeed;} in f() 123 {int(*p)(struct termios*,speed_t) = cfsetospeed;} in f() 127 {int(*p)(int,struct termios*) = tcgetattr;} in f() 130 {int(*p)(int,int,const struct termios*) = tcsetattr;} in f()
|
/third_party/node/tools/ |
H A D | pseudo-tty.py | 9 import termios namespace 56 mode = termios.tcgetattr(child_fd) 58 mode[1] = mode[1] & ~termios.ONLCR # oflag 62 mode[3] = mode[3] & ~termios.ECHOCTL # lflag 63 termios.tcsetattr(child_fd, termios.TCSANOW, mode)
|
/third_party/rust/crates/nix/test/ |
H A D | test_pty.rs | 11 use nix::sys::termios::*; 160 let mut termios = tcgetattr(fd).unwrap(); in make_raw() variables 161 cfmakeraw(&mut termios); in make_raw() 162 tcsetattr(fd, SetArg::TCSANOW, &termios).unwrap(); in make_raw() 240 let mut termios = { in test_openpty_with_termios() variables 244 let termios = tcgetattr(pty.slave).unwrap(); in test_openpty_with_termios() 247 termios in test_openpty_with_termios() 250 termios.output_flags.remove(OutputFlags::ONLCR); in test_openpty_with_termios() 252 let pty = openpty(None, &termios).unwrap(); in test_openpty_with_termios()
|