Home | History | Annotate | Download | only in iputils

Lines Matching defs:file

46  * Trivial file transfer protocol server.
269 FILE *file;
272 * Validate file access. Since we
274 * file to exist and be publicly
277 * from inetd then the file must also be
326 file = fdopen(fd, (mode == RRQ)? "r":"w");
327 if (file == NULL) {
347 * Send the requested file.
361 size = readit(file, &dp, pf->f_convert);
377 read_ahead(file, pf->f_convert);
408 (void) fclose(file);
418 * Receive a file.
442 write_behind(file, pf->f_convert);
466 /* size = write(file, dp->th_data, n - 4); */
467 size = writeit(file, &dp, n - 4, pf->f_convert);
474 write_behind(file, pf->f_convert);
475 (void) fclose(file); /* close data file */
499 { ENOTFOUND, "File not found" },
504 { EEXISTS, "File already exists" },