Lines Matching defs:fname
331 compose_name (const char *fname, char *oname)
337 if (strlen (fname) > PATH_MAX - 4)
339 fprintf (stderr, "%s: %s.lzf: name too long", imagename, fname);
343 strcpy (oname, fname);
348 if (strlen (fname) > PATH_MAX)
350 fprintf (stderr, "%s: %s: name too long\n", imagename, fname);
354 strcpy (oname, fname);
358 fprintf (stderr, "%s: %s: unknown suffix\n", imagename, fname);
369 run_file (const char *fname)
377 if (compose_name (fname, oname))
381 rc = lstat (fname, &mystat);
383 rc = stat (fname, &mystat);
385 fd = open (fname, O_RDONLY);
391 fprintf (stderr, "%s: %s: ", imagename, fname);
398 fprintf (stderr, "%s: %s: not a regular file.\n", imagename, fname);
424 fname, nr_read == 0 ? 0 : 100.0 - nr_written / ((double) nr_read / 100.0), oname);
431 fname, nr_written == 0 ? 0 : 100.0 - nr_read / ((double) nr_written / 100.0), oname);
443 unlink (fname);