Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Annoying compiler magic
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] Annoying compiler magic
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