GDBserver
|
00001 /* Terminal interface definitions for the GDB remote server. 00002 Copyright (C) 2002-2013 Free Software Foundation, Inc. 00003 00004 This file is part of GDB. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 #if !defined (TERMINAL_H) 00020 #define TERMINAL_H 1 00021 00022 /* Autoconf will have defined HAVE_TERMIOS_H, HAVE_TERMIO_H, 00023 and HAVE_SGTTY_H for us as appropriate. */ 00024 00025 #if defined(HAVE_TERMIOS_H) 00026 #define HAVE_TERMIOS 00027 #include <termios.h> 00028 #else /* ! HAVE_TERMIOS_H */ 00029 #if defined(HAVE_TERMIO_H) 00030 #define HAVE_TERMIO 00031 #include <termio.h> 00032 00033 #undef TIOCGETP 00034 #define TIOCGETP TCGETA 00035 #undef TIOCSETN 00036 #define TIOCSETN TCSETA 00037 #undef TIOCSETP 00038 #define TIOCSETP TCSETAF 00039 #define TERMINAL struct termio 00040 #else /* ! HAVE_TERMIO_H */ 00041 #ifdef HAVE_SGTTY_H 00042 #define HAVE_SGTTY 00043 #include <fcntl.h> 00044 #include <sgtty.h> 00045 #include <sys/ioctl.h> 00046 #define TERMINAL struct sgttyb 00047 #endif 00048 #endif 00049 #endif 00050 00051 #endif /* !defined (TERMINAL_H) */