1 /***********************************************************************/
5 /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
7 /* Copyright 2001 Institut National de Recherche en Informatique et */
8 /* en Automatique. All rights reserved. This file is distributed */
9 /* under the terms of the GNU Library General Public License, with */
10 /* the special exception on linking described in file ../LICENSE. */
12 /***********************************************************************/
14 /* $Id: startup.h 6130 2004-02-22 15:07:51Z xleroy $ */
16 #ifndef CAML_STARTUP_H
17 #define CAML_STARTUP_H
22 CAMLextern void caml_main(char **argv);
24 CAMLextern void caml_startup_code(
25 code_t code, asize_t code_size,
26 char *data, asize_t data_size,
27 char *section_table, asize_t section_table_size,
30 enum { FILE_NOT_FOUND = -1, BAD_BYTECODE = -2 };
32 extern int caml_attempt_open(char **name, struct exec_trailer *trail,
34 extern void caml_read_section_descriptors(int fd, struct exec_trailer *trail);
35 extern int32 caml_seek_optional_section(int fd, struct exec_trailer *trail,
37 extern int32 caml_seek_section(int fd, struct exec_trailer *trail, char *name);
40 #endif /* CAML_STARTUP_H */