librsync  2.3.4
Enumerations | Functions | Variables
rdiff.c File Reference

Command-line network-delta tool. More...

Include dependency graph for rdiff.c:

Go to the source code of this file.

Enumerations

enum  { OPT_GZIP = 1069 , OPT_BZIP2 }
 

Functions

static void rdiff_usage (const char *error,...)
 
static void rdiff_no_more_args (poptContext opcon)
 
static void bad_option (poptContext opcon, int error)
 
static void help (void)
 
static void rdiff_show_version (void)
 
static void rdiff_options (poptContext opcon)
 
static rs_result rdiff_sig (poptContext opcon)
 Generate signature from remaining command line arguments. More...
 
static rs_result rdiff_delta (poptContext opcon)
 
static rs_result rdiff_patch (poptContext opcon)
 
static rs_result rdiff_action (poptContext opcon)
 
int main (const int argc, const char *argv[])
 

Variables

static int block_len = 0
 
static int strong_len = 0
 
static int show_stats = 0
 
static int bzip2_level = 0
 
static int gzip_level = 0
 
static int file_force = 0
 
char * rs_hash_name
 
char * rs_rollsum_name
 

Detailed Description

Command-line network-delta tool.

Todo:
Add a -z option to gzip/gunzip patches. This would be somewhat useful, but more importantly a good test of the streaming API. Also add -I for bzip2.
Todo:
If built with debug support and we have mcheck, then turn it on. (Optionally?)
Todo:
popt doesn't handle single dashes very well at the moment: we'd like to use them as arguments to indicate stdin/stdout, but it turns them into options. I sent a patch to the popt maintainers; hopefully it will be fixed in the future.
Todo:
Add an option for delta to check whether the files are identical.

Definition in file rdiff.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 64 of file rdiff.c.

Function Documentation

◆ rdiff_usage()

static void rdiff_usage ( const char *  error,
  ... 
)
static

Definition at line 71 of file rdiff.c.

◆ rdiff_no_more_args()

static void rdiff_no_more_args ( poptContext  opcon)
static

Definition at line 83 of file rdiff.c.

◆ bad_option()

static void bad_option ( poptContext  opcon,
int  error 
)
static

Definition at line 91 of file rdiff.c.

◆ help()

static void help ( void  )
static

Definition at line 97 of file rdiff.c.

◆ rdiff_show_version()

static void rdiff_show_version ( void  )
static

Definition at line 120 of file rdiff.c.

◆ rdiff_options()

static void rdiff_options ( poptContext  opcon)
static

Definition at line 150 of file rdiff.c.

◆ rdiff_sig()

static rs_result rdiff_sig ( poptContext  opcon)
static

Generate signature from remaining command line arguments.

Definition at line 194 of file rdiff.c.

◆ rdiff_delta()

static rs_result rdiff_delta ( poptContext  opcon)
static

Definition at line 237 of file rdiff.c.

◆ rdiff_patch()

static rs_result rdiff_patch ( poptContext  opcon)
static

Definition at line 283 of file rdiff.c.

◆ rdiff_action()

static rs_result rdiff_action ( poptContext  opcon)
static

Definition at line 315 of file rdiff.c.

◆ main()

int main ( const int  argc,
const char *  argv[] 
)

Definition at line 333 of file rdiff.c.

Variable Documentation

◆ block_len

int block_len = 0
static

Definition at line 55 of file rdiff.c.

◆ strong_len

int strong_len = 0
static

Definition at line 56 of file rdiff.c.

◆ show_stats

int show_stats = 0
static

Definition at line 58 of file rdiff.c.

◆ bzip2_level

int bzip2_level = 0
static

Definition at line 60 of file rdiff.c.

◆ gzip_level

int gzip_level = 0
static

Definition at line 61 of file rdiff.c.

◆ file_force

int file_force = 0
static

Definition at line 62 of file rdiff.c.

◆ rs_hash_name

char* rs_hash_name

Definition at line 68 of file rdiff.c.

◆ rs_rollsum_name

char* rs_rollsum_name

Definition at line 69 of file rdiff.c.