1 #ifndef _MAGIC_EXTERN_H
2 #define _MAGIC_EXTERN_H
3 
4 /*
5  * TODO: libsys/sef_llvm.c should include this file, all weak external
6  * function declarations used in that file should be here, and it should
7  * probably be moved into include/minix/.
8  */
9 
10 #include <stdlib.h>
11 #include <minix/sef.h>
12 
13 void magic_data_init(void);
14 void _magic_ds_st_init(void);
15 
16 void *magic_nested_mmap(void *start, size_t length, int prot, int flags,
17 	int fd, off_t offset);
18 int magic_nested_munmap(void *start, size_t length);
19 
20 int _magic_state_transfer(sef_init_info_t *info);
21 void _magic_dump_eval_bool(char *expr);
22 void *_magic_real_alloc_contig(size_t len, int flags, uint32_t *phys);
23 int _magic_real_free_contig(void *addr, size_t len);
24 int _magic_real_brk(char *newbrk);
25 void* _magic_real_mmap(void *buf, size_t len, int prot, int flags, int fd,
26 	off_t offset);
27 int _magic_real_munmap(void *addr, size_t length);
28 
29 #endif /* !_MAGIC_EXTERN_H */
30