12 typedef char F_SYMBOL
;
14 #define from_native_string from_char_string
15 #define unbox_native_string unbox_char_string
16 #define string_to_native_alien(string) string_to_char_alien(string,true)
17 #define unbox_symbol_string unbox_char_string
19 #define STRING_LITERAL(string) string
23 #define STRNCMP strncmp
26 #define FIXNUM_FORMAT "%ld"
27 #define CELL_FORMAT "%lu"
28 #define CELL_HEX_FORMAT "%lx"
31 #define CELL_HEX_PAD_FORMAT "%016lx"
33 #define CELL_HEX_PAD_FORMAT "%08lx"
36 #define FIXNUM_FORMAT "%ld"
38 #define OPEN_READ(path) fopen(path,"rb")
39 #define OPEN_WRITE(path) fopen(path,"wb")
41 #define print_native_string(string) print_string(string)
43 void start_thread(void *(*start_routine
)(void *));
46 void ffi_dlopen(F_DLL
*dll
);
47 void *ffi_dlsym(F_DLL
*dll
, F_SYMBOL
*symbol
);
48 void ffi_dlclose(F_DLL
*dll
);
50 void unix_init_signals(void);
51 void signal_handler(int signal
, siginfo_t
* siginfo
, void* uap
);
52 void dump_stack_signal(int signal
, siginfo_t
* siginfo
, void* uap
);
54 s64
current_micros(void);
55 void sleep_micros(CELL usec
);
57 void open_console(void);