source: MondoRescue/branches/2.2.8/mondo/src/common/libmondo-files.h@ 2053

Last change on this file since 2053 was 2053, checked in by Bruno Cornec, 15 years ago

register-pid is gone

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1/* libmondo-files.h
2 * $Id: libmondo-files.h 2053 2008-10-23 13:16:34Z bruno $
3 */
4
5#include "crcttt.h"
6
7
8unsigned int updcrc(unsigned int crc, unsigned int c);
9unsigned int updcrcr(unsigned int crc, unsigned int c);
10char *calc_checksum_of_file(char *filename);
11char *calc_file_ugly_minichecksum(char *curr_fname);
12char *calc_file_ugly_minichecksum(char *curr_fname);
13long count_lines_in_file(char *filename);
14bool does_file_exist(char *filename);
15void exclude_nonexistent_files(char *inout);
16int figure_out_kernel_path_interactively_if_necessary(char *kernel);
17char *find_home_of_exe(char *fname);
18int get_trackno_from_logfile(char *logfile);
19int grab_percentage_from_last_line_of_file(char *filename);
20char *last_line_of_file(char *filename);
21off_t length_of_file(char *filename);
22int make_checksum_list_file(char *filelist, char *cksumlist,
23 char *comppath);
24int make_hole_for_file(char *outfile_fname);
25void make_list_of_files_to_ignore(char *ignorefiles_fname,
26 char *filelist_fname,
27 char *cklist_fname);
28long noof_lines_that_match_wildcard(char *filelist_fname, char *wildcard);
29long size_of_all_biggiefiles_K();
30long long space_occupied_by_cd(char *mountpt);
31int whine_if_not_found(char *fname);
32int write_one_liner_data_file(char *fname, char *contents);
33
34void copy_mondo_and_mindi_stuff_to_scratchdir();
35void store_nfs_config();
36void estimate_noof_media_required(long);
37bool is_this_file_compressed(char *);
38
39
40
41
42
43
44
45
46int make_hole_for_dir(char *outdir_fname);
47long size_of_partition_in_mountlist_K(char *tmpdir, char *dev);
48int make_grub_install_scriptlet(char *outfile);
49
50int read_one_liner_data_file(char *fname, char *contents);
51int mode_of_file(char *fname);
Note: See TracBrowser for help on using the repository browser.