ParseEntry(entry, path, NULL, NULL);
ParseEntry(entry, path, NULL, NULL, NULL);
Format(man_globals, entry)ManpageGlobals * man_globals; char * entry;{  FILE * file;  Widget manpage = man_globals->manpagewidgets.manpage;  char cmdbuf[BUFSIZ], tmp[BUFSIZ], filename[BUFSIZ], error_buf[BUFSIZ];  char path[BUFSIZ];  XEvent event;  Position x,y;			/* location to pop up the				   "would you like to save" widget. */  Popup(XtParent(man_globals->standby), XtGrabExclusive);  while ( !XCheckTypedWindowEvent(XtDisplay(man_globals->standby), 				  XtWindow(man_globals->standby), 				  Expose, &event) );  XtDispatchEvent( &event );  XFlush(XtDisplay(man_globals->standby));  if ( !UncompressUnformatted(man_globals, entry, filename) ) {    /* We Really could not find it, this should never happen, yea right. */    sprintf(error_buf, "Could not open manual page, %s", entry);    PopupWarning(man_globals, error_buf);    XtPopdown( XtParent(man_globals->standby) );    return(NULL);  }  strcpy(tmp,MANTEMP);		          /* Get a temp file. */  (void) mktemp(tmp);  strcpy(man_globals->tempfile, tmp);  ParseEntry(entry, path, NULL, NULL);  sprintf(cmdbuf,"cd %s ; %s %s %s > %s %s", path, TBL,	  filename, FORMAT, man_globals->tempfile, "2> /dev/null");  if(system(cmdbuf) != 0) {	/* execute search. */    sprintf(error_buf,	    "Something went wrong trying to run the command: %s", cmdbuf);    PopupWarning(man_globals, error_buf);    file = NULL;  }  else {    if ((file = fopen(man_globals->tempfile,"r")) == NULL) {        sprintf(error_buf, "Something went wrong in retrieving the %s",	      "temp file, try cleaning up /tmp");      PopupWarning(man_globals, error_buf);    }    else {      XtPopdown( XtParent(man_globals->standby) );        if ( (man_globals->save == NULL) ||	   (man_globals->manpagewidgets.manpage == NULL) ) 	unlink(man_globals->tempfile);      else {	char * ptr, catdir[BUFSIZ];	/*	 * If the catdir is writeable then ask the user if he/she wants to	 * write the man page to it. 	 */	strcpy(catdir, man_globals->save_file);	if ( (ptr = rindex(catdir, '/')) != NULL) {	  *ptr = '\0';	  if ( access(catdir, W_OK) != 0 )	    unlink(man_globals->tempfile);	  else {	    x = (Position) Width(man_globals->manpagewidgets.manpage)/2;	    y = (Position) Height(man_globals->manpagewidgets.manpage)/2;	    XtTranslateCoords(manpage, x, y, &x, &y);	    PositionCenter( man_globals->save, (int) x, (int) y, 0, 0, 0, 0);	    XtPopup( man_globals->save, XtGrabExclusive);	  }	}	else 	  unlink(man_globals->tempfile);      }    }  }  if (man_globals->compress || man_globals->gzip)    /* If the original							was compressed				   			then this is a tempory							file. */    unlink(filename);    return(file);}