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

Off_t vs. off_t vs. int

Thread Next
From:
Stas Bekman
Date:
November 5, 2003 17:57
Subject:
Off_t vs. off_t vs. int
Message ID:
3FA9AA92.2010700@stason.org
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
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 Next


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