version 1.28, 2019/04/04 04:19:54 |
version 1.29, 2019/05/08 20:00:25 |
|
|
int sender; /* --sender */ |
int sender; /* --sender */ |
int server; /* --server */ |
int server; /* --server */ |
int recursive; /* -r */ |
int recursive; /* -r */ |
int verbose; /* -v */ |
|
int dry_run; /* -n */ |
int dry_run; /* -n */ |
int preserve_times; /* -t */ |
int preserve_times; /* -t */ |
int preserve_perms; /* -p */ |
int preserve_perms; /* -p */ |
|
|
struct download; |
struct download; |
struct upload; |
struct upload; |
|
|
|
extern int verbose; |
|
|
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) |
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) |
|
|
#define LOG0(_sess, _fmt, ...) \ |
#define LOG0(_fmt, ...) \ |
rsync_log((_sess), __FILE__, __LINE__, -1, (_fmt), ##__VA_ARGS__) |
rsync_log(__FILE__, __LINE__, -1, (_fmt), ##__VA_ARGS__) |
#define LOG1(_sess, _fmt, ...) \ |
#define LOG1(_fmt, ...) \ |
rsync_log((_sess), __FILE__, __LINE__, 0, (_fmt), ##__VA_ARGS__) |
rsync_log(__FILE__, __LINE__, 0, (_fmt), ##__VA_ARGS__) |
#define LOG2(_sess, _fmt, ...) \ |
#define LOG2(_fmt, ...) \ |
rsync_log((_sess), __FILE__, __LINE__, 1, (_fmt), ##__VA_ARGS__) |
rsync_log(__FILE__, __LINE__, 1, (_fmt), ##__VA_ARGS__) |
#define LOG3(_sess, _fmt, ...) \ |
#define LOG3(_fmt, ...) \ |
rsync_log((_sess), __FILE__, __LINE__, 2, (_fmt), ##__VA_ARGS__) |
rsync_log(__FILE__, __LINE__, 2, (_fmt), ##__VA_ARGS__) |
#define LOG4(_sess, _fmt, ...) \ |
#define LOG4(_fmt, ...) \ |
rsync_log((_sess), __FILE__, __LINE__, 3, (_fmt), ##__VA_ARGS__) |
rsync_log(__FILE__, __LINE__, 3, (_fmt), ##__VA_ARGS__) |
#define ERRX1(_sess, _fmt, ...) \ |
#define ERRX1(_fmt, ...) \ |
rsync_errx1((_sess), __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
rsync_errx1(__FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
#define WARNX(_sess, _fmt, ...) \ |
#define WARNX(_fmt, ...) \ |
rsync_warnx((_sess), __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
rsync_warnx(__FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
#define WARN(_sess, _fmt, ...) \ |
#define WARN(_fmt, ...) \ |
rsync_warn((_sess), 0, __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
rsync_warn(0, __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
#define WARN1(_sess, _fmt, ...) \ |
#define WARN1(_fmt, ...) \ |
rsync_warn((_sess), 1, __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
rsync_warn(1, __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
#define WARN2(_sess, _fmt, ...) \ |
#define WARN2(_fmt, ...) \ |
rsync_warn((_sess), 2, __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
rsync_warn(2, __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
#define ERR(_sess, _fmt, ...) \ |
#define ERR(_fmt, ...) \ |
rsync_err((_sess), __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
rsync_err(__FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
#define ERRX(_sess, _fmt, ...) \ |
#define ERRX(_fmt, ...) \ |
rsync_errx((_sess), __FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
rsync_errx(__FILE__, __LINE__, (_fmt), ##__VA_ARGS__) |
|
|
void rsync_log(struct sess *, |
void rsync_log(const char *, size_t, int, const char *, ...) |
const char *, size_t, int, const char *, ...) |
|
__attribute__((format(printf, 5, 6))); |
|
void rsync_warnx1(struct sess *, |
|
const char *, size_t, const char *, ...) |
|
__attribute__((format(printf, 4, 5))); |
__attribute__((format(printf, 4, 5))); |
void rsync_warn(struct sess *, int, |
void rsync_warnx1(const char *, size_t, const char *, ...) |
const char *, size_t, const char *, ...) |
__attribute__((format(printf, 3, 4))); |
__attribute__((format(printf, 5, 6))); |
void rsync_warn(int, const char *, size_t, const char *, ...) |
void rsync_warnx(struct sess *, const char *, |
|
size_t, const char *, ...) |
|
__attribute__((format(printf, 4, 5))); |
__attribute__((format(printf, 4, 5))); |
void rsync_err(struct sess *, const char *, |
void rsync_warnx(const char *, size_t, const char *, ...) |
size_t, const char *, ...) |
__attribute__((format(printf, 3, 4))); |
__attribute__((format(printf, 4, 5))); |
void rsync_err(const char *, size_t, const char *, ...) |
void rsync_errx(struct sess *, const char *, |
__attribute__((format(printf, 3, 4))); |
size_t, const char *, ...) |
void rsync_errx(const char *, size_t, const char *, ...) |
__attribute__((format(printf, 4, 5))); |
__attribute__((format(printf, 3, 4))); |
void rsync_errx1(struct sess *, const char *, |
void rsync_errx1(const char *, size_t, const char *, ...) |
size_t, const char *, ...) |
__attribute__((format(printf, 3, 4))); |
__attribute__((format(printf, 4, 5))); |
|
|
|
int flist_del(struct sess *, int, |
int flist_del(struct sess *, int, |
const struct flist *, size_t); |
const struct flist *, size_t); |