4 * $DragonFly: src/bin/cpdup/cpdup.h,v 1.9 2008/04/14 05:40:51 dillon Exp $
32 void logstd(const char *ctl, ...);
33 void logerr(const char *ctl, ...);
34 char *mprintf(const char *ctl, ...);
35 void fatal(const char *ctl, ...);
36 char *fextract(FILE *fi, int n, int *pc, int skip);
38 int fsmid_check(int64_t fsmid, const char *dpath);
39 void fsmid_flush(void);
41 int md5_check(const char *spath, const char *dpath);
45 extern const char *MD5CacheFile;
46 extern const char *FSMIDCacheFile;
48 extern int SummaryOpt;
49 extern int CompressOpt;
50 extern int CurParallel;
52 extern int64_t CountSourceBytes;
53 extern int64_t CountSourceItems;
54 extern int64_t CountCopiedItems;
55 extern int64_t CountSourceReadBytes;
56 extern int64_t CountTargetReadBytes;
57 extern int64_t CountWriteBytes;
58 extern int64_t CountRemovedItems;
61 extern pthread_mutex_t MasterMutex;
65 void *debug_malloc(size_t bytes, const char *file, int line);
66 void debug_free(void *ptr);
68 #define malloc(bytes) debug_malloc(bytes, __FILE__, __LINE__)
69 #define free(ptr) debug_free(ptr)