ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libptytty/src/ptytty.h
Revision: 1.22
Committed: Sat Dec 28 00:27:02 2013 UTC (12 years, 9 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_26, rxvt-unicode-rel-9_25, rxvt-unicode-rel-9_22, rxvt-unicode-rel-9_20, rxvt-unicode-rel-9_21, rel-1_8, rel-1_7
Changes since 1.21: +0 -4 lines
Log Message:
nuke pid check

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.2 #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY)
8 root 1.1 # define NO_SETOWNER_TTYDEV 1
9     #endif
10    
11 root 1.2 #if UTMP_SUPPORT
12 sf-exg 1.19 # if defined(__GLIBC__)
13 root 1.2 # undef HAVE_STRUCT_UTMPX
14     # endif
15    
16     # if ! defined(HAVE_STRUCT_UTMPX) && ! defined(HAVE_STRUCT_UTMP)
17     # error cannot build with utmp support - no utmp or utmpx struct found
18     # endif
19    
20 root 1.1 #endif
21 root 1.2
22 root 1.4 struct ptytty_unix : ptytty
23 root 1.2 {
24     char *name;
25    
26 sf-exg 1.15 void log_session (bool login, const char *hostname);
27    
28 root 1.1 public:
29    
30 root 1.4 ptytty_unix ();
31     ~ptytty_unix ();
32 root 1.1
33     bool get ();
34     void put ();
35    
36 root 1.6 void login (int cmd_pid, bool login_shell, const char *hostname);
37    
38 root 1.2 #if UTMP_SUPPORT
39 sf-exg 1.20 int utmp_pos;
40 root 1.2 int cmd_pid;
41     bool login_shell;
42 root 1.1
43 root 1.2 void logout ();
44     #endif
45 root 1.1 };
46    
47     #endif
48