|
version 1.2, 2011/05/09 14:36:33
|
version 1.5, 2013/05/30 09:24:18
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 47 SUCH DAMAGE.
|
Line 47 SUCH DAMAGE.
|
| #define __DEFS_H |
#define __DEFS_H |
| |
|
| |
|
| |
#ifndef STRSIZ |
| #define STRSIZ 256 |
#define STRSIZ 256 |
| |
#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 69 struct tagPiece {
|
Line 90 struct tagPiece {
|
| }; |
}; |
| |
|
| |
|
| inline void syncSetErr(int eno, char *estr, ...); | void sync_SetErr(int eno, char *estr, ...); |
| |
|
| |
|
| |
|