--- rxvt-unicode/src/libptytty.h 2006/01/23 12:39:42 1.5 +++ rxvt-unicode/src/libptytty.h 2007/08/02 13:54:17 1.9 @@ -6,10 +6,10 @@ #ifdef __cplusplus -// c++ api +// C++ API struct ptytty { - int pty; // pty file descriptor; connected to rxvt + int pty; // pty file descriptor; connected to terminal emulator int tty; // tty file descriptor; connected to child virtual ~ptytty () @@ -23,6 +23,7 @@ bool make_controlling_tty (); void set_utf8_mode (bool on); + static void sanitise_stdfd (); static void init (); static ptytty *create (); // create a new pty object @@ -42,7 +43,7 @@ #else -// c api +// C API typedef void *PTYTTY; @@ -50,12 +51,13 @@ int ptytty_tty (PTYTTY ptytty); void ptytty_delete (PTYTTY ptytty); int ptytty_get (PTYTTY ptytty); -void ptytty_login (PTYTTY ptytty, int cmd_pid, bool login_shell, const char *hostname); +void ptytty_login (PTYTTY ptytty, int cmd_pid, int login_shell, const char *hostname); void ptytty_close_tty (PTYTTY ptytty); int ptytty_make_controlling_tty (PTYTTY ptytty); void ptytty_set_utf8_mode (PTYTTY ptytty, int on); +void ptytty_sanitise_stdfd (); void ptytty_init (); PTYTTY ptytty_create ();