ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/ptytty.h
(Generate patch)

Comparing rxvt-unicode/src/ptytty.h (file contents):
Revision 1.3 by root, Mon Jan 3 12:48:57 2005 UTC vs.
Revision 1.4 by root, Mon Jan 2 15:10:18 2006 UTC

1#ifndef PTYTTY_H 1#ifndef PTYTTY_H
2#define PTYTTY_H 2#define PTYTTY_H
3 3
4#include "rxvt.h" 4#include "feature.h"
5
6#if defined(HAVE_GRANTPT) && defined(HAVE_UNLOCKPT)
7# if defined(PTYS_ARE_GETPT) || defined(PTYS_ARE_PTMX)
8# define NO_SETOWNER_TTYDEV 1
9# endif
10#endif
11#if defined(__CYGWIN32__) || defined(PTYS_ARE_OPENPTY)
12# define NO_SETOWNER_TTYDEV 1
13#endif
5 14
6enum rxvt_privaction { IGNORE = 'i', SAVE = 's', RESTORE = 'r' }; 15enum rxvt_privaction { IGNORE = 'i', SAVE = 's', RESTORE = 'r' };
7 16
8struct rxvt_ptytty { 17struct rxvt_ptytty {
9#ifndef RESET_TTY_TO_COMMON_DEFAULTS 18#ifndef RESET_TTY_TO_COMMON_DEFAULTS
10 struct stat savestat; /* original status of our tty */ 19 struct stat savestat; /* original status of our tty */
11#endif 20#endif
21#ifndef NO_SETOWNER_TTYDEV
12 void privileges (rxvt_privaction action); 22 void privileges (rxvt_privaction action);
23 bool saved;
24#endif
13public: 25public:
14 int pty; // pty file descriptor; connected to rxvt 26 int pty; // pty file descriptor; connected to rxvt
15 int tty; // tty file descriptor; connected to child 27 int tty; // tty file descriptor; connected to child
16 char *name; 28 char *name;
17 29

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines