1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #ifndef OPAL_UTIL_PTY_H
20 #define OPAL_UTIL_PTY_H
21
22 #include "opal_config.h"
23
24 #ifdef HAVE_UTIL_H
25 #include <util.h>
26 #endif
27 #ifdef HAVE_LIBUTIL_H
28 #include <libutil.h>
29 #endif
30 #ifdef HAVE_TERMIOS_H
31 # include <termios.h>
32 #else
33 # ifdef HAVE_TERMIO_H
34 # include <termio.h>
35 # endif
36 #endif
37
38 BEGIN_C_DECLS
39
40 #if OPAL_ENABLE_PTY_SUPPORT
41
42 OPAL_DECLSPEC int opal_openpty(int *amaster, int *aslave, char *name,
43 struct termios *termp, struct winsize *winp);
44
45 #else
46
47 OPAL_DECLSPEC int opal_openpty(int *amaster, int *aslave, char *name,
48 void *termp, void *winpp);
49
50 #endif
51
52 END_C_DECLS
53
54 #endif