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

Re: Off_t vs. off_t vs. int

Thread Previous
From:
Nick Ing-Simmons
Date:
November 10, 2003 09:11
Subject:
Re: Off_t vs. off_t vs. int
Message ID:
20031110171056.4235.13@llama.elixent.com
Stas Bekman <stas@stason.org> 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
>http://stason.org/     mod_perl Guide ---> http://perl.apache.org
>mailto:stas@stason.org http://use.perl.org http://apacheweek.com
>http://modperlbook.org http://apache.org   http://ticketmaster.com


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About