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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 93478BB81 for ; Sat, 12 Nov 2005 23:24:30 +0100 (CET) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id jACMOT3d028987 for ; Sat, 12 Nov 2005 23:24:30 +0100 Received: from c-24-3-154-200.hsd1.pa.comcast.net ([24.3.154.200]) by ux9.sp.cs.cmu.edu id aa29289; 12 Nov 2005 17:24 EST Received: from ecc by stratocaster.home with local (Exim 4.54) id 1Eb3n2-0000T1-V4 for caml-list@yquem.inria.fr; Sat, 12 Nov 2005 17:24:04 -0500 Date: Sat, 12 Nov 2005 17:24:04 -0500 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Annoying compiler magic Message-ID: <20051112222404.GB1784@localhost> Mail-Followup-To: caml-list@yquem.inria.fr References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Eric Cooper X-Miltered: at concorde with ID 43766B9D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 compiler:01 compiler:01 stdlib:01 pervasives:01 desc:01 stdlib:01 desc:01 otherlibs:01 threads:01 pervasives:01 byterun:01 camlprim:01 wrote:01 grep:01 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, Nov 13, 2005 at 11:00:21AM +1300, Jonathan Roewen wrote: > Where the hell are these coming from? Are they built into the compiler > itself? As I can't find anything to explain it. grep is your friend. $ grep -r caml_sys_open . ./stdlib/pervasives.ml:external open_desc: string -> open_flag list -> int -> int = "caml_sys_open" ./stdlib/filename.ml:external open_desc: string -> open_flag list -> int -> int = "caml_sys_open" ./otherlibs/threads/pervasives.ml:external open_desc: string -> open_flag list -> int -> int = "caml_sys_open" ./byterun/sys.c:CAMLprim value caml_sys_open(value path, value vflags, value vperm) -- Eric Cooper e c c @ c m u . e d u