add simple file benchmark for users.
[repair.git] / Repair / RepairCompiler / MCC / CRuntime / file.h
index 1dc343620e45d8f6719968badf6b40400d3fb370..9c710a1257c9b9ce06c1743e3966b057dbea3158 100755 (executable)
@@ -1,5 +1,7 @@
 #ifndef FILE_H
 #define FILE_H
+#define bool int
+
 
 #define BLOCKSIZE 8192
 #define NUMBLOCK 1024
@@ -84,15 +86,15 @@ struct block * mountdisk(char *filename);
 void unmountdisk(struct block *vptr);
 void closefile(struct block *ptr, int fd);
 bool writefile(struct block *ptr, int fd, char *s);
-int writefile(struct block *ptr, int fd, char *s, int len);
+int writefile2(struct block *ptr, int fd, char *s, int len);
 char readfile(struct block *ptr, int fd);
-int readfile(struct block *ptr, int fd, char *buf, int len);
+int readfile2(struct block *ptr, int fd, char *buf, int len);
 int openfile(struct block *ptr, char *filename);
 
 void printdirectory(struct block *ptr);
 void printfile(char *filename, struct block *ptr);
 void printinodeblock(struct block* ptr);
-
+unsigned long selfcheck2(struct block* d);
 
 #define MAXFILES 300
 struct filedesc {
@@ -101,4 +103,3 @@ struct filedesc {
   bool used;
 };
 #endif
-