+/* FIXME */
+#include <sys/types.h>
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+typedef int ssize_t;
+#endif
+
+
+#define FILESTAR
+
+#include <stdio.h>
+typedef struct
+{
+#ifdef FILESTAR
+ FILE* InFd;
+#else
+ int InFd;
+#endif
+} istream;
+
+typedef struct
+{
+ FILE* OutFd;
+} ostream;
+
+int my_printf(const char *format, ...);
+int my_fprintf(const char *format, ...);
+int my_sprintf(char *str, const char *format, ...);
+void my_exit(int status);
+int my_fopenr(const char *path, const char *mode, istream *os);
+int my_fopen(const char *path, const char *mode, ostream *os);
+int my_fseek(ostream *stream, long offset, int whence);
+int my_fseekr(istream *stream, long offset, int whence);
+size_t my_fread(void *ptr, size_t size, size_t nmemb, istream *stream);
+size_t my_fwrite(const void *ptr, size_t size, size_t nmemb, ostream *stream);
+int my_fclose(ostream *fp);
+int my_fcloser(istream *fp);
+