• Home
  • Raw
  • Download

Lines Matching refs:fp

653 xmlMemContentShow(FILE *fp, MEMHDR *p)  in xmlMemContentShow()  argument
659 fprintf(fp, " NULL"); in xmlMemContentShow()
685 fprintf(fp, " pointer to #%lu at index %d", in xmlMemContentShow()
692 fprintf(fp," null"); in xmlMemContentShow()
694 if (buf[i] == 0) fprintf(fp," \"%.25s\"", buf); in xmlMemContentShow()
696 fprintf(fp," ["); in xmlMemContentShow()
698 fprintf(fp,"%c", buf[j]); in xmlMemContentShow()
699 fprintf(fp,"]"); in xmlMemContentShow()
716 xmlMemDisplayLast(FILE *fp, long nbBytes) in xmlMemDisplayLast() argument
723 FILE *old_fp = fp; in xmlMemDisplayLast()
728 if (fp == NULL) { in xmlMemDisplayLast()
729 fp = fopen(".memorylist", "w"); in xmlMemDisplayLast()
730 if (fp == NULL) in xmlMemDisplayLast()
735 fprintf(fp," Last %li MEMORY ALLOCATED : %lu, MAX was %lu\n", in xmlMemDisplayLast()
737 fprintf(fp,"BLOCK NUMBER SIZE TYPE\n"); in xmlMemDisplayLast()
742 fprintf(fp,"%-5u %6lu %6lu ",idx++,p->mh_number, in xmlMemDisplayLast()
745 case STRDUP_TYPE:fprintf(fp,"strdup() in ");break; in xmlMemDisplayLast()
746 case MALLOC_TYPE:fprintf(fp,"malloc() in ");break; in xmlMemDisplayLast()
747 case REALLOC_TYPE:fprintf(fp,"realloc() in ");break; in xmlMemDisplayLast()
748 case MALLOC_ATOMIC_TYPE:fprintf(fp,"atomicmalloc() in ");break; in xmlMemDisplayLast()
749 case REALLOC_ATOMIC_TYPE:fprintf(fp,"atomicrealloc() in ");break; in xmlMemDisplayLast()
751 fprintf(fp,"Unknown memory block, may be corrupted"); in xmlMemDisplayLast()
754 fclose(fp); in xmlMemDisplayLast()
757 if (p->mh_file != NULL) fprintf(fp,"%s(%u)", p->mh_file, p->mh_line); in xmlMemDisplayLast()
759 fprintf(fp," INVALID"); in xmlMemDisplayLast()
762 xmlMemContentShow(fp, p); in xmlMemDisplayLast()
764 fprintf(fp," skip"); in xmlMemDisplayLast()
766 fprintf(fp,"\n"); in xmlMemDisplayLast()
772 fprintf(fp,"Memory list not compiled (MEM_LIST not defined !)\n"); in xmlMemDisplayLast()
775 fclose(fp); in xmlMemDisplayLast()
787 xmlMemDisplay(FILE *fp) in xmlMemDisplay() argument
799 FILE *old_fp = fp; in xmlMemDisplay()
801 if (fp == NULL) { in xmlMemDisplay()
802 fp = fopen(".memorylist", "w"); in xmlMemDisplay()
803 if (fp == NULL) in xmlMemDisplay()
812 fprintf(fp," %s\n\n", buf); in xmlMemDisplay()
816 fprintf(fp," MEMORY ALLOCATED : %lu, MAX was %lu\n", in xmlMemDisplay()
818 fprintf(fp,"BLOCK NUMBER SIZE TYPE\n"); in xmlMemDisplay()
823 fprintf(fp,"%-5u %6lu %6lu ",idx++,p->mh_number, in xmlMemDisplay()
826 case STRDUP_TYPE:fprintf(fp,"strdup() in ");break; in xmlMemDisplay()
827 case MALLOC_TYPE:fprintf(fp,"malloc() in ");break; in xmlMemDisplay()
828 case REALLOC_TYPE:fprintf(fp,"realloc() in ");break; in xmlMemDisplay()
829 case MALLOC_ATOMIC_TYPE:fprintf(fp,"atomicmalloc() in ");break; in xmlMemDisplay()
830 case REALLOC_ATOMIC_TYPE:fprintf(fp,"atomicrealloc() in ");break; in xmlMemDisplay()
832 fprintf(fp,"Unknown memory block, may be corrupted"); in xmlMemDisplay()
835 fclose(fp); in xmlMemDisplay()
838 if (p->mh_file != NULL) fprintf(fp,"%s(%u)", p->mh_file, p->mh_line); in xmlMemDisplay()
840 fprintf(fp," INVALID"); in xmlMemDisplay()
843 xmlMemContentShow(fp, p); in xmlMemDisplay()
845 fprintf(fp," skip"); in xmlMemDisplay()
847 fprintf(fp,"\n"); in xmlMemDisplay()
852 fprintf(fp,"Memory list not compiled (MEM_LIST not defined !)\n"); in xmlMemDisplay()
855 fclose(fp); in xmlMemDisplay()
917 xmlMemShow(FILE *fp, int nr ATTRIBUTE_UNUSED) in xmlMemShow() argument
923 if (fp != NULL) in xmlMemShow()
924 fprintf(fp," MEMORY ALLOCATED : %lu, MAX was %lu\n", in xmlMemShow()
929 fprintf(fp,"NUMBER SIZE TYPE WHERE\n"); in xmlMemShow()
932 fprintf(fp,"%6lu %6lu ",p->mh_number,(unsigned long)p->mh_size); in xmlMemShow()
934 case STRDUP_TYPE:fprintf(fp,"strdup() in ");break; in xmlMemShow()
935 case MALLOC_TYPE:fprintf(fp,"malloc() in ");break; in xmlMemShow()
936 case MALLOC_ATOMIC_TYPE:fprintf(fp,"atomicmalloc() in ");break; in xmlMemShow()
937 case REALLOC_TYPE:fprintf(fp,"realloc() in ");break; in xmlMemShow()
938 case REALLOC_ATOMIC_TYPE:fprintf(fp,"atomicrealloc() in ");break; in xmlMemShow()
939 default:fprintf(fp," ??? in ");break; in xmlMemShow()
942 fprintf(fp,"%s(%u)", p->mh_file, p->mh_line); in xmlMemShow()
944 fprintf(fp," INVALID"); in xmlMemShow()
945 xmlMemContentShow(fp, p); in xmlMemShow()
946 fprintf(fp,"\n"); in xmlMemShow()