From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 6BFC0BB84 for ; Mon, 24 Jul 2006 10:52:48 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k6O8qlWr003836 for ; Mon, 24 Jul 2006 10:52:48 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA26113 for ; Mon, 24 Jul 2006 10:52:47 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k6O8qhOo003794 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 24 Jul 2006 10:52:46 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1G4wAs-000344-00; Mon, 24 Jul 2006 09:52:26 +0100 Date: Mon, 24 Jul 2006 09:52:26 +0100 To: Jonathan Roewen Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocaml file operations question Message-ID: <20060724085226.GA11739@furbychan.cocan.org> References: <11877363411-BeMail@beos> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11877363411-BeMail@beos> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at nez-perce with ID 44C48A5F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 44C48A5B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 flags:01 ocaml:01 unix:01 unix:01 wrappers:01 notepad:01 23,:98 2006:98 wrote:01 caml-list:01 module:03 module:03 guess:03 sparse:04 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Sun, Jul 23, 2006 at 07:46:32AM -0700, Jonathan Roewen wrote: > If I'm using an OS/FS that supports sparse files (apparently linux does > this without any magic flags or anything), will reading/writing to this > file work as expected in OCaml? I guess I'll have to use Unix module > anyway just to get a read/write file in the first place... For *nix, the Unix module is just wrappers around the operating system calls, so just do what you would normally do in (eg) C. Later versions of Windows / NTFS support sparse files, but I've no idea what you need to do to support sparse files under that OS. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com