| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
| |
The checksum_test.c showed it makes more sense to put the checksum length
constants into checksum.c where they are most useful.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Unfortunately GenerateExportHeader is broken for C in older versions of cmake
that are still widely deployed, including on travis' osx build environment.
Add manual librsync_export.h that should work for posix and win32 platforms,
and remove .gitignore entry for it. Comment out GenerateExportHeader stuff
from CMakeLists.txt.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In CMakeLists.txt use cmake's GenerateExportHeader support to generate
src/librsync_export.h and add it as a header to install. Set
"C_VISIBILITY_PRESET hidden" target property for rsync to hide all
not-explicitly-exported symbols. Do some minor indent tidying.
Add librsync_export.h to .gitignore and remove obsolete
librsync-config.h.
In librsync.h include librsync_export.h and explicitly export all
functions. Ensure it is correctly formated using "make tidyc".
In rdiff.c remove all includes and references to anything not
explicitly exported by librsync. This included usage of not exported
logging functions rs_error() and rs_log(). Update rdiff_usage() to
support formatted args with nicer output and use it everywhere we
report bad arguments instead of rs_error(). Always use exit() instead
of return for syntax errors to give neater termination output. Remove
PROGRAM define and just use "rdiff" instead.
In fileutil.[hc] move declarations for rs_file_open() and
rs_file_close() to librsync.h and explicitly export them. They are
used by rdiff.
In sumset.h move declaration of rs_signature_log_stats() to
librsync.h, and explicitly export it. It is used by rdiff.
In delta.c explicitly export rs_roll_paranoia and add it as an extern
in librsync.h. This is used by rdiff.
In sumset.c explicitly export RS_MD4_SUM_LENGTH and
RS_BLAKE2_SUM_LENGTH which are extern consts in librsync.h.
In whole.c explicitly export rs_inbuflen and rs_outbuflen which are
extern vars in librsync.h.
In version.c explicitly export rs_librsync_version which is an extern
const in librsync.h.
|
| |
|
|\
| |
| | |
Fix #47 Updated RPM spec file for 2.0.2
|
| | |
|
|/
|
|
|
|
| |
Remove CMakeLists.txt prototab.[ch] generation and perl discovery.
Update .gitignore to not ignore prototab.[ch]
|
|
|
|
|
|
|
| |
Unfortunately indent's comment reformating with -fca is not
repeatable, giving different results with repeated runs over the same
input. So don't use. If you really want to reformat comments use the
'make tidyc' target instead.
|
| |
|
|
|
|
|
| |
It does this by hiding/restoring the enclosing brackets before/after
calling indent.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Change tidy target to add the following indent arguments; -l120 -lc80
-fca -T rs_result. Remove excluding blake2 targets now they are in
their own subdir. Merge sed post-processing into a single sed command.
Add tidyc target to reformat code and comments using tidyc.
Move LIBB2 stuff together.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
When cross compiling we cannot check for printf "%zu" size_t formating
support - instead assume it.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
By default, CMake assumes that the project is using both C and C++. By
explicitly passing 'C' as argument of the project() macro, we tell CMake
that only C is used, which prevents CMake from erroring out if a C++
compiler doesn't exist.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Currently the provided reference implementation seems to be
significantly faster.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add cmake/Findlibb2.cmake cmake module for finding libb2.
Update CMakeLists.txt to look for libb2 and use it if found, falling
back to the included reference implementation if it can't be found.
Move blake2 sources into src/blake2/ so we can avoid finding the
included blake2.h header when using libb2 instead.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Add/fix support for _fseeki64(), fstat64(), and _fstati64(). Make use
of fseeko64(), fopen64(), and fstat64() depend on SIZEOF_OFF_T < 8,
since they can exist on systems where fseeko(), fopen(), and fstat()
already support large files.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Remove librsync-config.h.cmake and all the relevant entries for it in
CMakeLists.txt.
Remove RS_LONG_T stuff from CMakeLists.txt, and in librsync.h use C99
stdint.h types uint8_t for rs_byte_t and intmax_t for rs_long_t.
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Fix tests that referred to old hashtable attributes. Add tests for
rs_build_hash_table() and rs_signature_find_match().
|
| |\ \
| | |/ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In sumset.[hc] remove now unused structures for the old hashtable and
add supporting code/methods for the new hashtable.
Change delta.c to use the new rs_signature_find_match() method.
Remove now redundant search.[hc].
|
| |\ \
| | |/ |
|
| | |
| | |
| | |
| | |
| | | |
Nothing uses this yet, but it should be a neater solution for the
signature matching than the current implementation.
|
| |/
|/|
| |
| |
| |
| |
| | |
Formats using the linux style with indent 4 instead of tabs.
This also does some tiny post-processing using sed to avoid having to
specify all userdefined types in -T arguments.
|
|\ \
| |/
|/| |
Don't call realloc for every block when reading the signature file.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Test results:
rdiff -I 524288 -O 131072 -s delta big_file.sig big_file big_file.delta
librsync: loadsig statistics: signature[2099323 blocks, 8192 bytes per block]
speed[40.0 MB (0.3 MB/s) in, 0.0 MB (0.0 MB/s) out, 150 sec]
After:
rdiff -I 524288 -O 131072 -s delta big_file.sig big_file big_file.delta
librsync: loadsig statistics: signature[2099323 blocks, 8192 bytes per block]
speed[40.0 MB (40.0 MB/s) in, 0.0 MB (0.0 MB/s) out, 1 sec]
|
| |
| |
| |
| | |
This ensures the rollsum_test is compiled when doing "make check".
|
|/ |
|
| |
|
|
|
|
| |
build when POPT is not found (skip building rdiff).
|
| |
|