search for: arg_info

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

Did you mean: ar_info
2001 Nov 20
2
patch to enable faster mirroring of large filesystems
...@ -849,6 +852,49 @@ return flist; } +struct argv_data { + int argc; + char **argv; +}; + +static char * +get_arg(struct argv_data *ad) +{ + return (ad->argc-- > 0) ? *(ad->argv++) : NULL; +} + +struct file_list *send_file_list(int f,int argc,char *argv[]) +{ + struct argv_data arg_info; + + arg_info.argc = argc; + arg_info.argv = argv; + return send_file_list_proc(f,get_arg,&arg_info); +} + +/* note that send_file_list_proc silently truncates the filename to fit + in a buffer of MAXPATHLEN characters, so we can safely truncate there */ +static char * +get_stdio(FILE *...
2003 Jan 14
4
specifying a list of files to transfer
...020,6 +1023,49 @@ return flist; } +struct argv_data { + int argc; + char **argv; +}; + +static char * +get_arg(struct argv_data *ad) +{ + return (ad->argc-- > 0) ? *(ad->argv++) : NULL; +} + +struct file_list *send_file_list(int f, int argc, char *argv[]) +{ + struct argv_data arg_info; + + arg_info.argc = argc; + arg_info.argv = argv; + return send_file_list_proc(f,get_arg,&arg_info); +} + +/* note that send_file_list_proc silently truncates the filename to fit + in a buffer of MAXPATHLEN characters, so we can safely truncate there */ +static char * +get_stdio(FILE *...