X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/58d433ab3cbf7dd3010a0944dc579756dfd89ad7..d9bea2ddd44fdcfbaf6f153f72d944603560036c:/rsync.h diff --git a/rsync.h b/rsync.h index 7592c89e..9c326e13 100644 --- a/rsync.h +++ b/rsync.h @@ -24,10 +24,12 @@ #define BACKUP_SUFFIX "~" /* update this if you make incompatible changes */ -#define PROTOCOL_VERSION 9 +#define PROTOCOL_VERSION 10 +#define MIN_PROTOCOL_VERSION 10 /* block size to write files in */ #define WRITE_BLOCK_SIZE (32*1024) +#define MAX_MAP_SIZE (4*1024*1024) #define BLOCKING_TIMEOUT 10 @@ -242,3 +244,5 @@ extern int errno; #ifndef EWOULDBLOCK #define EWOULDBLOCK EAGAIN #endif + +#define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode))