mkdir(path);
PR_MkDir(path,0);
PRBool VerifyContextVector(CTokenizer * tokenizer, PRInt32 aTags[],PRInt32 count,nsIDTD* aDTD) {  PRBool  result=PR_TRUE;  //ok, now see if we understand this vector  if(0!=gVerificationOutputDir || gRecordingStatistics)       result=aDTD->VerifyContextVector(aTags,count);  if (gRecordingStatistics) {	  NoteVector(aTags,count,result);  }  if(0!=gVerificationOutputDir) {      char    path[2048];      strcpy(path,gVerificationOutputDir);      int i=0;            for(i=0;i<count;i++){        strcat(path,"/");        const char* name=GetTagName(aTags[i]);        strcat(path,name);        mkdir(path);      }	  if(PR_FALSE==result){      static PRBool rnd_initialized = PR_FALSE;      if (!rnd_initialized) {         // seed randomn number generator to aid in temp file         // creation.         rnd_initialized = PR_TRUE;         srand((unsigned)time(NULL));      }      // generate a filename to dump the html source into      char filename[1024];      do {         // use system time to generate a temporary file name         time_t ltime;         time (&ltime);         // add in random number so that we can create uniques names         // faster than simply every second.         ltime += (time_t)rand();         sprintf(filename,"%s/%lX.html", path, ltime);         // try until we find one we can create      } while (PR_Access(filename,PR_ACCESS_EXISTS) == PR_SUCCESS);      // check to see if we already recorded an instance of this particular      // bad vector.        if (!DebugRecord(path,gURLRef, filename))      {         // save file to directory indicated by bad context vector         PRFileDesc * debugFile = PR_Open(filename,PR_CREATE_FILE|PR_RDWR,0);         // if we were able to open the debug file, then         // write the true URL at the top of the file.         if (debugFile) {            // dump the html source into the newly created file.            if (tokenizer) {               PRofstream ps;               ps.attach(debugFile);               tokenizer->DebugDumpSource(ps);            }            PR_Close(debugFile);         }      }    }  }  return result;}