Lines Matching defs:fname
374 dof_prune(const char *fname)
381 if ((fd = open(fname, O_RDONLY)) == -1) {
386 fatal("failed to open %s", fname);
391 fatal("failed to fstat %s", fname);
394 fatal("failed to allocate memory for %s", fname);
397 fatal("failed to read %s", fname);
402 if ((fd = open(fname, O_WRONLY | O_TRUNC)) == -1)
403 fatal("failed to open %s for writing", fname);
419 "enabling in %s\n", fname);
427 fatal("failed to write to %s", fname);
447 fatal("failed to write to %s", fname);
461 char *fname = g_etcfile, *tmpname;
463 if ((fd = open(fname, O_RDONLY)) == -1)
464 fatal("failed to open %s", fname);
467 fatal("failed to fstat %s", fname);
470 fatal("failed to allocate memory for %s", fname);
473 fatal("failed to read %s", fname);
483 "required\n", fname, fname);
488 "required\n", fname, fname);
493 "required\n", fname, fname);
498 "repair of %s required\n", fname, fname);
504 tmpname = alloca(sz = strlen(fname) + 80);
505 (void) snprintf(tmpname, sz, "%s.dtrace.%d", fname, getpid());
526 if (rename(tmpname, fname) == -1)
527 fatal("rename of %s to %s failed", tmpname, fname);
529 error("cleaned up forceload directives in %s\n", fname);