patch-2.4.19 linux-2.4.19/arch/ppc64/xmon/nonstdio.h
Next file: linux-2.4.19/arch/ppc64/xmon/ppc-dis.c
Previous file: linux-2.4.19/arch/ppc64/xmon/ansidecl.h
Back to the patch index
Back to the overall index
-  Lines: 23
-  Date:
Fri Aug  2 17:39:43 2002
-  Orig file: 
linux-2.4.18/arch/ppc64/xmon/nonstdio.h
-  Orig date: 
Wed Dec 31 16:00:00 1969
diff -urN linux-2.4.18/arch/ppc64/xmon/nonstdio.h linux-2.4.19/arch/ppc64/xmon/nonstdio.h
@@ -0,0 +1,22 @@
+typedef int	FILE;
+extern FILE *xmon_stdin, *xmon_stdout;
+#define EOF	(-1)
+#define stdin	xmon_stdin
+#define stdout	xmon_stdout
+#define printf	xmon_printf
+#define fprintf	xmon_fprintf
+#define fputs	xmon_fputs
+#define fgets	xmon_fgets
+#define putchar	xmon_putchar
+#define getchar	xmon_getchar
+#define putc	xmon_putc
+#define getc	xmon_getc
+#define fopen(n, m)	NULL
+#define fflush(f)	do {} while (0)
+#define fclose(f)	do {} while (0)
+extern char *fgets(char *, int, void *);
+extern void xmon_printf(const char *, ...);
+extern void xmon_fprintf(void *, const char *, ...);
+extern void xmon_sprintf(char *, const char *, ...);
+
+#define perror(s)	printf("%s: no files!\n", (s))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)