caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Unix.Unix_error (Unix.EOVERFLOW, "lstat",
@ 2006-11-08 10:10 Johann Spies
  2006-11-08 10:24 ` [Caml-list] " Xavier Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Johann Spies @ 2006-11-08 10:10 UTC (permalink / raw)
  To: caml-list

The Unix.stat-functions use integer for file size.  How do I handle
files which reports sizes bigger than the maximum integer?

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "And whosoever liveth and believeth in me shall never 
      die. Believest thou this?"    John 11:26 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Unix.Unix_error (Unix.EOVERFLOW, "lstat",
  2006-11-08 10:10 Unix.Unix_error (Unix.EOVERFLOW, "lstat", Johann Spies
@ 2006-11-08 10:24 ` Xavier Leroy
  2006-11-08 11:27   ` Johann Spies
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Leroy @ 2006-11-08 10:24 UTC (permalink / raw)
  To: Johann Spies; +Cc: caml-list

> The Unix.stat-functions use integer for file size.  How do I handle
> files which reports sizes bigger than the maximum integer?

By using the Unix.Largefile.*stat functions, which use 64-bit integers
for file size.

- Xavier Leroy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Unix.Unix_error (Unix.EOVERFLOW, "lstat",
  2006-11-08 10:24 ` [Caml-list] " Xavier Leroy
@ 2006-11-08 11:27   ` Johann Spies
  0 siblings, 0 replies; 3+ messages in thread
From: Johann Spies @ 2006-11-08 11:27 UTC (permalink / raw)
  To: caml-list

On Wed, Nov 08, 2006 at 11:24:24AM +0100, Xavier Leroy wrote:
> > The Unix.stat-functions use integer for file size.  How do I handle
> > files which reports sizes bigger than the maximum integer?
> 
> By using the Unix.Largefile.*stat functions, which use 64-bit integers
> for file size.

Thanks.  For some reason I did not see Largefile before.

Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "And whosoever liveth and believeth in me shall never 
      die. Believest thou this?"    John 11:26 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-08 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-08 10:10 Unix.Unix_error (Unix.EOVERFLOW, "lstat", Johann Spies
2006-11-08 10:24 ` [Caml-list] " Xavier Leroy
2006-11-08 11:27   ` Johann Spies

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).