/third_party/rust/crates/rustix/src/termios/ |
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::types::B500000; [all …]
|
D | cf.rs | 1 use crate::termios::{Speed, Termios}; 7 pub fn cfgetospeed(termios: &Termios) -> Speed { in cfgetospeed() 8 backend::termios::syscalls::cfgetospeed(termios) in cfgetospeed() 14 pub fn cfgetispeed(termios: &Termios) -> Speed { in cfgetispeed() 15 backend::termios::syscalls::cfgetispeed(termios) in cfgetispeed() 20 pub fn cfmakeraw(termios: &mut Termios) { in cfmakeraw() 21 backend::termios::syscalls::cfmakeraw(termios) in cfmakeraw() 26 pub fn cfsetospeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetospeed() 27 backend::termios::syscalls::cfsetospeed(termios, speed) in cfsetospeed() 32 pub fn cfsetispeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetispeed() [all …]
|
D | tc.rs | 5 pub use backend::termios::types::{ 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() 94 termios: &Termios, in tcsetattr() 96 backend::termios::syscalls::tcsetattr(fd.as_fd(), optional_actions, termios) in tcsetattr() 118 backend::termios::syscalls::tcsendbreak(fd.as_fd()) in tcsendbreak() 133 backend::termios::syscalls::tcdrain(fd.as_fd()) in tcdrain() 150 backend::termios::syscalls::tcflush(fd.as_fd(), queue_selector) in tcflush() [all …]
|
/third_party/rust/crates/nix/src/sys/ |
D | termios.rs | 237 inner: RefCell<libc::termios>, 261 pub(crate) fn get_libc_termios(&self) -> Ref<libc::termios> { in get_libc_termios() argument 263 let mut termios = self.inner.borrow_mut(); in get_libc_termios() localVariable 264 termios.c_iflag = self.input_flags.bits(); in get_libc_termios() 265 termios.c_oflag = self.output_flags.bits(); in get_libc_termios() 266 termios.c_cflag = self.control_flags.bits(); in get_libc_termios() 267 termios.c_lflag = self.local_flags.bits(); in get_libc_termios() 268 termios.c_cc = self.control_chars; in get_libc_termios() 275 termios.c_line = self.line_discipline; in get_libc_termios() 287 pub(crate) unsafe fn get_libc_termios_mut(&mut self) -> *mut libc::termios { in get_libc_termios_mut() argument [all …]
|
/third_party/toybox/toys/pending/ |
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.c_cflag |= CS8|CREAD|HUPCL|CBAUDEX; in termios_init() 162 TT.termios.c_lflag |= ISIG|ICANON|ECHO|ECHOE|ECHOK|ECHOKE; in termios_init() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/ |
D | syscalls.rs | 13 use crate::termios::{ 61 termios: &Termios, in tcsetattr() 75 by_ref(termios) in tcsetattr() 147 pub(crate) fn cfgetospeed(termios: &Termios) -> u32 { in cfgetospeed() 148 termios.c_cflag & CBAUD in cfgetospeed() 154 pub(crate) fn cfgetispeed(termios: &Termios) -> u32 { in cfgetispeed() 155 termios.c_cflag & CBAUD in cfgetispeed() 159 pub(crate) fn cfmakeraw(termios: &mut Termios) { in cfmakeraw() 163 termios.c_iflag &= !(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON); in cfmakeraw() 164 termios.c_oflag &= !OPOST; in cfmakeraw() [all …]
|
/third_party/rust/crates/nix/test/sys/ |
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() localVariable 57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags() localVariable 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).unwrap(); in test_output_flags() [all …]
|
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() localVariable 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() localVariable 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() }; in test_ioctl_read() localVariable [all …]
|
/third_party/rust/crates/libc/src/unix/solarish/ |
D | compat.rs | 10 pub unsafe fn cfmakeraw(termios: *mut ::termios) { in cfmakeraw() argument 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: *mut ::termios, speed: ::speed_t) -> ::c_int { in cfsetspeed() argument 38 ::cfsetispeed(termios, speed); in cfsetspeed() [all …]
|
/third_party/rust/crates/rustix/src/backend/libc/termios/ |
D | syscalls.rs | 18 use crate::termios::{Action, OptionalActions, QueueSelector, Speed, Termios, Winsize}; 48 termios: &Termios, in tcsetattr() 54 termios, in tcsetattr() 109 pub(crate) fn cfgetospeed(termios: &Termios) -> Speed { in cfgetospeed() 110 unsafe { c::cfgetospeed(termios) } in cfgetospeed() 116 pub(crate) fn cfgetispeed(termios: &Termios) -> Speed { in cfgetispeed() 117 unsafe { c::cfgetispeed(termios) } in cfgetispeed() 122 pub(crate) fn cfmakeraw(termios: &mut Termios) { in cfmakeraw() 123 unsafe { c::cfmakeraw(termios) } in cfmakeraw() 128 pub(crate) fn cfsetospeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetospeed() [all …]
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
D | 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/uniproton/kernel/include/ |
D | 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/ |
D | 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/kernel/include/ |
D | 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/ndk_musl_include/ |
D | 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_a/kernel/include/ |
D | 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/include/ |
D | 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/python/Lib/ |
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 176 termios.tcgetattr, termios.tcsetattr
|
/third_party/python/Lib/test/ |
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.TIOCSWINSZ 80 struct.pack("I", termios.TIOCSWINSZ))
|
/third_party/rust/crates/nix/src/ |
D | pty.rs | 12 use crate::sys::termios::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.get_libc_termios(); in openpty() 290 &*inner_termios as *const libc::termios as *mut _, in openpty() 340 termios: U, [all …]
|
/third_party/python/Doc/library/ |
D | tty.rst | 18 Because it requires the :mod:`termios` module, it will work only on Unix. 23 .. function:: setraw(fd, when=termios.TCSAFLUSH) 26 defaults to :const:`termios.TCSAFLUSH`, and is passed to 27 :func:`termios.tcsetattr`. 30 .. function:: setcbreak(fd, when=termios.TCSAFLUSH) 33 defaults to :const:`termios.TCSAFLUSH`, and is passed to 34 :func:`termios.tcsetattr`. 39 Module :mod:`termios`
|
D | termios.rst | 1 :mod:`termios` --- POSIX style tty control 4 .. module:: termios 15 complete description of these calls, see :manpage:`termios(3)` Unix manual 17 *termios* style tty I/O control configured during installation. 39 constants defined in the :mod:`termios` module. 94 import termios, sys 96 old = termios.tcgetattr(fd) 97 new = termios.tcgetattr(fd) 98 new[3] = new[3] & ~termios.ECHO # lflags 100 termios.tcsetattr(fd, termios.TCSADRAIN, new) [all …]
|
/third_party/ltp/testcases/kernel/pty/ |
D | ptem01.c | 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 termios; in test6() local 404 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test6() 408 termios.c_cflag &= ~CBAUD; in test6() 409 termios.c_cflag |= B0 & CBAUD; in test6() [all …]
|
/third_party/node/test/pseudo-tty/ |
D | pty_helper.py | 7 import termios 54 mode = termios.tcgetattr(child_fd) 56 mode[1] = mode[1] & ~termios.ONLCR # oflag 60 mode[3] = mode[3] & ~termios.ECHOCTL # lflag 61 termios.tcsetattr(child_fd, termios.TCSANOW, mode)
|
/third_party/musl/libc-test/src/api/ |
D | termios.c | 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()
|