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
25 #define MOVE_FILE_FAILS(old,new) (rename((old),(new)) < 0)
26 #define DELETE_FILE_FAILS(old) (unlink((old)) < 0)
28 #define FIXNUM_FORMAT "%ld"
29 #define CELL_FORMAT "%lu"
30 #define CELL_HEX_FORMAT "%lx"
33 #define CELL_HEX_PAD_FORMAT "%016lx"
35 #define CELL_HEX_PAD_FORMAT "%08lx"
38 #define FIXNUM_FORMAT "%ld"
40 #define OPEN_READ(path) fopen(path,"rb")
41 #define OPEN_WRITE(path) fopen(path,"wb")
43 #define print_native_string(string) print_string(string)
45 void start_thread(void *(*start_routine
)(void *));
48 void ffi_dlopen(F_DLL
*dll
);
49 void *ffi_dlsym(F_DLL
*dll
, F_SYMBOL
*symbol
);
50 void ffi_dlclose(F_DLL
*dll
);
52 void unix_init_signals(void);
53 void signal_handler(int signal
, siginfo_t
* siginfo
, void* uap
);
54 void dump_stack_signal(int signal
, siginfo_t
* siginfo
, void* uap
);
56 s64
current_micros(void);
57 void sleep_micros(CELL usec
);
59 void open_console(void);