home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / USR_GZ / usr / include / termios.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-14  |  2.8 KB  |  83 lines

  1. /* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3.  
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8.  
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. Library General Public License for more details.
  13.  
  14. You should have received a copy of the GNU Library General Public
  15. License along with the GNU C Library; see the file COPYING.LIB.  If
  16. not, write to the, 1992 Free Software Foundation, Inc., 675 Mass Ave,
  17. Cambridge, MA 02139, USA.  */
  18.  
  19. /*
  20.  *    POSIX Standard: 7.1-2 General Terminal Interface    <termios.h>
  21.  */
  22.  
  23. #ifndef _TERMIOS_H
  24. #define _TERMIOS_H
  25.  
  26. #include <features.h>
  27. #include <sys/types.h>
  28. #include <linux/termios.h>
  29.  
  30. __BEGIN_DECLS
  31.  
  32. /* Return the input baud rate stored in *TERMIOS_P.  */
  33. extern speed_t cfgetispeed __P ((struct termios *__termios_p));
  34.  
  35. /* Return the output baud rate stored in *TERMIOS_P.  */
  36. extern speed_t cfgetospeed __P ((struct termios *__termios_p));
  37.  
  38.  
  39. /* Set *T to indicate raw mode.  */
  40. extern void cfmakeraw  __P ((struct termios *__t));
  41.  
  42. /* Set the input baud rate stored in *TERMIOS_P to SPEED.  */
  43. extern int cfsetispeed __P ((struct termios *__termios_p,
  44.         speed_t __speed));
  45.  
  46. /* Set the output baud rate stored in *TERMIOS_P to SPEED.  */
  47. extern int cfsetospeed __P ((struct termios *__termios_p,
  48.         speed_t __speed));
  49.  
  50.  
  51. /* Wait for pending output to be written on FILDES.  */
  52. extern int tcdrain __P ((int __fildes));
  53.  
  54. /* Suspend or restart transmission on FILDES.
  55.    Values for ACTION (TC[IO]{OFF,ON}) are in <linux/termios.h>.  */
  56. extern int tcflow __P ((int __fildes, int __action));
  57.  
  58. /* Flush pending data on FILDES.
  59.    Values for QUEUE_SELECTOR (TC{I,O,IO}FLUSH) are in <linux/termios.h>.  */
  60. extern int tcflush __P ((int __fildes, int __queue_selector));
  61.  
  62. /* Return the foreground process group ID of FILDES.  */
  63. extern pid_t tcgetpgrp __P ((int __fildes));
  64.  
  65. /* Put the state of FD into *TERMIOS_P.  */
  66. extern int tcgetattr __P ((int __fildes, struct termios *__termios_p));
  67. extern int __tcgetattr __P ((int __fildes, struct termios *__termios_p));
  68.  
  69. /* Send zero bits on FILDES.  */
  70. extern int tcsendbreak __P ((int __fildes, int __duration));
  71.  
  72. /* Set the state of FILDES to *TERMIOS_P.
  73.    Values for OPTIONAL_ACTIONS (TCSA*) are in <linux/termios.h>.  */
  74. extern int tcsetattr __P ((int __fildes, int __optional_actions,
  75.     struct termios *__termios_p));
  76.  
  77. /* Set the foreground process group ID of FILDES set PGRP_ID.  */
  78. extern int tcsetpgrp __P ((int __fildes, pid_t __pgrp_id));
  79.  
  80. __END_DECLS
  81.  
  82. #endif
  83.