Lines Matching refs:fp
713 if(part->fp) in mime_open_file()
715 part->fp = fopen_read(part->data, "rb"); in mime_open_file()
716 return part->fp ? 0 : -1; in mime_open_file()
730 return fread(buffer, size, nitems, part->fp); in mime_file_read()
737 if(whence == SEEK_SET && !offset && !part->fp) in mime_file_seek()
743 return fseek(part->fp, (long) offset, whence) ? in mime_file_seek()
751 if(part->fp) { in mime_file_free()
752 fclose(part->fp); in mime_file_free()
753 part->fp = NULL; in mime_file_free()
822 if(part->fp && feof(part->fp)) in read_part_content()
973 if(part->kind == MIMEKIND_FILE && part->fp) { in readback_part()
974 fclose(part->fp); in readback_part()
975 part->fp = NULL; in readback_part()
1138 part->fp = NULL; in cleanup_part_content()