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