#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "emufs.h"
typedef struct block_free_t{
typedef struct block_reg_t{
int block;
- int id_reg;
+ long int id_reg;
}BLOCK_REG_T;
-int leer_registro(EMUFS *emu, int ID, void *, unsigned long tam);
+int leer_registro(EMUFS *, int , void *, unsigned long);
-int leer_bloque(EMUFS *emu, int ID, void *);
+int leer_bloque(EMUFS *, int , void *);
-int grabar_registro(EMUFS *emu, void *, unsigned long tam);
+int grabar_registro(EMUFS *, void *, unsigned long );
-int existe_registro(EMUFS *emu, int ID);
+int existe_registro(EMUFS *, int);
-int buscar_registro(EMUFS *emu, int ID);
+int buscar_registro(EMUFS *, int);
-int buscar_lugar(EMUFS *emu, unsigned long tam, int *fs);
+int buscar_lugar(EMUFS *, unsigned long , int *);
-int get_id(EMUFS *emu);
+int get_id(EMUFS *);
-int grabar_bloque(EMUFS *emu, void *ptr, int num);
+int grabar_bloque(EMUFS *, void *, int);
+
+int borrar_registro(EMUFS*, int, int);
#endif