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

Off_t vs. off_t vs. int

Thread Next
Stas Bekman
November 5, 2003 17:57
Off_t vs. off_t vs. int
Message ID:
Perl_pp_sysread uses int for its offset argument. PerlIO uses Off_t for 
offsets. Should Perl_pp_sysread use Off_t as well? isn't int too small for 
reading with large file supporting systems?

Off_t is alised to off_t, but off_t is not in the typemap. should it be in the 
typemap and be mapped to T_NV?

Also the typemap defines:

size_t                  T_UV
ssize_t                 T_IV

again aren't they too small for large filesystems? and should be T_NV?

The typemap doesn't containt entries for Size_t and SSize_t used by perlio. is 
it safe to assume that size == Size?

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About