/third_party/libwebsockets/minimal-examples/raw/minimal-raw-serial/ |
H A D | minimal-raw-file.c | 56 struct termios tio; in callback_raw_test() local 82 memset(&tio, 0, sizeof tio); in callback_raw_test() 83 if (tcgetattr(vhd->filefd, &tio)) { in callback_raw_test() 89 cfsetispeed(&tio, B115200); in callback_raw_test() 90 cfsetospeed(&tio, B115200); in callback_raw_test() 92 tio.c_lflag &= (tcflag_t)~(ISIG | ICANON | IEXTEN | ECHO | in callback_raw_test() 97 tio.c_iflag &= (tcflag_t)~(INLCR | IGNBRK | IGNPAR | IGNCR | ICRNL | in callback_raw_test() 103 tio.c_oflag = 0; in callback_raw_test() 105 tio in callback_raw_test() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/manual/termios/ |
H A D | tcsetattr.c | 30 struct termios tio = {}; in tcsetattr_0100() local 31 tio.c_cc[VEOF] = veof; in tcsetattr_0100() 32 int result = tcsetattr(STDIN_FILENO, TCSAFLUSH, &tio); in tcsetattr_0100() 37 result = tcgetattr(STDIN_FILENO, &tio); in tcsetattr_0100() 42 if (tio.c_cc[VEOF] != veof) { in tcsetattr_0100() 43 t_error("%s failed: tio.c_cc[%d] = %#x\n", __func__, VEOF, tio.c_cc[VEOF]); in tcsetattr_0100()
|
H A D | tcgetattr.c | 28 struct termios tio = {}; in tcgetattr_0100() local 29 int result = tcgetattr(STDIN_FILENO, &tio); in tcgetattr_0100()
|
/third_party/musl/porting/liteos_a/user/src/termios/ |
H A D | cfsetospeed.c | 7 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed() argument 14 tio->c_cflag &= ~CBAUD; in cfsetospeed() 15 tio->c_cflag |= speed; in cfsetospeed() 19 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed() argument 22 return speed ? cfsetospeed(tio, speed) : 0; in cfsetispeed()
|
/third_party/musl/src/termios/ |
H A D | cfsetospeed.c | 7 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed() argument 14 tio->c_cflag &= ~CBAUD; in cfsetospeed() 15 tio->c_cflag |= speed; in cfsetospeed() 19 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed() argument 22 return speed ? cfsetospeed(tio, speed) : 0; in cfsetispeed()
|
H A D | cfgetospeed.c | 5 speed_t cfgetospeed(const struct termios *tio) in cfgetospeed() argument 7 return tio->c_cflag & CBAUD; in cfgetospeed() 10 speed_t cfgetispeed(const struct termios *tio) in cfgetispeed() argument 12 return cfgetospeed(tio); in cfgetispeed()
|
H A D | tcgetattr.c | 4 int tcgetattr(int fd, struct termios *tio) in tcgetattr() argument 6 if (ioctl(fd, TCGETS, tio)) in tcgetattr()
|
H A D | tcsetattr.c | 5 int tcsetattr(int fd, int act, const struct termios *tio) in tcsetattr() argument 11 return ioctl(fd, TCSETS+act, tio); in tcsetattr()
|
/third_party/libuv/src/unix/ |
H A D | tty.c | 244 static void uv__tty_make_raw(struct termios* tio) { in uv__tty_make_raw() argument 245 assert(tio != NULL); in uv__tty_make_raw() 252 tio->c_iflag &= ~(IMAXBEL | IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | in uv__tty_make_raw() 254 tio->c_oflag &= ~OPOST; in uv__tty_make_raw() 255 tio->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); in uv__tty_make_raw() 256 tio->c_cflag &= ~(CSIZE | PARENB); in uv__tty_make_raw() 257 tio->c_cflag |= CS8; in uv__tty_make_raw() 274 tio->c_cc[VMIN] = 1; in uv__tty_make_raw() 275 tio->c_cc[VTIME] = 0; in uv__tty_make_raw() 277 cfmakeraw(tio); in uv__tty_make_raw() [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | tty.c | 244 static void uv__tty_make_raw(struct termios* tio) { in uv__tty_make_raw() argument 245 assert(tio != NULL); in uv__tty_make_raw() 252 tio->c_iflag &= ~(IMAXBEL | IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | in uv__tty_make_raw() 254 tio->c_oflag &= ~OPOST; in uv__tty_make_raw() 255 tio->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); in uv__tty_make_raw() 256 tio->c_cflag &= ~(CSIZE | PARENB); in uv__tty_make_raw() 257 tio->c_cflag |= CS8; in uv__tty_make_raw() 274 tio->c_cc[VMIN] = 1; in uv__tty_make_raw() 275 tio->c_cc[VTIME] = 0; in uv__tty_make_raw() 277 cfmakeraw(tio); in uv__tty_make_raw() [all...] |
/third_party/musl/src/misc/ |
H A D | openpty.c | 11 int openpty(int *pm, int *ps, char *name, const struct termios *tio, const struct winsize *ws) in openpty() argument 30 if (tio) tcsetattr(s, TCSANOW, tio); in openpty()
|
H A D | forkpty.c | 9 int forkpty(int *pm, char *name, const struct termios *tio, const struct winsize *ws) in forkpty() argument 15 if (openpty(&m, &s, name, tio, ws) < 0) return -1; in forkpty()
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
H A D | openpty.c | 11 int openpty(int *pm, int *ps, char *name, const struct termios *tio, const struct winsize *ws) in openpty() argument 30 if (tio) tcsetattr(s, TCSANOW, tio); in openpty()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | openpty.c | 49 struct termios tio; in openpty_0200() local 51 int ret = openpty(&amaster, &aslave, name, &tio, &size); in openpty_0200()
|
/third_party/toybox/lib/ |
H A D | tty.c | 64 void xsetspeed(struct termios *tio, int speed) in xsetspeed() argument 74 cfsetspeed(tio, i+1+4081*(i>15)); in xsetspeed()
|
H A D | lib.h | 343 void xsetspeed(struct termios *tio, int speed);
|
/third_party/python/Lib/test/ |
H A D | test_tarfile.py | 272 tio = io.TextIOWrapper(io.BytesIO(), 'ascii', newline='\n') 273 with support.swap_attr(sys, 'stdout', tio): 275 out = tio.detach().getvalue() 309 tio = io.TextIOWrapper(io.BytesIO(), 'ascii', newline='\n') 310 with support.swap_attr(sys, 'stdout', tio): 312 out = tio.detach().getvalue() 333 tio = io.TextIOWrapper(io.BytesIO(), 'ascii', newline='\n') 338 with support.swap_attr(sys, 'stdout', tio): 340 out = tio.detach().getvalue()
|
/third_party/toybox/porting/liteos_a/lib/ |
H A D | lib.h | 334 void xsetspeed(struct termios *tio, int speed);
|