AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2008.08.19 05:17 "[Tiff] Regarding DICONDE and its Specification", by Harsha
2008.08.19 16:05 "Re: [Tiff] Regarding DICONDE and its Specification", by Bob Friesenhahn
2008.08.20 12:37 "Re: [Tiff] Regarding DICONDE and its Specification", by Harsha
2008.08.20 15:12 "Re: [Tiff] Regarding DICONDE and its Specification", by Bob Friesenhahn
2008.08.20 14:03 "Re: [Tiff] Regarding DICONDE and its Specification", by Gene Amtower
2008.08.22 15:21 "Re: [Tiff] creating sparse files......", by Toby Thain
2008.08.22 08:56 "[Tiff] creating sparse files......", by Rogier Wolff
2008.08.22 13:11 "Re: [Tiff] creating sparse files......", by Toby Thain
2008.08.22 15:45 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.22 16:26 "Re: [Tiff] creating sparse files......", by Toby Thain
2008.08.22 14:44 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn
2008.08.22 16:27 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.22 16:40 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn
2008.08.22 16:52 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.22 18:11 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn
2008.08.22 20:02 "Re: [Tiff] creating sparse files......", by Phillip Crews
2008.08.23 00:12 "Re: [Tiff] creating sparse files......", by Edward Lam
2008.08.23 15:26 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.23 16:07 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn
2008.08.23 16:23 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.23 16:46 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn
2008.08.23 15:08 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.23 15:54 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn
2008.08.23 15:58 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.23 16:02 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.23 16:51 "Re: [Tiff] creating sparse files......", by Gene Amtower
2008.08.23 17:39 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.25 06:28 "Re: [Tiff] creating sparse files......", by Andrey Kiselev
2008.08.25 09:37 "Re: [Tiff] creating sparse files......", by John
2008.08.25 10:41 "RE: [Tiff] creating sparse files......", by Tillaart, Rob van den
2008.08.25 12:15 "Re: [Tiff] creating sparse files......", by John
2008.08.26 13:14 "Re: [Tiff] creating sparse files......", by Edward Lam
2008.08.23 18:49 "Re: [Tiff] creating sparse files......", by Rogier Wolff
2008.08.23 18:03 "Re: [Tiff] creating sparse files......", by Toby Thain

2008.08.23 16:07 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn

Ehh. You do have to take into account that this was written in the module "tif_unix.c" or something like that. Wether this is active on Microsof operating systems as well, I don't know. Sounds like it should not be....

Probably "tif_unix.c" should really be called "tif_posix.c". It does actually work under Windows using Window's underscore-prefixed POSIX API equivalents. If you use the 'configure' based build under Cygwin or MinGW, then "tif_unix.c" will be used and "tif_unix.c" may be selected under Windows in other situations as well.

The Windows API documentation does not specify that intermediate bytes are automatically initialized to zero if you seek past the end of the file and write some data. The only WIN32 interface which is documented to extend the file while initializing with zero is chsize(), which is unfortunately limited to only 2GB due to the range of off_t under WIN32.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/