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

Comparing rxvt-unicode/src/libptytty.h (file contents):
Revision 1.6 by root, Wed Jan 25 10:51:26 2006 UTC vs.
Revision 1.9 by root, Thu Aug 2 13:54:17 2007 UTC

4#ifndef LIBPTYTTY_H_ /* public libptytty header file */ 4#ifndef LIBPTYTTY_H_ /* public libptytty header file */
5#define LIBPTYTTY_H_ 5#define LIBPTYTTY_H_
6 6
7#ifdef __cplusplus 7#ifdef __cplusplus
8 8
9// c++ api 9// C++ API
10 10
11struct ptytty { 11struct ptytty {
12 int pty; // pty file descriptor; connected to rxvt 12 int pty; // pty file descriptor; connected to terminal emulator
13 int tty; // tty file descriptor; connected to child 13 int tty; // tty file descriptor; connected to child
14 14
15 virtual ~ptytty () 15 virtual ~ptytty ()
16 { 16 {
17 } 17 }
21 21
22 void close_tty (); 22 void close_tty ();
23 bool make_controlling_tty (); 23 bool make_controlling_tty ();
24 void set_utf8_mode (bool on); 24 void set_utf8_mode (bool on);
25 25
26 static void sanitise_stdfd ();
26 static void init (); 27 static void init ();
27 static ptytty *create (); // create a new pty object 28 static ptytty *create (); // create a new pty object
28 29
29 static void drop_privileges (); 30 static void drop_privileges ();
30 static void use_helper (); 31 static void use_helper ();
40 } 41 }
41}; 42};
42 43
43#else 44#else
44 45
45// c api 46// C API
46 47
47typedef void *PTYTTY; 48typedef void *PTYTTY;
48 49
49int ptytty_pty (PTYTTY ptytty); 50int ptytty_pty (PTYTTY ptytty);
50int ptytty_tty (PTYTTY ptytty); 51int ptytty_tty (PTYTTY ptytty);
54 55
55void ptytty_close_tty (PTYTTY ptytty); 56void ptytty_close_tty (PTYTTY ptytty);
56int ptytty_make_controlling_tty (PTYTTY ptytty); 57int ptytty_make_controlling_tty (PTYTTY ptytty);
57void ptytty_set_utf8_mode (PTYTTY ptytty, int on); 58void ptytty_set_utf8_mode (PTYTTY ptytty, int on);
58 59
60void ptytty_sanitise_stdfd ();
59void ptytty_init (); 61void ptytty_init ();
60PTYTTY ptytty_create (); 62PTYTTY ptytty_create ();
61 63
62void ptytty_drop_privileges (); 64void ptytty_drop_privileges ();
63void ptytty_use_helper (); 65void ptytty_use_helper ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines