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