Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: tab@snarc.org (Vincent Hanquez)
To: Mathias Kende <mathias@kende.fr>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] int overflow and Marshal failure
Date: Fri, 31 Aug 2007 18:49:37 +0200	[thread overview]
Message-ID: <20070831164937.GA16594@snarc.org> (raw)
In-Reply-To: <1188577819.7084.21.camel@MATHIAS-ENS>

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


  parent reply	other threads:[~2007-08-31 16:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-30 21:47 Unix.getuid() int overflow Markus E L
2007-08-30 22:57 ` [Caml-list] " Markus E L
2007-08-31 16:30 ` [Caml-list] int overflow and Marshal failure Mathias Kende
2007-08-31 16:47   ` Eric Cooper
2007-08-31 16:49   ` Vincent Hanquez [this message]
2007-08-31 17:03   ` Brian Hurt
2007-08-31 18:25   ` Matthieu Dubuget

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070831164937.GA16594@snarc.org \
    --to=tab@snarc.org \
    --cc=caml-list@inria.fr \
    --cc=mathias@kende.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox