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

Re: Off_t vs. off_t vs. int

Thread Previous
Nick Ing-Simmons
November 10, 2003 09:11
Re: Off_t vs. off_t vs. int
Message ID:
Stas Bekman <> writes:
>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?

Sounds reasonable.

>Off_t is alised to off_t, 

For you - not always - it depends how platfrom does large files.

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

I don't think so - it probably needs a custom T_XX mapping.

>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 Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About