[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Some day my 64-bit integers will come...
The following appeared recently on comp.lang.perl.misc:
=== alpha ===
In article <slrn86540t.u40.adanial@nobel.sp.trw.com>,
adanial@nobel.sp.trw.com (al danial) writes:
> The stat function fails if I give it the name of a file which is larger
> than 2 Gb. Here's what I tried:
>
> /home/user> ls -l T30108_14.SCR300 T30108_14.DBALL
> -rwxr-x--- 1 user sys 98304 Dec 21 11:09 T30108_14.DBALL
> -rwxr-x--- 1 user sys 5666340864 Dec 23 12:44 T30108_14.SCR300
>
> First I test the small file:
>
> /home/user> perl -e 'print join("|", stat "T30108_14.DBALL"), "\n"'
> 1441793|20|33256|1|17221|3|3383|98304|945803360|945803362|945803362|4096|192
>
> Looks good. Now the larger file:
>
> /home/user> perl -e 'print join("|", stat "T30108_14.SCR300"), "\n"'
>
> (nothing returned)
> This happens with perl v 5.004_04, hardware = IBM RS/6000, OS = AIX 4.3.2.
> [snip]
> Albert Danial al danial trw com 310-813-9516 fax: -4467
> TRW R4/1020, One Space Park, Redondo Bch., CA 90278, USA
It is a problem with LARGE_FILE support on AIX. I am having the same problem.
Matt Richards
=== omega ===
I provided a rather sketchy workaround, noting that AIX does support large files
and supplies stat64() for just such occasions. My question to the Perl porters
is: are there any plans to make internal integers 64 bits rather than 32 some
day, or perhaps use 64-bit integers for certain things like this? Just curious,
and I'm sorry if this has been discussed before.
--WGR
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]