00001 typedef int FILE; 00002 extern FILE *xmon_stdin, *xmon_stdout; 00003 #define EOF (-1) 00004 #define stdin xmon_stdin 00005 #define stdout xmon_stdout 00006 #define printf xmon_printf 00007 #define fprintf xmon_fprintf 00008 #define fputs xmon_fputs 00009 #define fgets xmon_fgets 00010 #define putchar xmon_putchar 00011 #define getchar xmon_getchar 00012 #define putc xmon_putc 00013 #define getc xmon_getc 00014 #define fopen(n, m) NULL 00015 #define fflush(f) do {} while (0) 00016 #define fclose(f) do {} while (0) 00017 extern char *fgets(char *, int, void *); 00018 extern void xmon_printf(const char *, ...); 00019 extern void xmon_fprintf(void *, const char *, ...); 00020 extern void xmon_sprintf(char *, const char *, ...); 00021 00022 #define perror(s) printf("%s: no files!\n", (s))