source: trunk/mondo/src/common/libmondo-files-EXT.h @ 900

Last change on this file since 900 was 900, checked in by Bruno Cornec, 14 years ago

Huge patch to introduce low level functions that will bw used everywhere (mr_free, mr_asprintf, ...)
Nearly linking now due to that.

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