Avoid line length limitation from HP NonStop system header files.
[gnulib.git] / lib / termios.in.h
1 /* Substitute for and wrapper around <termios.h>.
2    Copyright (C) 2010 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2, or (at your option)
7    any later version.
8
9    This program 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
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software Foundation,
16    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
17
18 #ifndef _GL_TERMIOS_H
19
20 #if __GNUC__ >= 3
21 @PRAGMA_SYSTEM_HEADER@
22 #endif
23 @PRAGMA_COLUMNS@
24
25 /* The include_next requires a split double-inclusion guard.  */
26 #@INCLUDE_NEXT@ @NEXT_TERMIOS_H@
27
28 #ifndef _GL_TERMIOS_H
29 #define _GL_TERMIOS_H
30
31 #if @GNULIB_TCGETSID@
32 /* Get pid_t.  */
33 # include <sys/types.h>
34 #endif
35
36 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
37
38 /* The definition of _GL_WARN_ON_USE is copied here.  */
39
40
41 /* Declare overridden functions.  */
42
43 #if @GNULIB_TCGETSID@
44 /* Return the session ID of the controlling terminal of the current process.
45    The argument is a descriptor if this controlling terminal.
46    Return -1, with errno set, upon failure.  errno = ENOSYS means that the
47    function is unsupported.  */
48 # if !@HAVE_TCGETSID@
49 _GL_FUNCDECL_SYS (tcgetsid, pid_t, (int fd));
50 # endif
51 _GL_CXXALIAS_SYS (tcgetsid, pid_t, (int fd));
52 _GL_CXXALIASWARN (tcgetsid);
53 #elif defined GNULIB_POSIXCHECK
54 # undef tcgetsid
55 # if HAVE_RAW_DECL_TCGETSID
56 _GL_WARN_ON_USE (tcgetsid, "tcgetsid is not portable - "
57                  "use gnulib module tcgetsid for portability");
58 # endif
59 #endif
60
61
62 #endif /* _GL_TERMIOS_H */
63 #endif /* _GL_TERMIOS_H */