1 #define EOF (-1) 2 3 #define printf xmon_printf 4 #define putchar xmon_putchar 5 6 extern int xmon_putchar(int c); 7 extern int xmon_getchar(void); 8 extern void xmon_puts(const char *); 9 extern char *xmon_gets(char *, int); 10 extern void xmon_printf(const char *, ...); 11 extern void xmon_map_scc(void); 12 extern int xmon_expect(const char *str, unsigned long timeout); 13 extern int xmon_write(const void *ptr, int nb); 14 extern int xmon_readchar(void); 15 extern int xmon_read_poll(void); 16