return(MagickFalse);
#if defined(MAGICKCORE_HAVE_POSIX_FALLOCATE)
if (cache_info->synchronize != MagickFalse)
- (void) posix_fallocate(cache_info->file,offset+1,extent-offset);
+ if (posix_fallocate(cache_info->file,offset+1,extent-offset) != 0)
+ return(MagickFalse);
#endif
}
offset=(MagickOffsetType) lseek(cache_info->file,0,SEEK_SET);
if ((offset == (MagickOffsetType) (extent-1)) &&
(write(file,"",1) == 1))
{
+#if !defined(MAGICKCORE_HAVE_POSIX_FALLOCATE)
memory_info->blob=MapBlob(file,IOMode,0,extent);
+#else
+ if (posix_fallocate(file,0,extent) == 0)
+ memory_info->blob=MapBlob(file,IOMode,0,extent);
+#endif
if (memory_info->blob != NULL)
memory_info->type=MapVirtualMemory;
else