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
cleanup code a bit
[rsync/rsync.git]
/
rsync.h
diff --git
a/rsync.h
b/rsync.h
index
e520640
..
62c0346
100644
(file)
--- a/
rsync.h
+++ b/
rsync.h
@@
-21,6
+21,9
@@
#define RSYNC_RSH_ENV "RSYNC_RSH"
#define RSYNC_NAME "rsync"
#define RSYNC_RSH_ENV "RSYNC_RSH"
#define RSYNC_NAME "rsync"
+#define RSYNCD_CONF "/etc/rsyncd.conf"
+#define RSYNCD_LOG "/var/adm/rsyncd.log"
+
#define BACKUP_SUFFIX "~"
/* a non-zero CHAR_OFFSET makes the rolling sum stronger, but is
#define BACKUP_SUFFIX "~"
/* a non-zero CHAR_OFFSET makes the rolling sum stronger, but is
@@
-50,6
+53,8
@@
#define CHUNK_SIZE (32*1024)
#define MAX_MAP_SIZE (4*1024*1024)
#define CHUNK_SIZE (32*1024)
#define MAX_MAP_SIZE (4*1024*1024)
+#define MAX_ARGS 100
+
#define BLOCKING_TIMEOUT 10
#define FERROR 1
#define BLOCKING_TIMEOUT 10
#define FERROR 1
@@
-68,6
+73,7
@@
#include <unistd.h>
#endif
#include <stdio.h>
#include <unistd.h>
#endif
#include <stdio.h>
+#include <stddef.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
@@
-170,6
+176,9
@@
#include <grp.h>
#include <stdarg.h>
#include <grp.h>
#include <stdarg.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
#ifndef S_IFLNK
#define S_IFLNK 0120000
#ifndef S_IFLNK
#define S_IFLNK 0120000
@@
-179,6
+188,8
@@
#define S_ISLNK(mode) (((mode) & S_IFLNK) == S_IFLNK)
#endif
#define S_ISLNK(mode) (((mode) & S_IFLNK) == S_IFLNK)
#endif
+#define BOOL int
+
#ifndef uchar
#define uchar unsigned char
#endif
#ifndef uchar
#define uchar unsigned char
#endif