X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4b163f00c236384a3e0f566729c1a79269450fea..14dfad3873691b5ea9fe0170d9c7f6f5c9ea3179:/rsync.h diff --git a/rsync.h b/rsync.h index b4147989..a8463583 100644 --- a/rsync.h +++ b/rsync.h @@ -242,6 +242,9 @@ enum msgcode { #ifdef HAVE_INTTYPES_H # include #endif +#ifdef HAVE_STDINT_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif @@ -374,6 +377,9 @@ enum msgcode { #ifdef ICONV_CONST #undef ICONV_CONST #endif +#ifdef ICONV_OPTION +#undef ICONV_OPTION +#endif #ifdef iconv_t #undef iconv_t #endif @@ -625,7 +631,7 @@ extern int xattrs_ndx; #define F_HL_PREV(f) OPT_EXTRA(f, LEN64_BUMP(f)+inc_recurse)->num /* non-dirs */ #define F_DIR_NODE_P(f) (&OPT_EXTRA(f, LEN64_BUMP(f) \ + DIRNODE_EXTRA_CNT - 1)->num) /* sender dirs */ -#define F_DIR_RELS_P(f) (&OPT_EXTRA(f, LEN64_BUMP(f) + DIRNODE_EXTRA_CNT \ +#define F_DIR_RELNAMES_P(f) (&OPT_EXTRA(f, LEN64_BUMP(f) + DIRNODE_EXTRA_CNT \ + PTR_EXTRA_CNT - 1)->num) /* sender dirs */ #define F_DIR_DEFACL(f) OPT_EXTRA(f, LEN64_BUMP(f))->unum /* receiver dirs */ #define F_DIR_DEV_P(f) (&OPT_EXTRA(f, LEN64_BUMP(f) + ACL_BUMP(f) \ @@ -813,6 +819,11 @@ typedef struct { #define RL_DUMP_COMMENTS (1<<1) #define RL_CONVERT (1<<2) +typedef struct { + char is_dot_dir; + char fname[1]; /* has variable size */ +} relnamecache; + #include "byteorder.h" #include "lib/mdigest.h" #include "lib/wildmatch.h" @@ -841,7 +852,7 @@ typedef struct { #ifdef SUPPORT_XATTRS item_list *xattr; #endif -} statx; +} stat_x; #define ACL_READY(sx) ((sx).acc_acl != NULL) #define XATTR_READY(sx) ((sx).xattr != NULL)