4 * $DragonFly: src/bin/cpdup/cpdup.h,v 1.9 2008/04/14 05:40:51 dillon Exp $
31 /* Solaris needs <strings.h> for bzero(), bcopy() and bcmp(). */
35 #include "compat_sun.h"
39 #define __printflike(a,b)
40 #define __printf0like(a,b)
45 void logstd(const char *ctl, ...) __printflike(1, 2);
46 void logerr(const char *ctl, ...) __printflike(1, 2);
47 char *mprintf(const char *ctl, ...) __printflike(1, 2);
48 void fatal(const char *ctl, ...) __printf0like(1, 2);
49 char *fextract(FILE *fi, int n, int *pc, int skip);
51 int16_t hc_bswap16(int16_t var);
52 int32_t hc_bswap32(int32_t var);
53 int64_t hc_bswap64(int64_t var);
55 int fsmid_check(int64_t fsmid, const char *dpath);
56 void fsmid_flush(void);
58 int md5_check(const char *spath, const char *dpath);
62 extern const char *UseCpFile;
63 extern const char *MD5CacheFile;
64 extern const char *FSMIDCacheFile;
65 extern const char *UseHLPath;
67 extern int AskConfirmation;
71 extern int VerboseOpt;
72 extern int DirShowOpt;
74 extern int NotForRealOpt;
75 extern int NoRemoveOpt;
77 extern int UseFSMIDOpt;
79 extern int SummaryOpt;
80 extern int CompressOpt;
81 extern int ReadOnlyOpt;
82 extern int DstRootPrivs;
83 extern int ValidateOpt;
86 extern const char *ssh_argv[];
88 extern int64_t CountSourceBytes;
89 extern int64_t CountSourceItems;
90 extern int64_t CountCopiedItems;
91 extern int64_t CountSourceReadBytes;
92 extern int64_t CountTargetReadBytes;
93 extern int64_t CountWriteBytes;
94 extern int64_t CountRemovedItems;
95 extern int64_t CountLinkedItems;
98 void *debug_malloc(size_t bytes, const char *file, int line);
99 void debug_free(void *ptr);
101 #define malloc(bytes) debug_malloc(bytes, __FILE__, __LINE__)
102 #define free(ptr) debug_free(ptr)