Home
last modified time | relevance | path

Searched refs:termios_p (Results 1 – 10 of 10) sorted by relevance

/glibc-2.36/sysdeps/unix/sysv/linux/
Dspeed.c37 cfgetospeed (const struct termios *termios_p) in cfgetospeed() argument
39 return termios_p->c_cflag & (CBAUD | CBAUDEX); in cfgetospeed()
47 cfgetispeed (const struct termios *termios_p) in cfgetispeed() argument
49 return ((termios_p->c_iflag & IBAUD0) in cfgetispeed()
50 ? 0 : termios_p->c_cflag & (CBAUD | CBAUDEX)); in cfgetispeed()
55 cfsetospeed (struct termios *termios_p, speed_t speed) in cfsetospeed() argument
62 termios_p->c_ospeed = speed; in cfsetospeed()
64 termios_p->c_cflag &= ~(CBAUD | CBAUDEX); in cfsetospeed()
65 termios_p->c_cflag |= speed; in cfsetospeed()
77 cfsetispeed (struct termios *termios_p, speed_t speed) in libc_hidden_def()
[all …]
Dtcgetattr.c33 __tcgetattr (int fd, struct termios *termios_p) in __tcgetattr() argument
42 termios_p->c_iflag = k_termios.c_iflag; in __tcgetattr()
43 termios_p->c_oflag = k_termios.c_oflag; in __tcgetattr()
44 termios_p->c_cflag = k_termios.c_cflag; in __tcgetattr()
45 termios_p->c_lflag = k_termios.c_lflag; in __tcgetattr()
46 termios_p->c_line = k_termios.c_line; in __tcgetattr()
49 termios_p->c_ispeed = k_termios.c_ispeed; in __tcgetattr()
51 termios_p->c_ispeed = k_termios.c_cflag & (CBAUD | CBAUDEX); in __tcgetattr()
56 termios_p->c_ospeed = k_termios.c_ospeed; in __tcgetattr()
58 termios_p->c_ospeed = k_termios.c_cflag & (CBAUD | CBAUDEX); in __tcgetattr()
[all …]
Dtcsetattr.c44 __tcsetattr (int fd, int optional_actions, const struct termios *termios_p) in __tcsetattr() argument
64 k_termios.c_iflag = termios_p->c_iflag & ~IBAUD0; in __tcsetattr()
65 k_termios.c_oflag = termios_p->c_oflag; in __tcsetattr()
66 k_termios.c_cflag = termios_p->c_cflag; in __tcsetattr()
67 k_termios.c_lflag = termios_p->c_lflag; in __tcsetattr()
68 k_termios.c_line = termios_p->c_line; in __tcsetattr()
70 k_termios.c_ispeed = termios_p->c_ispeed; in __tcsetattr()
73 k_termios.c_ospeed = termios_p->c_ospeed; in __tcsetattr()
75 memcpy (&k_termios.c_cc[0], &termios_p->c_cc[0], in __tcsetattr()
/glibc-2.36/termios/
Dspeed.c25 cfgetospeed (const struct termios *termios_p) in cfgetospeed() argument
27 return termios_p->__ospeed; in cfgetospeed()
32 cfgetispeed (const struct termios *termios_p) in cfgetispeed() argument
34 return termios_p->__ispeed; in cfgetispeed()
39 cfsetospeed (struct termios *termios_p, speed_t speed) in cfsetospeed() argument
41 if (termios_p == NULL) in cfsetospeed()
47 termios_p->__ospeed = speed; in cfsetospeed()
54 cfsetispeed (struct termios *termios_p, speed_t speed) in libc_hidden_def()
56 if (termios_p == NULL) in libc_hidden_def()
62 termios_p->__ispeed = speed; in libc_hidden_def()
Dtcsetattr.c26 tcsetattr (int fd, int optional_actions, const struct termios *termios_p) in tcsetattr() argument
33 if (termios_p == NULL) in tcsetattr()
49 if (bad_speed(termios_p->__ospeed) in tcsetattr()
50 || bad_speed(termios_p->__ispeed == 0 in tcsetattr()
51 ? termios_p->__ospeed : termios_p->__ispeed)) in tcsetattr()
Dcfsetspeed.c140 cfsetspeed (struct termios *termios_p, speed_t speed) in cfsetspeed() argument
147 cfsetispeed (termios_p, speed); in cfsetspeed()
148 cfsetospeed (termios_p, speed); in cfsetspeed()
153 cfsetispeed (termios_p, speeds[cnt].internal); in cfsetspeed()
154 cfsetospeed (termios_p, speeds[cnt].internal); in cfsetspeed()
Dtcgetattr.c24 __tcgetattr (int fd, struct termios *termios_p) in __tcgetattr() argument
31 if (termios_p == NULL) in __tcgetattr()
/glibc-2.36/sysdeps/unix/bsd/
Dtcsetattr.c35 tcsetattr (int fd, int optional_actions, const struct termios *termios_p) in tcsetattr() argument
41 myt = *termios_p; in tcsetattr()
43 termios_p = &myt; in tcsetattr()
50 return __ioctl (fd, TIOCSETA, termios_p); in tcsetattr()
53 return __ioctl (fd, TIOCSETAW, termios_p); in tcsetattr()
56 return __ioctl (fd, TIOCSETAF, termios_p); in tcsetattr()
Dtcgetattr.c33 __tcgetattr (int fd, struct termios *termios_p) in __tcgetattr() argument
35 return __ioctl (fd, TIOCGETA, termios_p); in __tcgetattr()
/glibc-2.36/ChangeLog.old/
DChangeLog.91474 read-only struct termios_p* but change k_termios member directly.