28 * See ./mklinux script
30 * This is a horrible hack. lchmod also seems to be missing
31 * on the Debian system I am testing compatibility on (which will
32 * break the symlink handling code), so not sure what to do about
39 #define __printflike(a, b)
40 #define __printf0like(a, b)
45 #define lchmod chmod /* horrible hack */
47 size_t strlcpy(char *dst, const char *src, size_t size);
51 #define VERSION "1.22"
52 #define AUTHORS "Matt Dillon, Dima Ruban, & Oliver Fromme"
54 void logstd(const char *ctl, ...) __printflike(1, 2);
55 void logerr(const char *ctl, ...) __printflike(1, 2);
56 char *mprintf(const char *ctl, ...) __printflike(1, 2);
57 void fatal(const char *ctl, ...) __dead2 __printf0like(1, 2);
58 char *fextract(FILE *fi, int n, int *pc, int skip);
60 int16_t hc_bswap16(int16_t var);
61 int32_t hc_bswap32(int32_t var);
62 int64_t hc_bswap64(int64_t var);
65 int md5_check(const char *spath, const char *dpath);
69 extern const char *UseCpFile;
70 extern const char *MD5CacheFile;
71 extern const char *UseHLPath;
73 extern int AskConfirmation;
77 extern int VerboseOpt;
78 extern int DirShowOpt;
80 extern int NotForRealOpt;
81 extern int NoRemoveOpt;
84 extern int SummaryOpt;
85 extern int CompressOpt;
86 extern int ReadOnlyOpt;
87 extern int DstRootPrivs;
88 extern int ValidateOpt;
91 extern const char *ssh_argv[];
93 extern int64_t CountSourceBytes;
94 extern int64_t CountSourceItems;
95 extern int64_t CountCopiedItems;
96 extern int64_t CountSourceReadBytes;
97 extern int64_t CountTargetReadBytes;
98 extern int64_t CountWriteBytes;
99 extern int64_t CountRemovedItems;
100 extern int64_t CountLinkedItems;
103 void *debug_malloc(size_t bytes, const char *file, int line);
104 void debug_free(void *ptr);
106 #define malloc(bytes) debug_malloc(bytes, __FILE__, __LINE__)
107 #define free(ptr) debug_free(ptr)