search for: send_file_list_fp

Displaying 2 results from an estimated 2 matches for "send_file_list_fp".

2001 Nov 20
2
patch to enable faster mirroring of large filesystems
...ar *eob = &fnbuf[sizeof(fnbuf)-1]; + int cc; + extern int list_rs; + + while (((cc = getc(fp)) != list_rs) && (cc != EOF)) { + if (s < eob) + *(s++) = cc; + } + *s = '\0'; + return ((cc == EOF) && (s == fnbuf)) ? NULL : fnbuf; +} + +struct file_list *send_file_list_fp(int f,FILE *fp) +{ + return send_file_list_proc(f,get_stdio,fp); +} struct file_list *recv_file_list(int f) { --- main.c.orig Fri Nov 2 14:48:47 2001 +++ main.c Thu Nov 8 18:01:37 2001 @@ -23,6 +23,8 @@ struct stats stats; +static FILE *src_list_fp; + extern int verbose; @@ -480,1...
2003 Jan 14
4
specifying a list of files to transfer
...ar *eob = &fnbuf[sizeof(fnbuf)-1]; + int cc; + extern int list_rs; + + while (((cc = getc(fp)) != list_rs) && (cc != EOF)) { + if (s < eob) + *(s++) = cc; + } + *s = '\0'; + return ((cc == EOF) && (s == fnbuf)) ? NULL : fnbuf; +} + +struct file_list *send_file_list_fp(int f,FILE *fp) +{ + return send_file_list_proc(f,get_stdio,fp); +} struct file_list *recv_file_list(int f) { --- main.c.orig Wed Mar 27 00:10:44 2002 +++ main.c Fri Jan 10 10:59:51 2003 @@ -25,6 +25,8 @@ struct stats stats; +static FILE *src_list_fp; + extern int verbose; static voi...