From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA28377; Tue, 18 Mar 2003 18:39:59 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 SAA28530 for ; Tue, 18 Mar 2003 18:39:52 +0100 (MET) Received: from xanadu.ece.ucsb.edu (xanadu.ece.ucsb.edu [128.111.56.51]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h2IHdoX24040 for ; Tue, 18 Mar 2003 18:39:50 +0100 (MET) Received: from ece.ucsb.edu (gimli.ece.ucsb.edu [128.111.56.252]) by xanadu.ece.ucsb.edu (8.11.6+Sun/8.11.6) with ESMTP id h2IHdnS01229 for ; Tue, 18 Mar 2003 09:39:49 -0800 (PST) Date: Tue, 18 Mar 2003 09:39:25 -0800 Subject: Re: [Caml-list] Unix.lseek versus Pervasives.pos Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Shivkumar Chandrasekaran To: caml-list@inria.fr Content-Transfer-Encoding: 7bit In-Reply-To: <46CF368E-5912-11D7-8289-000A95773ED2@rouaix.org> Message-Id: <8FFDCB16-5968-11D7-B77E-000393942C76@ece.ucsb.edu> X-Mailer: Apple Mail (2.551) X-Spam: no; 0.00; shivkumar:01 shiv:01 caml-list:01 lseek:01 pervasives:01 --shiv--:01 marshalling:01 largefile:01 bug:01 faq:01 beginner's:01 beginners:01 bin:01 caml-bugs:01 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk It would seem to me that it would be convenient to have 64 bit versions of seek_in, seek_out, pos_in, pos_out in the Pervasives module. This would help decouple the Pervasives I/O module a little more from the Unix module. --shiv-- On Monday, March 17, 2003, at 11:21 PM, Francois Rouaix wrote: > You may need to flush the channel. If the data is still in the > buffers, the fd position will not have been updated. > > --f > > On Monday, Mar 17, 2003, at 23:45 Europe/Paris, Shivkumar > Chandrasekaran wrote: > >> Hi, >> >> Currently I am trying to handle "LargeFiles" while marshalling caml >> values and I have run into this incidental problem (nothing to do >> with LargeFile). If I open a file with "open_out_bin", write to it >> using "output_value" and then try to determine the position in the >> file using "pos", I get the correct value. However, if I use >> Unix.lseek > thus >> >> Unix.lseek (Unix.descr_of_out_channel fd_out) 0 Unix.SEEK_CUR >> >> I get a different value (so far always 0) than the one I get from >> >> pos fd_out >> >> The manual does not seem to help. Any advice will be appreciated. >> Thanks, >> >> --shiv-- >> >> ------------------- >> To unsubscribe, mail caml-list-request@inria.fr Archives: >> http://caml.inria.fr >> Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: >> http://caml.inria.fr/FAQ/ >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> >> > > --shiv-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners