ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libptytty/src/ptytty.h
Revision: 1.21
Committed: Thu Jan 19 12:16:33 2012 UTC (14 years, 8 months ago) by sf-exg
Content type: text/plain
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_19, rxvt-unicode-rel-9_18, rxvt-unicode-rel-9_17, rxvt-unicode-rel-9_16, rxvt-unicode-rel-9_15, rel-1_6
Changes since 1.20: +0 -3 lines
Log Message:
Remove obsolete comments.

File Contents

# User Rev Content
1 root 1.1 #ifndef PTYTTY_H
2     #define PTYTTY_H
3    
4 root 1.5 #include "libptytty.h"
5 root 1.3 #include "ptytty_conf.h"
6 root 1.1
7 root 1.9 #if PTYTTY_REENTRANT
8     # define PTYTTY_NO_PID_CHECK 1
9     #endif
10    
11 root 1.2 #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY)
12 root 1.1 # define NO_SETOWNER_TTYDEV 1
13     #endif
14    
15 root 1.2 #if UTMP_SUPPORT
16 sf-exg 1.19 # if defined(__GLIBC__)
17 root 1.2 # undef HAVE_STRUCT_UTMPX
18     # endif
19    
20     # if ! defined(HAVE_STRUCT_UTMPX) && ! defined(HAVE_STRUCT_UTMP)
21     # error cannot build with utmp support - no utmp or utmpx struct found
22     # endif
23    
24 root 1.1 #endif
25 root 1.2
26 root 1.4 struct ptytty_unix : ptytty
27 root 1.2 {
28     char *name;
29    
30 sf-exg 1.15 void log_session (bool login, const char *hostname);
31    
32 root 1.1 public:
33    
34 root 1.4 ptytty_unix ();
35     ~ptytty_unix ();
36 root 1.1
37     bool get ();
38     void put ();
39    
40 root 1.6 void login (int cmd_pid, bool login_shell, const char *hostname);
41    
42 root 1.2 #if UTMP_SUPPORT
43 sf-exg 1.20 int utmp_pos;
44 root 1.2 int cmd_pid;
45     bool login_shell;
46 root 1.1
47 root 1.2 void logout ();
48     #endif
49 root 1.1 };
50    
51     #endif
52