| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 #ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_ | 5 #ifndef LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_ |
| 6 #define LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_ | 6 #define LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_ |
| 7 | 7 |
| 8 #define IGNBRK 0000001 | 8 #define IGNBRK 0000001 |
| 9 #define BRKINT 0000002 | 9 #define BRKINT 0000002 |
| 10 #define IGNPAR 0000004 | 10 #define IGNPAR 0000004 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 tcflag_t c_iflag; | 113 tcflag_t c_iflag; |
| 114 tcflag_t c_oflag; | 114 tcflag_t c_oflag; |
| 115 tcflag_t c_cflag; | 115 tcflag_t c_cflag; |
| 116 tcflag_t c_lflag; | 116 tcflag_t c_lflag; |
| 117 char c_line; | 117 char c_line; |
| 118 cc_t c_cc[NCCS]; | 118 cc_t c_cc[NCCS]; |
| 119 speed_t c_ispeed; | 119 speed_t c_ispeed; |
| 120 speed_t c_ospeed; | 120 speed_t c_ospeed; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 | |
| 124 #include <sys/cdefs.h> | 123 #include <sys/cdefs.h> |
| 125 | 124 |
| 126 __BEGIN_DECLS | 125 __BEGIN_DECLS |
| 127 | 126 |
| 128 speed_t cfgetispeed(const struct termios *termios_p); | 127 speed_t cfgetispeed(const struct termios* termios_p); |
| 129 speed_t cfgetospeed(const struct termios *termios_p); | 128 speed_t cfgetospeed(const struct termios* termios_p); |
| 130 int cfsetispeed(struct termios *termios_p, speed_t speed); | 129 int cfsetispeed(struct termios* termios_p, speed_t speed); |
| 131 int cfsetospeed(struct termios *termios_p, speed_t speed); | 130 int cfsetospeed(struct termios* termios_p, speed_t speed); |
| 132 int cfsetspeed(struct termios *termios_p, speed_t speed); | 131 int cfsetspeed(struct termios* termios_p, speed_t speed); |
| 133 | 132 |
| 134 int tcdrain(int fd); | 133 int tcdrain(int fd); |
| 135 int tcflow(int fd, int action); | 134 int tcflow(int fd, int action); |
| 136 int tcflush(int fd, int queue_selector); | 135 int tcflush(int fd, int queue_selector); |
| 137 int tcgetattr(int fd, struct termios *termios_p); | 136 int tcgetattr(int fd, struct termios* termios_p); |
| 138 int tcsendbreak(int fd, int duration); | 137 int tcsendbreak(int fd, int duration); |
| 139 int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); | 138 int tcsetattr(int fd, int optional_actions, const struct termios* termios_p); |
| 140 | 139 |
| 141 __END_DECLS | 140 __END_DECLS |
| 142 | 141 |
| 143 #endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_ */ | 142 #endif /* LIBRARIES_NACL_IO_INCLUDE_SYS_TERMIOS_H_ */ |
| OLD | NEW |