ftp.nice.ch/pub/next/unix/developer/pcn.2.0.s.tar.gz#/contrib/gauge/Xpert/atrace.c

This is atrace.c in view mode; [Download] [Up]

#include <stdio.h>
#include <errno.h>
#include <string.h>

#include "/u/hugjim/Widget/Xsw.h"
#include <X11/Shell.h>

#include <X11/Xaw/Command.h>
#include <X11/Xaw/Box.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Text.h>
#include <X11/Xaw/List.h>
#include <X11/Xaw/AsciiText.h>
#include <X11/Xaw/AsciiSrc.h>



#define IsFileExt(file,ext) (!strcmp(file+strlen(file)- strlen(ext),ext))

/* dummy */

struct {
    char logfile[128];
    char statefile[128];
    char ravelfile[128];
    int task;
} ATraceData;

#define ATRACEDIR "/usr/local/atrace/bin"

void RavelIt(w, client, text)
     Widget w;
XtPointer client;
String text;
{
  char command[256];
  
  printf("Ravel called\n");
  sprintf(command,"%s/%s",ATRACEDIR,"ravel");
  if (fork() == 0)
    execl(command,command,"-l",text,"-s",
	  client,"-p",(char *) 0);
}

void UpshotIt(w, client, text)
     Widget w;
XtPointer client;
String text;
{
  char command[256];
  
  printf("Upshot called\n");
  sprintf(command,"%s/%s",ATRACEDIR,"upshot");
  if (fork() == 0)
    execl(command,command,"-l",text,"-s",
	  client,"-p",(char *) 0);
}


void LogCallBack(w,client_data,call_data)
Widget w;
XtPointer client_data;
XtPointer call_data;
{
    printf("LogCallBack called back\n");
}

void HistoButton(w,client_data,call_data)
Widget w;
XtPointer client_data;
XtPointer call_data;
{
    printf("HistoButton  called back\n");
}

















These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.