diff --git a/dist/include/compat/stdio.h b/dist/include/compat/stdio.h index 46dedfb0..5d884485 100644 --- a/dist/include/compat/stdio.h +++ b/dist/include/compat/stdio.h @@ -20,4 +20,15 @@ int sprintf(char *, const char *, ...); int snprintf(char *, size_t, const char *, ... ); int sscanf(const char *, const char *, ...); +typedef struct FILE FILE; +size_t fread(void* ptr, size_t size, size_t count, FILE* stream); +size_t fwrite(void *ptr, size_t size, size_t count, FILE *stream); +FILE* fopen(const char* filename, const char* mode); +int fclose(FILE* stream); +int fseek(FILE* stream, long int offset, int origin); +long int ftell(FILE* stream); +#define SEEK_SET 0 +#define SEEK_CUR 1 +#define SEEK_END 2 + #endif /* TRUSS_STDIO_H */