X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/60505ae8ce77483ea58c6829c20de89f1c01afaf..a7a781b6b1a260c882ad779a9ecdaa517d1a6846:/emufs/tipo3.h diff --git a/emufs/tipo3.h b/emufs/tipo3.h index 47b2568..9b64976 100644 --- a/emufs/tipo3.h +++ b/emufs/tipo3.h @@ -1,36 +1,67 @@ -#ifndef _PARAM_CTE_H_ -#define _PARAM_CTE_H_ +/* vim: set noexpandtab tabstop=4 shiftwidth=4: + *---------------------------------------------------------------------------- + * emufs + *---------------------------------------------------------------------------- + * This file is part of emufs. + * + * emufs is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * emufs is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along + * with emufs; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + *---------------------------------------------------------------------------- + * Creado: mié mar 31 17:26:46 ART 2004 + * Autores: Nicolás Dimov + *---------------------------------------------------------------------------- + * + * $Id$ + * + */ + +/** \file + * + * Archivo con bloques y registros de longitud parametrizada. + * + * Implementación del archivo con bloques y registros de longitud + * parametrizada. + * + */ + +#ifndef _EMUFS_TIPO3_H_ +#define _EMUFS_TIPO3_H_ + #include #include #include #include #include "emufs.h" +#include "did.h" +#include "idx.h" +#include "fsc.h" -typedef struct block_free_t{ - int block; - int free_space; -}BLOCK_FREE_T; - -typedef struct block_reg_t{ - int block; - long int id_reg; -}BLOCK_REG_T; +int emufs_tipo3_leer_registro(EMUFS *, int , void *, unsigned long); -int leer_registro(EMUFS *, int , void *, unsigned long); +int emufs_tipo3_leer_bloque(EMUFS *, int , void *); -int leer_bloque(EMUFS *, int , void *); +int emufs_tipo3_grabar_registro(EMUFS *, void *, unsigned long ); -int grabar_registro(EMUFS *, void *, unsigned long ); +int emufs_tipo3_grabar_bloque(EMUFS *, void *, int); -int existe_registro(EMUFS *, int); +int emufs_tipo3_get_id(EMUFS *); -int buscar_registro(EMUFS *, int); +int emufs_tipo3_buscar_registro(EMUFS *, int); -int buscar_lugar(EMUFS *, unsigned long , int *); +int emufs_tipo3_buscar_lugar(EMUFS *, unsigned long , int *); -int get_id(EMUFS *); +int emufs_tipo3_borrar_registro(EMUFS*, int, int); -int grabar_bloque(EMUFS *, void *, int); -int borrar_registro(EMUFS*, int, int); -#endif +#endif /* _EMUFS_TIPO3_H_ */