Displaying 2 results from an estimated 2 matches for "fnbuf".
Did you mean:
inbuf
2001 Nov 20
2
patch to enable faster mirroring of large filesystems
...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 *fp)
+{
+ static char fnbuf[MAXPATHLEN];
+ char *s = fnbuf;
+ char *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))...
2003 Jan 14
4
specifying a list of files to transfer
...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 *fp)
+{
+ static char fnbuf[MAXPATHLEN];
+ char *s = fnbuf;
+ char *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))...