1 /* 2 * CPDUP.H 3 * 4 * $DragonFly: src/bin/cpdup/cpdup.h,v 1.5 2006/08/18 01:13:51 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 <stddef.h> 17 #include <string.h> 18 #include <errno.h> 19 #include <unistd.h> 20 #include <utime.h> 21 #include <dirent.h> 22 #include <signal.h> 23 #include <pwd.h> 24 #include <assert.h> 25 #ifndef NOMD5 26 #include <md5.h> 27 #endif 28 29 void logstd(const char *ctl, ...); 30 void logerr(const char *ctl, ...); 31 char *mprintf(const char *ctl, ...); 32 void fatal(const char *ctl, ...); 33 char *fextract(FILE *fi, int n, int *pc, int skip); 34 35 int fsmid_check(int64_t fsmid, const char *dpath); 36 void fsmid_flush(void); 37 #ifndef NOMD5 38 int md5_check(const char *spath, const char *dpath); 39 void md5_flush(void); 40 #endif 41 42 extern const char *MD5CacheFile; 43 extern const char *FSMIDCacheFile; 44 45 extern int SummaryOpt; 46 47 extern int64_t CountSourceBytes; 48 extern int64_t CountSourceItems; 49 extern int64_t CountCopiedItems; 50 extern int64_t CountReadBytes; 51 extern int64_t CountWriteBytes; 52 extern int64_t CountRemovedItems; 53 54