From: Leandro Lucarella Date: Thu, 8 Apr 2004 20:40:42 +0000 (+0000) Subject: Se agregan cabeceras GPL y descripcion del archivo en doxygen. X-Git-Tag: svn_import_r684~609 X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/commitdiff_plain/54219fe4a06be132b4f4f7448b7621647fe31ce2?hp=90781e95d22ac07ccc263ce5bbca7d7d878c96b1 Se agregan cabeceras GPL y descripcion del archivo en doxygen. --- diff --git a/emufs/emufs.c b/emufs/emufs.c index 698f955..28fc248 100644 --- a/emufs/emufs.c +++ b/emufs/emufs.c @@ -1,3 +1,43 @@ +/* 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 + * Ricardo Markiewicz + * Leandro Lucarella + *---------------------------------------------------------------------------- + * + * $Id: command.cpp 220 2003-11-19 23:10:40Z luca $ + * + */ + +/** \file + * + * Estructura general de un archivo abstracto de emufs. + * + * Implementación de la estructura abstracta que representa cualquiera de los + * tipos de archivo implementados. Se incluyen funciones tipo factory + * para crear un archivo, abrirlo y destruirlo. + * + */ + #include "emufs.h" #include "tipo3.h" diff --git a/emufs/emufs.h b/emufs/emufs.h index 81d62b3..7cc89e0 100644 --- a/emufs/emufs.h +++ b/emufs/emufs.h @@ -1,3 +1,42 @@ +/* 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 + * Ricardo Markiewicz + * Leandro Lucarella + *---------------------------------------------------------------------------- + * + * $Id: command.cpp 220 2003-11-19 23:10:40Z luca $ + * + */ + +/** \file + * + * Estructura general de un archivo abstracto de emufs. + * + * Interfaz de la estructura abstracta que representa cualquiera de los tipos + * de archivo implementados. + * + */ + #ifndef _EMUFS_H_ #define _EMUFS_H_ @@ -76,4 +115,4 @@ int emufs_destruir(EMUFS *e); int ver_archivo_FS(EMUFS *emu); -#endif +#endif /* _EMUFS_H_ */ diff --git a/emufs/tipo3.c b/emufs/tipo3.c index 7837aa8..ace5cbd 100644 --- a/emufs/tipo3.c +++ b/emufs/tipo3.c @@ -1,4 +1,39 @@ -/* archivo con bloques parametrizados y registro constante */ +/* 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: command.cpp 220 2003-11-19 23:10:40Z luca $ + * + */ + +/** \file + * + * Archivo con bloques y registros de longitud parametrizada. + * + * Implementación del archivo con bloques y registros de longitud + * parametrizada. + * + */ #include "tipo3.h" diff --git a/emufs/tipo3.h b/emufs/tipo3.h index 47b2568..7c5bfe7 100644 --- a/emufs/tipo3.h +++ b/emufs/tipo3.h @@ -1,20 +1,58 @@ +/* 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: command.cpp 220 2003-11-19 23:10:40Z luca $ + * + */ + +/** \file + * + * Archivo con bloques y registros de longitud parametrizada. + * + * Implementación del archivo con bloques y registros de longitud + * parametrizada. + * + */ + #ifndef _PARAM_CTE_H_ #define _PARAM_CTE_H_ + +#include "emufs.h" #include #include #include #include -#include "emufs.h" -typedef struct block_free_t{ +typedef struct block_free_t { int block; int free_space; -}BLOCK_FREE_T; +} BLOCK_FREE_T; -typedef struct block_reg_t{ +typedef struct block_reg_t { int block; long int id_reg; -}BLOCK_REG_T; +} BLOCK_REG_T; int leer_registro(EMUFS *, int , void *, unsigned long); @@ -33,4 +71,5 @@ int get_id(EMUFS *); int grabar_bloque(EMUFS *, void *, int); int borrar_registro(EMUFS*, int, int); -#endif + +#endif /* _PARAM_CTE_H_ */ diff --git a/emufs/tipo3_main.c b/emufs/tipo3_main.c index bdf5787..5ec945d 100644 --- a/emufs/tipo3_main.c +++ b/emufs/tipo3_main.c @@ -1,3 +1,37 @@ +/* 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: command.cpp 220 2003-11-19 23:10:40Z luca $ + * + */ + +/** \file + * + * Prueba de archivo \ref tipo3.h "tipo3". + * + */ + #include #include #include "emufs.h"