--- rxvt-unicode/src/ptytty.h 2006/01/22 00:36:59 1.17 +++ rxvt-unicode/src/ptytty.h 2010/07/21 08:47:15 1.22 @@ -1,19 +1,26 @@ +// This file is part of libptytty. Do not make local modifications. +// http://software.schmorp.de/pkg/libptytty + #ifndef PTYTTY_H #define PTYTTY_H -#include "rxvt.h" -#include "feature.h" +#include "libptytty.h" +#include "ptytty_conf.h" + +#if PTYTTY_REENTRANT +# define PTYTTY_NO_PID_CHECK 1 +#endif #if defined(HAVE__GETPTY) || defined(HAVE_OPENPTY) || defined(UNIX98_PTY) # define NO_SETOWNER_TTYDEV 1 #endif #if UTMP_SUPPORT -# if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) || defined(__GLIBC__) +# if !defined(HAVE_STRUCT_UTMPX) || defined(__GLIBC__) # undef HAVE_UTMPX_H # undef HAVE_STRUCT_UTMPX # endif -# if !defined(RXVT_UTMP_FILE) || !defined(HAVE_STRUCT_UTMP) +# if !defined(UTMP_FILE) || !defined(HAVE_STRUCT_UTMP) # undef HAVE_UTMP_H # undef HAVE_STRUCT_UTMP # endif @@ -35,7 +42,7 @@ # include -# ifdef RXVT_UTMP_SYSV +# ifdef UTMP_SYSV # ifndef USER_PROCESS # define USER_PROCESS 7 # endif @@ -46,14 +53,16 @@ #endif -struct rxvt_ptytty_unix : rxvt_ptytty +#define fatal(msg) do { write (2, msg, sizeof (msg) - 1); _exit (255); } while (0) + +struct ptytty_unix : ptytty { char *name; public: - rxvt_ptytty_unix (); - ~rxvt_ptytty_unix (); + ptytty_unix (); + ~ptytty_unix (); bool get (); void put ();