Lines Matching refs:file_info
148 file_info; member
274 blob_info->file_info.file=(FILE *) NULL; in AttachBlob()
618 status=fsync(fileno(blob_info->file_info.file)); in CloseBlob()
619 status=ferror(blob_info->file_info.file); in CloseBlob()
625 (void) gzerror(blob_info->file_info.gzfile,&status); in CloseBlob()
632 (void) BZ2_bzerror(blob_info->file_info.bzfile,&status); in CloseBlob()
640 if (blob_info->file_info.file != (FILE *) NULL) in CloseBlob()
643 status=fsync(fileno(blob_info->file_info.file)); in CloseBlob()
644 status=ferror(blob_info->file_info.file); in CloseBlob()
669 status=fclose(blob_info->file_info.file); in CloseBlob()
675 status=pclose(blob_info->file_info.file); in CloseBlob()
682 status=gzclose(blob_info->file_info.gzfile); in CloseBlob()
689 BZ2_bzclose(blob_info->file_info.bzfile); in CloseBlob()
697 if (blob_info->file_info.file != (FILE *) NULL) in CloseBlob()
698 status=fclose(blob_info->file_info.file); in CloseBlob()
1006 blob_info->file_info.file=(FILE *) NULL; in DetachBlob()
1205 blob_info->eof=feof(blob_info->file_info.file) != 0 ? MagickTrue : in EOFBlob()
1212 blob_info->eof=gzeof(blob_info->file_info.gzfile) != 0 ? MagickTrue : in EOFBlob()
1224 (void) BZ2_bzerror(blob_info->file_info.bzfile,&status); in EOFBlob()
1285 blob_info->error=ferror(blob_info->file_info.file); in ErrorBlob()
1291 (void) gzerror(blob_info->file_info.gzfile,&blob_info->error); in ErrorBlob()
1298 (void) BZ2_bzerror(blob_info->file_info.bzfile,&blob_info->error); in ErrorBlob()
1707 return(image->blob->file_info.file); in GetBlobFileHandle()
1825 if (fstat(fileno(blob_info->file_info.file),&blob_info->properties) == 0) in GetBlobSize()
2856 if (blob_info->file_info.file == (FILE *) NULL) in IsBlobSeekable()
2858 status=fseek(blob_info->file_info.file,0,SEEK_CUR); in IsBlobSeekable()
2867 if (blob_info->file_info.gzfile == (gzFile) NULL) in IsBlobSeekable()
2869 offset=gzseek(blob_info->file_info.gzfile,0,SEEK_CUR); in IsBlobSeekable()
3158 status=setvbuf(image->blob->file_info.file,(char *) NULL,size == 0 ? in SetStreamBuffering()
3245 blob_info->file_info.file=(*type == 'r') ? stdin : stdout; in OpenBlob()
3248 setmode(fileno(blob_info->file_info.file),_O_BINARY); in OpenBlob()
3262 blob_info->file_info.file=fdopen(StringToLong(filename+3),fileMode); in OpenBlob()
3263 if (blob_info->file_info.file == (FILE *) NULL) in OpenBlob()
3270 setmode(fileno(blob_info->file_info.file),_O_BINARY); in OpenBlob()
3293 blob_info->file_info.file=(FILE *) popen_utf8(sanitize_command,fileMode); in OpenBlob()
3295 if (blob_info->file_info.file == (FILE *) NULL) in OpenBlob()
3309 blob_info->file_info.file=(FILE *) fopen_utf8(filename,type); in OpenBlob()
3310 if (blob_info->file_info.file == (FILE *) NULL) in OpenBlob()
3355 blob_info->file_info.file=image_info->file; in OpenBlob()
3362 blob_info->file_info.file=(FILE *) fopen_utf8(filename,type); in OpenBlob()
3363 if (blob_info->file_info.file != (FILE *) NULL) in OpenBlob()
3374 count=fread(magick,1,sizeof(magick),blob_info->file_info.file); in OpenBlob()
3375 (void) fseek(blob_info->file_info.file,-((off_t) count),SEEK_CUR); in OpenBlob()
3377 (void) fflush(blob_info->file_info.file); in OpenBlob()
3385 if (blob_info->file_info.file != (FILE *) NULL) in OpenBlob()
3386 (void) fclose(blob_info->file_info.file); in OpenBlob()
3387 blob_info->file_info.file=(FILE *) NULL; in OpenBlob()
3388 blob_info->file_info.gzfile=gzopen(filename,"rb"); in OpenBlob()
3389 if (blob_info->file_info.gzfile != (gzFile) NULL) in OpenBlob()
3396 if (blob_info->file_info.file != (FILE *) NULL) in OpenBlob()
3397 (void) fclose(blob_info->file_info.file); in OpenBlob()
3398 blob_info->file_info.file=(FILE *) NULL; in OpenBlob()
3399 blob_info->file_info.bzfile=BZ2_bzopen(filename,"r"); in OpenBlob()
3400 if (blob_info->file_info.bzfile != (BZFILE *) NULL) in OpenBlob()
3427 blob=MapBlob(fileno(blob_info->file_info.file),ReadMode,0, in OpenBlob()
3440 (void) fclose(blob_info->file_info.file); in OpenBlob()
3441 blob_info->file_info.file=(FILE *) NULL; in OpenBlob()
3457 blob_info->file_info.gzfile=gzopen(filename,"wb"); in OpenBlob()
3458 if (blob_info->file_info.gzfile != (gzFile) NULL) in OpenBlob()
3466 blob_info->file_info.bzfile=BZ2_bzopen(filename,"w"); in OpenBlob()
3467 if (blob_info->file_info.bzfile != (BZFILE *) NULL) in OpenBlob()
3473 blob_info->file_info.file=(FILE *) fopen_utf8(filename,type); in OpenBlob()
3474 if (blob_info->file_info.file != (FILE *) NULL) in OpenBlob()
3710 count=(ssize_t) fread(q,1,length,blob_info->file_info.file); in ReadBlob()
3715 c=getc(blob_info->file_info.file); in ReadBlob()
3723 c=getc(blob_info->file_info.file); in ReadBlob()
3731 c=getc(blob_info->file_info.file); in ReadBlob()
3739 c=getc(blob_info->file_info.file); in ReadBlob()
3762 count=(ssize_t) gzread(blob_info->file_info.gzfile,q+i, in ReadBlob()
3776 c=gzgetc(blob_info->file_info.gzfile); in ReadBlob()
3784 c=gzgetc(blob_info->file_info.gzfile); in ReadBlob()
3792 c=gzgetc(blob_info->file_info.gzfile); in ReadBlob()
3800 c=gzgetc(blob_info->file_info.gzfile); in ReadBlob()
3820 count=(ssize_t) BZ2_bzread(blob_info->file_info.bzfile,q+i, in ReadBlob()
3913 c=getc(blob_info->file_info.file); in ReadBlobByte()
4883 if (fseek(blob_info->file_info.file,offset,whence) < 0) in SeekBlob()
4891 if (gzseek(blob_info->file_info.gzfile,offset,whence) < 0) in SeekBlob()
5053 blob_info->file_info.file); in SetBlobExtent()
5060 file=fileno(blob_info->file_info.file); in SetBlobExtent()
5101 blob_info->file_info.file); in SetBlobExtent()
5108 file=fileno(blob_info->file_info.file); in SetBlobExtent()
5119 blob_info->file_info.file),WriteMode,0,(size_t) extent); in SetBlobExtent()
5353 status=fflush(blob_info->file_info.file); in SyncBlob()
5359 status=gzflush(blob_info->file_info.gzfile,Z_SYNC_FLUSH); in SyncBlob()
5366 status=BZ2_bzflush(blob_info->file_info.bzfile); in SyncBlob()
5425 offset=ftell(blob_info->file_info.file); in TellBlob()
5433 offset=(MagickOffsetType) gztell(blob_info->file_info.gzfile); in TellBlob()
5566 blob_info->file_info.file); in WriteBlob()
5571 c=putc((int) *p++,blob_info->file_info.file); in WriteBlob()
5578 c=putc((int) *p++,blob_info->file_info.file); in WriteBlob()
5585 c=putc((int) *p++,blob_info->file_info.file); in WriteBlob()
5592 c=putc((int) *p++,blob_info->file_info.file); in WriteBlob()
5614 count=(ssize_t) gzwrite(blob_info->file_info.gzfile,q+i, in WriteBlob()
5628 c=gzputc(blob_info->file_info.gzfile,(int) *p++); in WriteBlob()
5635 c=gzputc(blob_info->file_info.gzfile,(int) *p++); in WriteBlob()
5642 c=gzputc(blob_info->file_info.gzfile,(int) *p++); in WriteBlob()
5649 c=gzputc(blob_info->file_info.gzfile,(int) *p++); in WriteBlob()
5668 count=(ssize_t) BZ2_bzwrite(blob_info->file_info.bzfile,q+i, in WriteBlob()
5771 c=putc((int) value,blob_info->file_info.file); in WriteBlobByte()