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