From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3EE9JDK024395 for ; Thu, 14 Apr 2011 16:09:19 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAGj/pk3UGyoFkWdsb2JhbACYOY09FAEBAQEJCwsHFAMisRKHZjCIYoVuBI1vg3Mb X-IronPort-AV: E=Sophos;i="4.64,211,1301868000"; d="scan'208";a="80793197" Received: from smtp5-g21.free.fr ([212.27.42.5]) by mail3-smtp-sop.national.inria.fr with ESMTP; 14 Apr 2011 16:09:12 +0200 Received: from gatekeeper.fr (unknown [81.57.200.24]) by smtp5-g21.free.fr (Postfix) with ESMTP id 13A27D48229 for ; Thu, 14 Apr 2011 16:09:04 +0200 (CEST) Received: from [192.168.111.2] (unknown [192.168.111.2]) by gatekeeper.fr (Postfix) with ESMTP id D385C23CB4E for ; Thu, 14 Apr 2011 16:08:56 +0200 (CEST) Message-ID: <4DA6FFF9.40300@gmail.com> Date: Thu, 14 Apr 2011 16:08:57 +0200 From: Gregory Bellier User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Caml-list] How to get a file offset Dear List, I would like to get the offset of a file opened in another process. If I have the required rights, I can get this info from /proc//fdinfo/ but is there a another way ? Second question, has this already been coded in O'Caml ? Thanks in advance.