ParseEntry(entry, path, section, page);
ParseEntry(entry, path, section, page, suffix);
UncompressUnformatted(man_globals, entry, filename)ManpageGlobals * man_globals;char * entry, * filename;{  char path[BUFSIZ], page[BUFSIZ], section[BUFSIZ], input[BUFSIZ];  int len_cat = strlen(CAT), len_man = strlen(MAN);  ParseEntry(entry, path, section, page);#if defined(__OpenBSD__) || defined(__NetBSD__)  /*    * look for uncomressed file in machine subdir first    */  sprintf(filename, "%s/%s%s/%s/%s", path, MAN, 	  section + len_cat, MACHINE, page);  if ( access( filename, R_OK ) == 0 ) {    man_globals->compress = FALSE;    man_globals->gzip = FALSE;    sprintf(man_globals->save_file, "%s/%s%s/%s/%s", path,	    CAT, section + len_cat, MACHINE, page);    return(TRUE);  } /*  * Then for compressed files in an uncompressed directory.  */  sprintf(input, "%s.%s", filename, COMPRESSION_EXTENSION);  if ( UncompressNamed(man_globals, input, filename) ) {    man_globals->compress = TRUE;    sprintf(man_globals->save_file, "%s/%s%s/%s.%s", path,	    CAT, section + len_cat, page, COMPRESSION_EXTENSION);    return(TRUE);  }#ifdef GZIP_EXTENSION  else {    sprintf(input, "%s.%s", filename, GZIP_EXTENSION);    if ( UncompressNamed(man_globals, input, filename) ) {      man_globals->compress = TRUE;      man_globals->gzip = TRUE;      sprintf(man_globals->save_file, "%s/%s%s/%s.%s", path,	      CAT, section + len_cat, page, GZIP_EXTENSION);      return(TRUE);    }  }#endif /* GZIP_EXTENSION */#endif /* __OpenBSD__ || __NetBSD__ *//* * Look for uncompressed file first. */  sprintf(filename, "%s/%s%s/%s", path, MAN, section + len_man, page);  if ( access( filename, R_OK ) == 0 ) {    man_globals->compress = FALSE;    man_globals->gzip = FALSE;    sprintf(man_globals->save_file, "%s/%s%s/%s", path,	    CAT, section + len_cat, page);    return(TRUE);  }/* * Then for compressed files in an uncompressed directory. */  sprintf(input, "%s.%s", filename, COMPRESSION_EXTENSION);  if ( UncompressNamed(man_globals, input, filename) ) {    man_globals->compress = TRUE;    sprintf(man_globals->save_file, "%s/%s%s/%s.%s", path,	    CAT, section + len_cat, page, COMPRESSION_EXTENSION);    return(TRUE);  }#ifdef GZIP_EXTENSION  else {    sprintf(input, "%s.%s", filename, GZIP_EXTENSION);    if ( UncompressNamed(man_globals, input, filename) ) {      man_globals->compress = TRUE;      man_globals->gzip = TRUE;      sprintf(man_globals->save_file, "%s/%s%s/%s.%s", path,	      CAT, section + len_cat, page, GZIP_EXTENSION);      return(TRUE);    }  }#endif/* * And lastly files in a compressed directory. */  sprintf(input, "%s/%s%s.%s/%s", path, 	  MAN, section + len_man, COMPRESSION_EXTENSION, page);  if ( UncompressNamed(man_globals, input, filename) ) {    man_globals->compress = TRUE;    sprintf(man_globals->save_file, "%s/%s%s.%s/%s", path, 	    CAT, section + len_cat, COMPRESSION_EXTENSION, page);    return(TRUE);  }  return(FALSE);}