summaryrefslogtreecommitdiff
path: root/include/termios.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/termios.h')
-rw-r--r--include/termios.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/termios.h b/include/termios.h
index 9698b1fbd..7f11fd28c 100644
--- a/include/termios.h
+++ b/include/termios.h
@@ -12,9 +12,8 @@
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA. */
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
/*
* POSIX Standard: 7.1-2 General Terminal Interface <termios.h>
@@ -46,16 +45,18 @@ __BEGIN_DECLS
#endif
/* Return the output baud rate stored in *TERMIOS_P. */
-extern speed_t cfgetospeed (__const struct termios *__termios_p) __THROW;
+extern speed_t cfgetospeed (const struct termios *__termios_p) __THROW;
/* Return the input baud rate stored in *TERMIOS_P. */
-extern speed_t cfgetispeed (__const struct termios *__termios_p) __THROW;
+extern speed_t cfgetispeed (const struct termios *__termios_p) __THROW;
/* Set the output baud rate stored in *TERMIOS_P to SPEED. */
extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) __THROW;
+libc_hidden_proto(cfsetospeed)
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __THROW;
+libc_hidden_proto(cfsetispeed)
#ifdef __USE_BSD
/* Set both the input and output baud rates in *TERMIOS_OP to SPEED. */
@@ -65,11 +66,13 @@ extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __THROW;
/* Put the state of FD into *TERMIOS_P. */
extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW;
+libc_hidden_proto(tcgetattr)
/* Set the state of FD to *TERMIOS_P.
Values for OPTIONAL_ACTIONS (TCSA*) are in <bits/termios.h>. */
extern int tcsetattr (int __fd, int __optional_actions,
- __const struct termios *__termios_p) __THROW;
+ const struct termios *__termios_p) __THROW;
+libc_hidden_proto(tcsetattr)
#ifdef __USE_BSD