#define MB_WEIGHT 32
#define MB_CLASS4 64
+/* FIXME */
+#include <sys/types.h>
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+typedef int ssize_t;
+#endif
+
+
+#define FILESTAR
+
#include <stdio.h>
+#ifndef __cplusplus
typedef struct
{
+#ifdef FILESTAR
FILE* InFd;
+#else
+ int InFd;
+#endif
} istream;
+#endif
+
typedef struct
{
FILE* OutFd;
} ostream;
-//int my_open(char *filename);
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);
-//ostream *my_fopen(const char *path, const char *mode);
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);