Searched defs:termios_p (Results 1 - 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dcfgetispeed.c39 * returns input baud rate stored in c_cflag pointed by termios_p
43 cfgetispeed(const struct termios *termios_p) argument
45 return (termios_p->c_cflag & CIBAUDEXT ?
46 ((termios_p->c_cflag & CIBAUD) >> 16) + (CIBAUD >> 16) + 1 :
47 (termios_p->c_cflag & CIBAUD) >> 16);
H A Dcfgetospeed.c39 * returns output baud rate stored in c_cflag pointed by termios_p
43 cfgetospeed(const struct termios *termios_p) argument
45 return (termios_p->c_cflag & CBAUDEXT ?
46 (termios_p->c_cflag & CBAUD) + CBAUD + 1 :
47 termios_p->c_cflag & CBAUD);
H A Dcfsetispeed.c43 cfsetispeed(struct termios *termios_p, speed_t speed) argument
49 speed = termios_p->c_cflag & CBAUD;
50 if (termios_p->c_cflag & CBAUDEXT)
55 termios_p->c_cflag |= CIBAUDEXT;
58 termios_p->c_cflag &= ~CIBAUDEXT;
59 termios_p->c_cflag =
60 (termios_p->c_cflag & ~CIBAUD) | ((speed << 16) & CIBAUD);
H A Dcfsetospeed.c43 cfsetospeed(struct termios *termios_p, speed_t speed) argument
46 termios_p->c_cflag |= CBAUDEXT;
49 termios_p->c_cflag &= ~CBAUDEXT;
51 termios_p->c_cflag =
52 (termios_p->c_cflag & ~CBAUD) | (speed & CBAUD);
H A Dtcgetattr.c44 tcgetattr(int fildes, struct termios *termios_p) argument
46 return (ioctl(fildes, TCGETS, termios_p));
H A Dtcsetattr.c45 tcsetattr(int fildes, int optional_actions, const struct termios *termios_p) argument
54 rval = ioctl(fildes, TCSETS, termios_p);
59 rval = ioctl(fildes, TCSETSW, termios_p);
64 rval = ioctl(fildes, TCSETSF, termios_p);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dposix_tty.c42 cfgetospeed(struct termios *termios_p) argument
44 return (termios_p->c_cflag & CBAUDEXT ?
45 (termios_p->c_cflag & CBAUD) + CBAUD + 1 :
46 termios_p->c_cflag & CBAUD);
53 cfsetospeed(struct termios *termios_p, speed_t speed) argument
60 termios_p->c_cflag |= CBAUDEXT;
63 termios_p->c_cflag &= ~CBAUDEXT;
65 termios_p->c_cflag =
66 (termios_p->c_cflag & ~CBAUD) | (speed & CBAUD);
74 cfgetispeed(struct termios *termios_p) argument
86 cfsetispeed(struct termios *termios_p, speed_t speed) argument
106 tcgetattr(int fd, struct termios *termios_p) argument
115 tcsetattr(int fd, int option, struct termios *termios_p) argument
[all...]

Completed in 67 milliseconds