#include <sys/stat.h>
#include <time.h>
-#if defined(linux)
+#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#include <iostream>
#include <strstream>
#include <fstream>
char * optTraceScript = 0;
String apiTracerArgv[ 10 ];
String snooperArgv[ 10 ];
-ostrstream tttraceCmd;
-ofstream snoopStream;
+std::ostrstream tttraceCmd;
+std::ofstream snoopStream;
// Xt squats on -tf ?! XXX
const char Usage[] =
}
}
-#if defined(SVR4) || defined(aix) || defined(hpux) || defined(__osf__) || defined(linux)
+#if defined(SVR4) || defined(aix) || defined(hpux) || defined(__linux__) || defined(CSRG_BASED)
#if !defined(SIG_PF)
typedef void (*sig_pf_t)(int);
#define SIG_PF sig_pf_t
int sig,
SIG_PF handler )
{
-#if defined(hpux) || defined(linux)
+#if defined(hpux) || defined(__linux__) || defined(CSRG_BASED)
struct sigaction act;
act.sa_handler = handler;
sigemptyset(&act.sa_mask);
XtAppContext app;
Atom save_yourself_atom;
- Pixmap icon_pixmap = NULL;
- Pixmap icon_mask_pixmap = NULL;
+ Pixmap icon_pixmap = 0;
+ Pixmap icon_mask_pixmap = 0;
/**************************************************************************
*** DTB_USER_CODE_START
}
Tt_status status;
snoopStream.open( snoopFile, ios::app );
- ostrstream envStr;
+ std::ostrstream envStr;
envStr << "TT_TRACE_SCRIPT=> ";
envStr << traceFile << ends;
traceScript = envStr.str();
snoopPatIsRegistered ? "Off" : "On" );
if (optMapOnOutput) {
XtVaSetValues( dtb_ttsnoop_ttsnoop_win.ttsnoopPane,
- DtNmapOnOutput, optMapOnOutput, 0 );
+ DtNmapOnOutput, optMapOnOutput, NULL );
}
installSignalHandler();