List Info

Thread: Re: tests/rwblob_EPT_bilevel.sh on HP-UX/PA-RISC




Re: tests/rwblob_EPT_bilevel.sh on HP-UX/PA-RISC
country flaguser name
United States
2007-02-09 14:38:31
> Remove this from both files solves the problem

Fseeko() accepts an off_t rather than long which is needed
for large file
support (i.t. off_t can be 64-bit whereas long is 32-bit). 
If you have the
time, try changing fseek to fseeko and ftell to ftello in
magick/blob.c
and see if the error still occurs.  If so this may indicate
a problem
with using fseeko/ftello on HP PA-RISC.
_______________________________________________
Magick-developers mailing list
Magick-developersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/m
agick-developers

Re: tests/rwblob_EPT_bilevel.sh on HP-UX/PA-RISC
country flaguser name
United States
2007-02-09 14:37:27
On Fri, Feb 09, 2007 at 02:38:31PM -0600, omicronpersei8imagemagick.org wrote:
> > Remove this from both files solves the problem
> 
> Fseeko() accepts an off_t rather than long which is
needed for large file
> support (i.t. off_t can be 64-bit whereas long is
32-bit).  If you have the
> time, try changing fseek to fseeko and ftell to ftello
in magick/blob.c
> and see if the error still occurs.  If so this may
indicate a problem
> with using fseeko/ftello on HP PA-RISC.

Why not just use fseeko/ftello? If a platform does not have
these
functions, then it doesn't have LFS and you can just:
  #define fseeko fseek
  #define ftello ftell

And, if a platform does have these functions, regardless of
whether or
not LFS is defined, aren't they safe to use?

I'll test with fseeko/ftello though.

-- 
albert chin (chinathewrittenword.com)
_______________________________________________
Magick-developers mailing list
Magick-developersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/m
agick-developers

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )