From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 153F0BC69 for ; Fri, 31 Aug 2007 18:49:43 +0200 (CEST) Received: from hades.snarc.org (hades.snarc.org [212.85.152.11]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7VGneAK012775 for ; Fri, 31 Aug 2007 18:49:42 +0200 Received: by hades.snarc.org (Postfix, from userid 1000) id A740A1B482; Fri, 31 Aug 2007 18:49:37 +0200 (CEST) Date: Fri, 31 Aug 2007 18:49:37 +0200 To: Mathias Kende Cc: OCaml List Subject: Re: [Caml-list] int overflow and Marshal failure Message-ID: <20070831164937.GA16594@snarc.org> References: <6cd4x4ae5k.fsf@hod.lan.m-e-leypold.de> <1188577819.7084.21.camel@MATHIAS-ENS> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1188577819.7084.21.camel@MATHIAS-ENS> X-Warning: Email may contain unsmilyfied humor and/or satire. User-Agent: Mutt/1.5.16 (2007-06-11) From: tab@snarc.org (Vincent Hanquez) X-Miltered: at concorde with ID 46D846A4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0200,:01 0200,:01 markus:01 integers:01 largefile:01 mathias:98 wrote:01 unix:01 unix:01 caml-list:01 marshal:01 int:01 int:01 native:03 library:03 On Fri, Aug 31, 2007 at 06:30:19PM +0200, Mathias Kende wrote: > Le jeudi 30 août 2007 à 23:47 +0200, Markus E L a écrit : > > A check in the Unix library would be nice, in the long run I think > > using 32bit native integers is absolutely required. > > I had the same sort of problem with the Unix.stat function and the > st_size member being an int while it is a 64 bits int on recent systems > (including some 32 bits one). The maximum size that can be stored on 32 > bits system, 1Go, is much too small for this function. Unix.LargeFile.stat returns a proper structure with 64bits st_size. I wish that was directly Unix.stat though ... -- Vincent Hanquez