<commit_before>.\"
.\" librsync -- dynamic caching and delta update in HTTP
.\" $Id$
.\" 
.\" Copyright (C) 2000, 2001 by <NAME> <<EMAIL>>
.\" 
.\" This program is free software; you can redistribute it and/or
.\" modify it under the terms of the GNU Lesser General Public License
.\" as published by the Free Software Foundation; either version 2.1 of
.\" the License, or (at your option) any later version.
.\" 
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
.\" Lesser General Public License for more details.
.\" 
.\" You should have received a copy of the GNU Lesser General Public
.\" License along with this program; if not, write to the Free Software
.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
.\"
.TH librsync 3 "$Date$" "<NAME>"
.SH NAME
librsync \- library for delta compression of streams
.SH SYNOPSYS
.nf 
.B #include <stdio.h>
.B #include <stdlib.h>

.B #include <rsync.h>

.B cc ... -lrsync

.SH DESCRIPTION
The \fBlibrsync\fP library implements network delta-compression of
streams and files.  The algorithm is similar to that used in the
\fBrsync(1)\fP and \fBxdelta(2)\fP programs, but specialized for
transfer of arbitrary-length octet streams.  Unlike most diff
programs, \fBlibrsync\fP does not require access to both of the files
on the same machine, but rather only a short ``signature'' of the old
file and the complete contents of the new file.
.PP
The canonical use of \fBlibrsync\fP is in the \fBrproxy(8)\fP
reference implementation of the \fIrsync\fP proposed extension to
HTTP.  It may be useful to other programs which wish to do
delta-compression in HTTP, or within their own protocol.  There are
HTTP-specific utility functions within \fBlibrsync\fP, but they need
not be used.
.PP
A number of tools such as \fBrdiff(1)\fP provide command-line and
scriptable access to rsync functions.
.SH "SEE ALSO"
.BR rdiff "(1)"
.PP
.I rdiff and librsync Manual
.PP
\fIhttp://rproxy.sourceforge.net/\fP or \fIhttp://linuxcare.com.au/rproxy/\fP.
.PP
\fIdraft-pool-rsync\fP
.SH BUGS
The rsync protocol is still evolving.  There may be bugs in the
implementation.  The interface may change in the future, but it is
becoming more stable.
.PP
Many routines will panic in case of error rather than returning an
error code to the caller.  Patches to fix this are welcome, but at the
current state of development aborting seems as useful as trusting to
possibly-incomplete checking in the client.
.SH "AUTHOR"
<NAME> <<EMAIL>>
.PP
The ideas in rdiff draw heavily on the work of <NAME> and
<NAME>, the original developers of rsync. 
.PP
rproxy/rdiff development has been supported in part by Linuxcare, Inc,
a leading provider of enterprise services for open source software.<commit_msg>Tidy up.<commit_after>.\"
.\" librsync -- dynamic caching and delta update in HTTP
.\" $Id$
.\" 
.\" Copyright (C) 2000, 2001 by <NAME> <<EMAIL>>
.\" 
.\" This program is free software; you can redistribute it and/or
.\" modify it under the terms of the GNU Lesser General Public License
.\" as published by the Free Software Foundation; either version 2.1 of
.\" the License, or (at your option) any later version.
.\" 
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
.\" Lesser General Public License for more details.
.\" 
.\" You should have received a copy of the GNU Lesser General Public
.\" License along with this program; if not, write to the Free Software
.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
.\"
.TH librsync 3 "$Date$" "<NAME>"
.SH NAME
librsync \- library for delta compression of streams
.SH SYNOPSYS
.B #include <stdio.h>
.br
.B #include <stdlib.h>
.sp
.B #include <rsync.h>
.sp
.B cc ... -lrsync
.SH DESCRIPTION
The \fBlibrsync\fP library implements network delta-compression of
streams and files.  The algorithm is similar to that used in the
\fBrsync(1)\fP and \fBxdelta(2)\fP programs, but specialized for
transfer of arbitrary-length octet streams.  Unlike most diff
programs, \fBlibrsync\fP does not require access to both of the files
on the same machine, but rather only a short ``signature'' of the old
file and the complete contents of the new file.
.PP
The canonical use of \fBlibrsync\fP is in the \fBrproxy(8)\fP
reference implementation of the \fIrsync\fP proposed extension to
HTTP.  It may be useful to other programs which wish to do
delta-compression in HTTP, or within their own protocol.  There are
HTTP-specific utility functions within \fBlibrsync\fP, but they need
not be used.
.PP
A number of tools such as \fBrdiff(1)\fP provide command-line and
scriptable access to rsync functions.
.SH "SEE ALSO"
.BR rdiff "(1)"
.PP
.I rdiff and librsync Manual
.PP
\fIhttp://rproxy.sourceforge.net/\fP or \fIhttp://linuxcare.com.au/rproxy/\fP.
.PP
\fIdraft-pool-rsync\fP
.SH BUGS
The rsync protocol is still evolving.  There may be bugs in the
implementation.  The interface may change in the future, but it is
becoming more stable.
.PP
Many routines will panic in case of error rather than returning an
error code to the caller.  Patches to fix this are welcome, but at the
current state of development aborting seems as useful as trusting to
possibly-incomplete checking in the client.
.SH "AUTHOR"
<NAME> <<EMAIL>>, with <NAME> <<EMAIL>>.
.PP
rproxy/rdiff development has been supported in part by Linuxcare, Inc,
a leading provider of enterprise services for open source software.
{'fraction_non_alphanumeric': 0.08747795414462081, 'fraction_numerical': 0.008465608465608466, 'mean_word_length': 3.7376775271512113, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3452780', 'n_tokens_mistral': 1735, 'n_tokens_neox': 1628, 'n_words': 844}