[1] | 1 | /* libmondo-files.h
|
---|
[128] | 2 | * $Id: libmondo-files.h 3192 2013-09-25 07:03:25Z bruno $
|
---|
[1] | 3 | */
|
---|
| 4 |
|
---|
| 5 | #include "crcttt.h"
|
---|
| 6 |
|
---|
| 7 |
|
---|
[128] | 8 | unsigned int updcrc(unsigned int crc, unsigned int c);
|
---|
| 9 | unsigned int updcrcr(unsigned int crc, unsigned int c);
|
---|
| 10 | char *calc_checksum_of_file(char *filename);
|
---|
| 11 | long count_lines_in_file(char *filename);
|
---|
| 12 | bool does_file_exist(char *filename);
|
---|
| 13 | void exclude_nonexistent_files(char *inout);
|
---|
| 14 | int figure_out_kernel_path_interactively_if_necessary(char *kernel);
|
---|
| 15 | char *find_home_of_exe(char *fname);
|
---|
| 16 | int get_trackno_from_logfile(char *logfile);
|
---|
| 17 | int grab_percentage_from_last_line_of_file(char *filename);
|
---|
| 18 | char *last_line_of_file(char *filename);
|
---|
[684] | 19 | off_t length_of_file(char *filename);
|
---|
[128] | 20 | int make_checksum_list_file(char *filelist, char *cksumlist,
|
---|
| 21 | char *comppath);
|
---|
| 22 | int make_hole_for_file(char *outfile_fname);
|
---|
| 23 | void make_list_of_files_to_ignore(char *ignorefiles_fname,
|
---|
| 24 | char *filelist_fname,
|
---|
| 25 | char *cklist_fname);
|
---|
| 26 | long noof_lines_that_match_wildcard(char *filelist_fname, char *wildcard);
|
---|
[1647] | 27 | long size_of_all_biggiefiles_K();
|
---|
[128] | 28 | long long space_occupied_by_cd(char *mountpt);
|
---|
| 29 | int whine_if_not_found(char *fname);
|
---|
| 30 | int write_one_liner_data_file(char *fname, char *contents);
|
---|
[1] | 31 |
|
---|
[1647] | 32 | void copy_mondo_and_mindi_stuff_to_scratchdir();
|
---|
[2380] | 33 | void store_netfs_config();
|
---|
[1647] | 34 | void estimate_noof_media_required(long);
|
---|
[128] | 35 | bool is_this_file_compressed(char *);
|
---|
[1] | 36 |
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 |
|
---|
[3192] | 44 | int make_hole_for_dir(char *outdir_fname);
|
---|
[128] | 45 | long size_of_partition_in_mountlist_K(char *tmpdir, char *dev);
|
---|
| 46 | int read_one_liner_data_file(char *fname, char *contents);
|
---|