Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for non-mmap operation
[rsync/rsync.git]
/
rsync.h
diff --git
a/rsync.h
b/rsync.h
index
a741277
..
9c326e1
100644
(file)
--- a/
rsync.h
+++ b/
rsync.h
@@
-24,10
+24,14
@@
#define BACKUP_SUFFIX "~"
/* update this if you make incompatible changes */
#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)
/* block size to write files in */
#define WRITE_BLOCK_SIZE (32*1024)
+#define MAX_MAP_SIZE (4*1024*1024)
+
+#define BLOCKING_TIMEOUT 10
#include "config.h"
#include "config.h"
@@
-75,6
+79,14
@@
#include <sys/stat.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
+
#include <signal.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#include <signal.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
@@
-228,3
+240,9
@@
extern int errno;
#endif
#define SIGNAL_CAST (RETSIGTYPE (*)())
#endif
#define SIGNAL_CAST (RETSIGTYPE (*)())
+
+#ifndef EWOULDBLOCK
+#define EWOULDBLOCK EAGAIN
+#endif
+
+#define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode))