summaryrefslogtreecommitdiff
path: root/include/termios.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-27 05:21:15 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-27 05:21:15 +0000
commite83a36ce9f97ac0f59117b3a62fd2dd8461b1fd5 (patch)
tree85ce10f2fc87fba69e07a13d7036d074e195dea7 /include/termios.h
parent65eee187317b93773d2409d0e7e2814d34c6a0e1 (diff)
Rev all the header files to sync things with glibc 2.2.4
Diffstat (limited to 'include/termios.h')
-rw-r--r--include/termios.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/include/termios.h b/include/termios.h
index 0306d8fb8..2c66457e2 100644
--- a/include/termios.h
+++ b/include/termios.h
@@ -1,20 +1,20 @@
-/* Copyright (C) 1991, 92, 93, 94, 96, 97, 98 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,94,96,97,98,99 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
+ Lesser General Public License for more details.
- You should have received a copy of the GNU Library General Public
- License along with the GNU C Library; see the file COPYING.LIB. If not,
- write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ 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. */
/*
* POSIX Standard: 7.1-2 General Terminal Interface <termios.h>
@@ -27,9 +27,9 @@
#ifdef __USE_UNIX98
/* We need `pid_t'. */
# include <bits/types.h>
-# ifndef pid_t
+# ifndef __pid_t_defined
typedef __pid_t pid_t;
-# define pid_t pid_t
+# define __pid_t_defined
# endif
#endif
@@ -46,55 +46,55 @@ __BEGIN_DECLS
#endif
/* Return the output baud rate stored in *TERMIOS_P. */
-extern speed_t cfgetospeed __P ((__const struct termios *__termios_p));
+extern speed_t cfgetospeed (__const struct termios *__termios_p) __THROW;
/* Return the input baud rate stored in *TERMIOS_P. */
-extern speed_t cfgetispeed __P ((__const struct termios *__termios_p));
+extern speed_t cfgetispeed (__const struct termios *__termios_p) __THROW;
/* Set the output baud rate stored in *TERMIOS_P to SPEED. */
-extern int cfsetospeed __P ((struct termios *__termios_p, speed_t __speed));
+extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) __THROW;
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
-extern int cfsetispeed __P ((struct termios *__termios_p, speed_t __speed));
+extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __THROW;
#ifdef __USE_BSD
/* Set both the input and output baud rates in *TERMIOS_OP to SPEED. */
-extern int cfsetspeed __P ((struct termios *__termios_p, speed_t __speed));
+extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __THROW;
#endif
/* Put the state of FD into *TERMIOS_P. */
-extern int tcgetattr __P ((int __fd, struct termios *__termios_p));
+extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW;
/* Set the state of FD to *TERMIOS_P.
Values for OPTIONAL_ACTIONS (TCSA*) are in <bits/termios.h>. */
-extern int tcsetattr __P ((int __fd, int __optional_actions,
- __const struct termios *__termios_p));
+extern int tcsetattr (int __fd, int __optional_actions,
+ __const struct termios *__termios_p) __THROW;
#ifdef __USE_BSD
/* Set *TERMIOS_P to indicate raw mode. */
-extern void cfmakeraw __P ((struct termios *__termios_p));
+extern void cfmakeraw (struct termios *__termios_p) __THROW;
#endif
/* Send zero bits on FD. */
-extern int tcsendbreak __P ((int __fd, int __duration));
+extern int tcsendbreak (int __fd, int __duration) __THROW;
/* Wait for pending output to be written on FD. */
-extern int tcdrain __P ((int __fd));
+extern int tcdrain (int __fd) __THROW;
/* Flush pending data on FD.
Values for QUEUE_SELECTOR (TC{I,O,IO}FLUSH) are in <bits/termios.h>. */
-extern int tcflush __P ((int __fd, int __queue_selector));
+extern int tcflush (int __fd, int __queue_selector) __THROW;
/* Suspend or restart transmission on FD.
Values for ACTION (TC[IO]{OFF,ON}) are in <bits/termios.h>. */
-extern int tcflow __P ((int __fd, int __action));
+extern int tcflow (int __fd, int __action) __THROW;
#ifdef __USE_UNIX98
/* Get process group ID for session leader for controlling terminal FD. */
-extern __pid_t tcgetsid __P ((int __fd));
+extern __pid_t tcgetsid (int __fd) __THROW;
#endif