… | |
… | |
4 | #ifndef PTYTTY_H |
4 | #ifndef PTYTTY_H |
5 | #define PTYTTY_H |
5 | #define PTYTTY_H |
6 | |
6 | |
7 | #include "libptytty.h" |
7 | #include "libptytty.h" |
8 | #include "ptytty_conf.h" |
8 | #include "ptytty_conf.h" |
|
|
9 | |
|
|
10 | #if PTYTTY_REENTRANT |
|
|
11 | # define PTYTTY_NO_PID_CHECK 1 |
|
|
12 | #endif |
9 | |
13 | |
10 | #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY) |
14 | #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY) |
11 | # define NO_SETOWNER_TTYDEV 1 |
15 | # define NO_SETOWNER_TTYDEV 1 |
12 | #endif |
16 | #endif |
13 | |
17 | |
… | |
… | |
47 | # endif |
51 | # endif |
48 | # endif |
52 | # endif |
49 | |
53 | |
50 | #endif |
54 | #endif |
51 | |
55 | |
|
|
56 | #define fatal(msg) do { write (2, msg, sizeof (msg) - 1); _exit (255); } while (0) |
|
|
57 | |
52 | struct ptytty_unix : ptytty |
58 | struct ptytty_unix : ptytty |
53 | { |
59 | { |
54 | char *name; |
60 | char *name; |
55 | |
61 | |
56 | public: |
62 | public: |