1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
#ifndef _@GUARD_PREFIX@_PTY_H
#if __GNUC__ >= 3
@PRAGMA_SYSTEM_HEADER@
#endif
@PRAGMA_COLUMNS@
#if @HAVE_PTY_H@
# @INCLUDE_NEXT@ @NEXT_PTY_H@
#endif
#ifndef _@GUARD_PREFIX@_PTY_H
#define _@GUARD_PREFIX@_PTY_H
#if @HAVE_UTIL_H@
# include <util.h>
#endif
#if @HAVE_LIBUTIL_H@
# include <sys/types.h>
# include <libutil.h>
#endif
#include <termios.h>
#if defined _AIX
# include <sys/ioctl.h>
#endif
struct termios;
struct winsize;
#if @GNULIB_FORKPTY@
# if @REPLACE_FORKPTY@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef forkpty
# define forkpty rpl_forkpty
# endif
_GL_FUNCDECL_RPL (forkpty, int,
(int *amaster, char *name,
struct termios const *termp, struct winsize const *winp));
_GL_CXXALIAS_RPL (forkpty, int,
(int *amaster, char *name,
struct termios const *termp, struct winsize const *winp));
# else
# if !@HAVE_FORKPTY@
_GL_FUNCDECL_SYS (forkpty, int,
(int *amaster, char *name,
struct termios const *termp, struct winsize const *winp));
# endif
_GL_CXXALIAS_SYS (forkpty, int,
(int *amaster, char *name,
struct termios const *termp, struct winsize const *winp));
# endif
_GL_CXXALIASWARN (forkpty);
#elif defined GNULIB_POSIXCHECK
# undef forkpty
# if HAVE_RAW_DECL_FORKPTY
_GL_WARN_ON_USE (forkpty, "forkpty is not declared consistently - "
"use gnulib module forkpty for portability");
# endif
#endif
#if @GNULIB_OPENPTY@
# if @REPLACE_OPENPTY@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef openpty
# define openpty rpl_openpty
# endif
_GL_FUNCDECL_RPL (openpty, int,
(int *amaster, int *aslave, char *name,
struct termios const *termp, struct winsize const *winp));
_GL_CXXALIAS_RPL (openpty, int,
(int *amaster, int *aslave, char *name,
struct termios const *termp, struct winsize const *winp));
# else
# if !@HAVE_OPENPTY@
_GL_FUNCDECL_SYS (openpty, int,
(int *amaster, int *aslave, char *name,
struct termios const *termp, struct winsize const *winp));
# endif
_GL_CXXALIAS_SYS (openpty, int,
(int *amaster, int *aslave, char *name,
struct termios const *termp, struct winsize const *winp));
# endif
_GL_CXXALIASWARN (openpty);
#elif defined GNULIB_POSIXCHECK
# undef openpty
# if HAVE_RAW_DECL_OPENPTY
_GL_WARN_ON_USE (openpty, "openpty is not declared consistently - "
"use gnulib module openpty for portability");
# endif
#endif
#endif
#endif
|