Lines Matching refs:s
49 static __inline__ int tcgetattr(int fd, struct termios *s) in tcgetattr() argument
51 return ioctl(fd, TCGETS, s); in tcgetattr()
54 static __inline__ int tcsetattr(int fd, int __opt, const struct termios *s) in tcsetattr() argument
56 return ioctl(fd, __opt, (void *)s); in tcsetattr()
80 static __inline__ speed_t cfgetospeed(const struct termios *s) in cfgetospeed() argument
82 return (speed_t)(s->c_cflag & CBAUD); in cfgetospeed()
85 static __inline__ int cfsetospeed(struct termios *s, speed_t speed) in cfsetospeed() argument
87 s->c_cflag = (s->c_cflag & ~CBAUD) | (speed & CBAUD); in cfsetospeed()
91 static __inline__ speed_t cfgetispeed(const struct termios *s) in cfgetispeed() argument
93 return (speed_t)(s->c_cflag & CBAUD); in cfgetispeed()
96 static __inline__ int cfsetispeed(struct termios *s, speed_t speed) in cfsetispeed() argument
98 s->c_cflag = (s->c_cflag & ~CBAUD) | (speed & CBAUD); in cfsetispeed()
102 static __inline__ void cfmakeraw(struct termios *s) in cfmakeraw() argument
104 s->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); in cfmakeraw()
105 s->c_oflag &= ~OPOST; in cfmakeraw()
106 s->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); in cfmakeraw()
107 s->c_cflag &= ~(CSIZE|PARENB); in cfmakeraw()
108 s->c_cflag |= CS8; in cfmakeraw()