home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / gdb-4.14-src.lha / gdb-4.14 / gdb / terminal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-09  |  1.9 KB  |  63 lines

  1. /* Terminal interface definitions for GDB, the GNU Debugger.
  2.    Copyright 1986, 1989, 1991, 1992 Free Software Foundation, Inc.
  3.  
  4. This file is part of GDB.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #if !defined (TERMINAL_H)
  21. #define TERMINAL_H 1
  22.  
  23. #if !defined(__GO32__) && !defined (HAVE_TERMIOS)
  24.  
  25. /* Define a common set of macros -- BSD based -- and redefine whatever
  26.    the system offers to make it look like that.  FIXME: serial.h and
  27.    ser-*.c deal with this in a much cleaner fashion; as soon as stuff
  28.    is converted to use them, can get rid of this crap.  */
  29.  
  30. #ifdef HAVE_TERMIO
  31.  
  32. #include <termio.h>
  33.  
  34. #undef TIOCGETP
  35. #define TIOCGETP TCGETA
  36. #undef TIOCSETN
  37. #define TIOCSETN TCSETA
  38. #undef TIOCSETP
  39. #define TIOCSETP TCSETAF
  40. #define TERMINAL struct termio
  41.  
  42. #else /* sgtty */
  43.  
  44. #include <fcntl.h>
  45. #include <sgtty.h>
  46. #include <sys/ioctl.h>
  47. #define TERMINAL struct sgttyb
  48.  
  49. #endif /* sgtty */
  50. #endif /* termio or sgtty */
  51.  
  52. extern void new_tty PARAMS ((void));
  53.  
  54. /* Do we have job control?  Can be assumed to always be the same within
  55.    a given run of GDB.  In inflow.c.  */
  56. extern int job_control;
  57.  
  58. /* Set the process group of the caller to its own pid, or do nothing if
  59.    we lack job control.  */
  60. extern int gdb_setpgid PARAMS ((void));
  61.  
  62. #endif    /* !defined (TERMINAL_H) */
  63.