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 WAA01046; Mon, 5 Aug 2002 22:16:56 +0200 (MET DST) 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 WAA00980 for ; Mon, 5 Aug 2002 22:16:55 +0200 (MET DST) Received: from mail.eecs.harvard.edu (bowser.eecs.harvard.edu [140.247.60.24]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g75KGnP18087 for ; Mon, 5 Aug 2002 22:16:54 +0200 (MET DST) Received: by mail.eecs.harvard.edu (Postfix, from userid 32210) id E762454C8C3; Mon, 5 Aug 2002 16:16:48 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.eecs.harvard.edu (Postfix) with ESMTP id E537C54C8C1 for ; Mon, 5 Aug 2002 16:16:48 -0400 (EDT) Date: Mon, 5 Aug 2002 16:16:48 -0400 (EDT) From: Michael Tucker To: OCaml Subject: [Caml-list] Sharing Files between OCaml and C In-Reply-To: <200208051929.VAA0000007257@beaune.inria.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I would like to share access to a file between a C function and an OCaml function in an application put together with CamlIDL. If I have a C function with prototype: int manip_file(FILE* f, int x); Is there any support in CamlIDL for passing a file that was opened in OCaml. I checked the archives, and found a message that described pulling out the integer file descriptor, and passing that to fdopen on the C side, but that was it -- the same message asked about better support from CamlIDL (this was winter 2000), but I couldn't find a response. Has this changed over the past year and a half, or is that the best method? Thanks, Mike ------------------- 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