diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-04-26 14:57:08 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-04-26 15:26:25 +0200 |
commit | 3c8b9481088b546af3f0fd161a432ba0f0cb682e (patch) | |
tree | e6a83124f6becb94abc6dfbd03b8bd6400170f81 /common/stdio.h | |
parent | d8a73fe012567565113419dc0c4678df5abe5bc5 (diff) |
Move libc functions into a pseudo libc away from libarc
Diffstat (limited to 'common/stdio.h')
-rw-r--r-- | common/stdio.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/common/stdio.h b/common/stdio.h new file mode 100644 index 0000000..9ee52d3 --- /dev/null +++ b/common/stdio.h @@ -0,0 +1,30 @@ +/* + * Copyright 1999 Silicon Graphics, Inc. + */ +#ifndef _STDIO_H_ +#define _STDIO_H_ + +#include <stdarg.h> + +typedef unsigned long FILE; + +#define EOF (-1) + +extern FILE *stdin; +extern FILE *stdout; + +extern int fputs(const char *s, FILE * stream); +extern int puts(const char *s); + +extern int fgetc(FILE * stream); +#define getc(stream) fgetc(stream) +#define getchar() getc(stdin) + +extern int printf(const char *format, ...); +extern int fprintf(FILE * stream, const char *format, ...); +extern int sprintf(char* string, const char* format, ...); +extern int vprintf(const char *format, va_list ap); +extern int vfprintf(FILE * stream, const char *format, va_list ap); +extern int vsprtinf(char* string, const char* format, va_list ap); + +#endif /* _STDIO_H_ */ |