summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/memdump/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/memdump/stdio.h')
-rw-r--r--contrib/syslinux-4.02/memdump/stdio.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/memdump/stdio.h b/contrib/syslinux-4.02/memdump/stdio.h
new file mode 100644
index 0000000..2c25666
--- /dev/null
+++ b/contrib/syslinux-4.02/memdump/stdio.h
@@ -0,0 +1,21 @@
+#ifndef STDIO_H
+#define STDIO_H
+
+#include <stdarg.h>
+#include <stdlib.h>
+
+typedef unsigned int off_t;
+
+int putchar(int);
+int puts(const char *);
+int sprintf(char *buf, const char *fmt, ...);
+int vsprintf(char *buf, const char *fmt, va_list args);
+int printf(const char *fmt, ...);
+
+#define stdin 0
+#define stdout 1
+#define stderr 2
+
+#define fprintf(x, y, ...) printf(y, ## __VA_ARGS__)
+
+#endif /* STDIO_H */