Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

tarfs_util.h

Go to the documentation of this file.
00001 
00011 /* ************************************************************************* *
00012  *                                                                           *
00013  *   This program is free software; you can redistribute it and/or modify    *
00014  *   it under the terms of the GNU General Public License as published by    *
00015  *   the Free Software Foundation; either version 2 of the License, or       *
00016  *   (at your option) any later version.                                     *
00017  *                                                                           *
00018  * ************************************************************************* */
00019 
00020 #include <linux/fs.h>
00021 #include <linux/types.h>
00022 #include <linux/errno.h>
00023 #ifndef __TARFS_UTIL_H__
00024 #define __TARFS_UTIL_H__
00025 
00026 
00037 int read_block(struct super_block* s, unsigned long i, void* blok);
00038 
00039 
00047 int is_nullblock(void *blok, unsigned long size);
00048 
00059 int name_comparator(void* a, void* b, int first_length);
00060 
00073 int name_comparator2(void* a, void* b, unsigned int first_length, unsigned int second_length);
00074 
00088 int is_right_prefix(char* dname, unsigned int dsize, char* fname, unsigned int fsize);
00089 
00099 unsigned long oct_to_dec(void* what, unsigned int length);
00100 
00107 int is_octal(char ch);
00108 
00116 unsigned long hcc(unsigned long co, unsigned long cim);
00117 
00124 unsigned int short_name_size(char* name);
00125 
00126 #endif // __TARFS_UTIL_H__
00127 
00128 
00129 
00130 
00131 

Generated on Fri May 23 02:10:44 2003 for TarFS by doxygen1.3