develooper Front page | perl.perl5.porters | Postings from November 2003

Perl IO (was Off_t vs. off_t vs. int)

Horsley Tom
November 6, 2003 04:38
Perl IO (was Off_t vs. off_t vs. int)
Message ID:
Speaking of perl IO redesign for perl6 :-)

The largefile support was another mess when I tried to get it
working on Power MAX OS. The current code in perl just uses
the non-64 bit names for everything and expects to be
able to #define enough stuff so that it uses the 64-bit names,
but the available largefile support in Power MAX does not
have any combination of ifdefs that makes everything just
be 64 bit, and when perl comes along and tries to
redefine things like making off_t really be off64_t,
the system includes get all screwed up because the types
don't match what the headers say.

Everything would work much better with Power MAX (and maybe
other systems too) if perl used perls_own_off_t and
perls_own_struct_stat, etc instead of trying to force
the stuff from the system headers to be redefined.

Perl can define perls_own_off_t to its hearts content
without screwing up system headers. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About