From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,29e13b74b6411821 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!x69g2000hsx.googlegroups.com!not-for-mail From: gpriv@axonx.com Newsgroups: comp.lang.ada Subject: Ada.Directories.Size wraps on over 2Gb files Date: Mon, 10 Dec 2007 13:38:32 -0800 (PST) Organization: http://groups.google.com Message-ID: <0db40dde-17f0-40a9-9dc0-55f9b0a8e1b1@x69g2000hsx.googlegroups.com> NNTP-Posting-Host: 151.196.71.114 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1197322713 13997 127.0.0.1 (10 Dec 2007 21:38:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 10 Dec 2007 21:38:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x69g2000hsx.googlegroups.com; posting-host=151.196.71.114; posting-account=YaY8rAoAAAAAnFXOECY3BGVJsrvFJCgy User-Agent: G2/1.0 X-HTTP-Via: 1.1 SPARKS X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18870 Date: 2007-12-10T13:38:32-08:00 List-Id: Couple of things that I found so far: Ada.Directories.Size wraps on over 2Gb files returning negative number. I saw that was mentioned in In addition to that: In addition to that Ada.Direct_IO.Size returns 0 on the same while End_Of_File is permanently true. At the same time it is possible to write files larger than 2G. Types are all seem to be long integers, so it looks like truncation is being made somewhere in C code (?) Regards, George.