Merge from vendor branch SENDMAIL:
[dragonfly.git] / bin / cpdup / cpdup.h
1 /*
2  * CPDUP.H
3  *
4  * $DragonFly: src/bin/cpdup/cpdup.h,v 1.3 2006/04/25 21:30:45 dillon Exp $
5  */
6
7 #include <sys/param.h>
8 #include <sys/time.h>
9 #include <sys/stat.h>
10 #include <sys/file.h>
11
12 #include <fcntl.h>
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <stdarg.h>
16 #include <string.h>
17 #include <errno.h>
18 #include <unistd.h>
19 #include <utime.h>
20 #include <dirent.h>
21 #include <signal.h>
22 #include <pwd.h>
23 #include <assert.h>
24 #include <md5.h>
25
26 void logstd(const char *ctl, ...);
27 void logerr(const char *ctl, ...);
28 char *mprintf(const char *ctl, ...);
29 void fatal(const char *ctl, ...);
30 char *fextract(FILE *fi, int n, int *pc, int skip);
31
32 int fsmid_check(int64_t fsmid, const char *dpath);
33 void fsmid_flush(void);
34 int md5_check(const char *spath, const char *dpath);
35 void md5_flush(void);
36
37 extern const char *MD5CacheFile;
38 extern const char *FSMIDCacheFile;
39
40 extern int SummaryOpt;
41
42 extern int64_t CountSourceBytes;
43 extern int64_t CountSourceItems;
44 extern int64_t CountCopiedItems;
45 extern int64_t CountReadBytes;
46 extern int64_t CountWriteBytes;
47 extern int64_t CountRemovedItems;
48