Lines Matching defs:rv
107 int ch, idx, rv;
361 rv = run(NULL, "%s %s /dev/%s%d", _PATH_TUNEFS,
363 if (rv)
364 errx(1, "tunefs exited %s %d", run_exitstr(rv),
365 run_exitnumber(rv));
429 int rv;
445 rv = run(NULL, "%s -a %s%s -u %s%d", path_mdconfig, ta, args,
447 if (rv)
448 errx(1, "mdconfig (attach) exited %s %d", run_exitstr(rv),
449 run_exitnumber(rv));
463 int rv;
481 rv = run(&fd, "%s -a %s%s", path_mdconfig, ta, args);
482 if (rv)
483 errx(1, "mdconfig (attach) exited %s %d", run_exitstr(rv),
484 run_exitnumber(rv));
519 int rv;
521 rv = run(NULL, "%s -d -u %s%d", path_mdconfig, mdname, unit);
522 if (rv && debug) /* This is allowed to fail. */
524 run_exitstr(rv), run_exitnumber(rv));
533 int rv;
535 rv = run(NULL, "%s%s /dev/%s%d%s %s", _PATH_MOUNT, args,
537 if (rv)
538 errx(1, "mount exited %s %d", run_exitstr(rv),
539 run_exitnumber(rv));
548 int rv;
550 rv = run(NULL, "%s -t tmpfs %s tmp %s", _PATH_MOUNT, args, mtpoint);
551 if (rv)
552 errx(1, "tmpfs mount exited %s %d", run_exitstr(rv),
553 run_exitnumber(rv));
621 int rv;
623 rv = run(NULL, "%s%s /dev/%s%d", _PATH_NEWFS, args, mdname, unit);
624 if (rv)
625 errx(1, "newfs exited %s %d", run_exitstr(rv),
626 run_exitnumber(rv));
636 int rv;
638 rv = chdir(skel);
639 if (rv != 0)
641 rv = run(NULL, "/bin/pax -rw -pe . %s", mtpoint);
642 if (rv != 0)
735 int rv, i;
739 rv = vasprintf(&cmd, cmdline, ap);
740 if (rv == -1)
826 run_exitstr(int rv)
828 if (rv > 0)
830 if (rv < 0)
839 run_exitnumber(int rv)
841 if (rv < 0)
842 return (-rv);
843 return (rv);