7 #include <stdarg.h> /* this must get fixed */
12 #include "sys/stdtypes.h"
17 #include <sys/stdio.h>
19 int fsetpos (FILE *stream, const fpos_t *pos);
20 int fgetpos (FILE *stream, fpos_t *pos);
21 int feof (FILE *stream);
22 int ferror (FILE *stream);
23 int puts (const char *s);
24 void rewind (FILE *stream);
26 #define vprintf(x,y) vfprintf(stdout,x,y)
28 #define setbuf(x,y) do { char *b = (y); \
29 setvbuf(x, b, b ? _IOFBF : _IONBF, BUFSIZ); } while (0)
31 #define getchar() fgetc(stdin)
32 #define getc(x) fgetc(x)
33 #define putchar(x) fputc(x,stdout)
34 #define putc(x,y) fputc(x,y)
37 int sprintf(char *buf, const char * fmt, ...);
38 int printf(const char *fmt, ...);
39 int fprintf(FILE * fp,const char *fmt, ...);
41 int vfprintf(FILE * fp,const char *fmt, va_list args);
42 int vsprintf(char * str,const char *fmt, va_list args);
44 /** PROTOTYPES from fopen.c **/
46 int ungetc(int c, FILE *fp);
49 int fputc(int c, FILE * fp);
50 int fputs(const char *s, FILE *fp);
51 char * fgets(char *s, int n, FILE *fp);
52 size_t fread(void *buf, size_t elsize, size_t nelems, FILE * fp);
53 size_t fwrite(const void *buf, size_t elsize, size_t nelems, FILE * fp);
54 FILE *freopen(const char *name, const char *mode, FILE *fp);
55 FILE *fopen(const char *name, const char *mode);
56 int fflush(FILE * fp);
57 int fclose(FILE * fp);
58 int fscanf(FILE *fp, const char *fmt, ...);
59 int scanf(const char *fmt, ...);
60 int sscanf(const char *str,const char *fmt, ...);
61 int setvbuf(FILE *fp, char *buf, int mode, size_t size);
62 char * tmpnam(char*s);
64 int remove(const char *fname);
65 int rename(const char *oldname, const char *newname);
66 int fseek(FILE *fp, long off, int origin);
68 void clearerr(FILE *fp);
69 void perror(const char *msg);
71 /* UNIX system stuff */
72 FILE *popen( const char *cmd, const char *mode);
73 int pclose( FILE *fp);