|
|
1 | // This file is part of libptytty. Do not make local modifications. |
|
|
2 | // http://software.schmorp.de/pkg/libptytty |
|
|
3 | |
1 | #ifndef PTYTTY_H |
4 | #ifndef PTYTTY_H |
2 | #define PTYTTY_H |
5 | #define PTYTTY_H |
3 | |
6 | |
4 | #include "libptytty.h" |
7 | #include "libptytty.h" |
5 | |
|
|
6 | #include "ptytty_conf.h" |
8 | #include "ptytty_conf.h" |
7 | |
9 | |
8 | #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY) |
10 | #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY) |
9 | # define NO_SETOWNER_TTYDEV 1 |
11 | # define NO_SETOWNER_TTYDEV 1 |
10 | #endif |
12 | #endif |
… | |
… | |
45 | # endif |
47 | # endif |
46 | # endif |
48 | # endif |
47 | |
49 | |
48 | #endif |
50 | #endif |
49 | |
51 | |
|
|
52 | #define fatal(msg) do { write (2, msg, sizeof (msg) - 1); _exit (255); } while (0) |
|
|
53 | |
50 | struct ptytty_unix : ptytty |
54 | struct ptytty_unix : ptytty |
51 | { |
55 | { |
52 | char *name; |
56 | char *name; |
53 | |
57 | |
54 | public: |
58 | public: |