Diff for /libaitsync/inc/defs.h between versions 1.3 and 1.4

version 1.3, 2012/07/22 22:09:47 version 1.4, 2012/11/13 14:19:39
Line 51  SUCH DAMAGE. Line 51  SUCH DAMAGE.
 #define STRSIZ          256  #define STRSIZ          256
 #endif  #endif
   
   #define DIFF_D0         '='
   #define DIFF_D1         '-'
   #define DIFF_D2         '+'
   
   #define CHUNK_MAX       4096
   #define DLTSYNC_MAGIC   0xDEBAC0DA
   #define SIGSYNC_MAGIC   0xDEADBEEF
   
 #define TABLESIZ        (1 << 16)  #define TABLESIZ        (1 << 16)
 #define NULL_TAG        (-1)  #define NULL_TAG        (-1)
   
 #define GETTAG2(s1, s2) (((s1) + (s2)) & 0xFFFF)  #define GETTAG2(s1, s2) (((s1) + (s2)) & 0xFFFF)
 #define GETTAG(sum)     GETTAG2((sum) & 0xFFFF, (sum) >> 16)  #define GETTAG(sum)     GETTAG2((sum) & 0xFFFF, (sum) >> 16)
   
#define SETERR        syncSetErr(errno, strerror(errno));#define LOGERR          sync_SetErr(errno, strerror(errno))
   
   
   typedef struct tagSyncChunk {
           u_int sc_magic;
           u_long sc_id;
           off_t sc_off;
           size_t sc_len;
           u_int sc_roll;
           u_char sc_cksum[MD5_DIGEST_LENGTH];
   } sync_chunk_t;
   
   
 typedef struct tagSyncTag {  typedef struct tagSyncTag {
         u_long st_id;          u_long st_id;
         u_short st_tag;          u_short st_tag;
Line 72  struct tagPiece { Line 90  struct tagPiece {
 };  };
   
   
inline void syncSetErr(int eno, char *estr, ...);inline void sync_SetErr(int eno, char *estr, ...);
   
   
   

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>