Home
last modified time | relevance | path

Searched refs:termios (Results 1 – 25 of 73) sorted by relevance

123

/external/toybox/toys/pending/
Dgetty.c42 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 …]
Dmore.c22 struct termios inf; in GLOBALS()
76 struct termios newf; in more_main()
88 memcpy(&newf, &TT.inf, sizeof(struct termios)); in more_main()
Dtest.c85 struct termios termios; in test_main() local
86 toys.exitval = tcgetattr(atoi(toys.optargs[1]), &termios) == -1; in test_main()
Dtelnet.c34 struct termios def_term;
35 struct termios raw_term;
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
Duserial_linux.c951 struct termios termios; in USERIAL_Open() local
1075 tcgetattr(linux_cb.sock, &termios); in USERIAL_Open()
1077 termios.c_cflag &= ~(CSIZE | PARENB); in USERIAL_Open()
1078 termios.c_cflag = CLOCAL|CREAD|data_bits|stop_bits|parity; in USERIAL_Open()
1080 termios.c_cflag |= IGNPAR; in USERIAL_Open()
1082 termios.c_oflag = 0; in USERIAL_Open()
1083 termios.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG); in USERIAL_Open()
1084 termios.c_iflag &= ~(BRKINT | ICRNL | INLCR | ISTRIP | IXON | IGNBRK | PARMRK | INPCK); in USERIAL_Open()
1085 termios.c_lflag = 0; in USERIAL_Open()
1086 termios.c_iflag = 0; in USERIAL_Open()
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dcommon_util.py11 import termios
47 old_attrs = termios.tcgetattr(fin)
54 termios.tcsetattr(fin, termios.TCSADRAIN, old_attrs)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/mashups/
Dinteractive.py25 import termios
42 oldtty = termios.tcgetattr(sys.stdin)
67 termios.tcsetattr(sys.stdin, termios.TCSADRAIN, oldtty)
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/
Dserialposix.py15 import sys, os, fcntl, termios, struct, select, errno, time
22 TERMIOS = termios
322 orig_attr = termios.tcgetattr(self.fd)
324 … except termios.error, msg: # if a port is nonexistent but has a /dev file, it'll fail here
427termios.tcsetattr(self.fd, TERMIOS.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
529 termios.tcflush(self.fd, TERMIOS.TCIFLUSH)
535 termios.tcflush(self.fd, TERMIOS.TCOFLUSH)
540 termios.tcsendbreak(self.fd, int(duration/0.25))
601 termios.tcdrain(self.fd)
624 termios.tcflow(self.fd, TERMIOS.TCION)
[all …]
/external/llvm/test/CodeGen/X86/
D2009-01-25-NoSSE.ll13 %termios = alloca %struct.ktermios, align 8
14 %termios1 = bitcast %struct.ktermios* %termios to i8*
16 call void @bar(%struct.ktermios* %termios) nounwind
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/
Dminiterm.py119 import termios, sys, os
126 self.old = termios.tcgetattr(self.fd)
127 new = termios.tcgetattr(self.fd)
128 new[3] = new[3] & ~termios.ICANON & ~termios.ECHO & ~termios.ISIG
129 new[6][termios.VMIN] = 1
130 new[6][termios.VTIME] = 0
131 termios.tcsetattr(self.fd, termios.TCSANOW, new)
139 termios.tcsetattr(self.fd, termios.TCSAFLUSH, self.old)
/external/autotest/client/common_lib/
Dpexpect.py76 import termios
723 attr = termios.tcgetattr(self.child_fd)
724 if attr[3] & termios.ECHO:
760 attr = termios.tcgetattr(self.child_fd)
762 attr[3] = attr[3] | termios.ECHO
764 attr[3] = attr[3] & ~termios.ECHO
767 termios.tcsetattr(self.child_fd, termios.TCSANOW, attr)
1018 if hasattr(termios, 'VEOF'):
1019 char = termios.tcgetattr(self.child_fd)[6][termios.VEOF]
1030 if hasattr(termios, 'VINTR'):
[all …]
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dp2p-nfc.py368 import sys, tty, termios
373 termios.tcsetattr(fd, termios.TCSADRAIN, prev_tcgetattr)
378 import sys, tty, termios, select
381 prev_tcgetattr = termios.tcgetattr(fd)
390 termios.tcsetattr(fd, termios.TCSADRAIN, prev_tcgetattr)
/external/autotest/client/virt/
Daexpect.py8 import os, sys, pty, select, termios, fcntl
89 attr = termios.tcgetattr(shell_fd)
90 attr[0] &= ~termios.INLCR
91 attr[0] &= ~termios.ICRNL
92 attr[0] &= ~termios.IGNCR
93 attr[1] &= ~termios.OPOST
95 attr[3] |= termios.ECHO
97 attr[3] &= ~termios.ECHO
98 termios.tcsetattr(shell_fd, termios.TCSANOW, attr)
/external/toybox/lib/
Dinterestingtimes.c84 int set_terminal(int fd, int raw, struct termios *old) in set_terminal()
86 struct termios termio; in set_terminal()
117 void xset_terminal(int fd, int raw, struct termios *old) in xset_terminal()
/external/selinux/policycoreutils/run_init/
Dopen_init_pty.c49 static struct termios saved_termios;
55 struct termios buf; in tty_semi_raw()
202 struct termios tty_attr; in main()
259 struct termios s_tty_attr; in main()
/external/toybox/generated/
Dglobals.h562 struct termios termios; member
690 struct termios inf;
736 struct termios crntio;
795 struct termios def_term;
796 struct termios raw_term;
/external/libnfc-nxp/Linux_x86/
DphDal4Nfc_uart.c55 struct termios nIoConfigBackup;
56 struct termios nIoConfig;
194 memset((void *)&gComPortContext.nIoConfig, (int)0, (size_t)sizeof(struct termios)); in phDal4Nfc_uart_open_and_configure()
/external/compiler-rt/lib/asan/scripts/
Dasan_symbolize.py183 import termios
193 attr = termios.tcgetattr(fd)
194 attr[3] = attr[3] & ~termios.ECHO
195 termios.tcsetattr(fd, termios.TCSANOW, attr)
/external/libedit/src/
Dtty.c455 private int tty_getty(EditLine *, struct termios *);
456 private int tty_setty(EditLine *, int, const struct termios *);
458 private void tty__getchar(struct termios *, unsigned char *);
459 private void tty__setchar(struct termios *, unsigned char *);
460 private speed_t tty__getspeed(struct termios *);
469 tty_getty(EditLine *el, struct termios *t) in tty_getty()
481 tty_setty(EditLine *el, int action, const struct termios *t) in tty_setty()
614 tty__getspeed(struct termios *td) in tty__getspeed()
735 tty__getchar(struct termios *td, unsigned char *s) in tty__getchar()
817 tty__setchar(struct termios *td, unsigned char *s) in tty__setchar()
[all …]
/external/e2fsprogs/e2fsck/
Dutil.c193 struct termios termios, tmp; in ask_yn() local
195 tcgetattr (0, &termios); in ask_yn()
196 tmp = termios; in ask_yn()
216 tcsetattr (0, TCSANOW, &termios); in ask_yn()
241 tcsetattr (0, TCSANOW, &termios); in ask_yn()
/external/autotest/client/cros/cellular/wardmodem/
Dat_channel.py10 import termios
81 except termios.error as ttyerror:
/external/compiler-rt/test/msan/Linux/
Dtcgetattr.cc14 struct termios t; in main()
/external/strace/tests/
Dioctl.c64 struct termios tty; in main()
/external/libedit/
Dconfigure.ac74 AC_CHECK_HEADER([termios.h], [], [AC_MSG_ERROR([termios.h is required!])],[])
/external/e2fsprogs/lib/et/
Dcom_err.c51 struct termios t; in default_com_err_proc()

123