target_prefix
static const char target_prefix[] = TARGET_PREFIX;
: xasprintf("%s/%slint1", PATH_LIBEXEC, target_prefix);
: xasprintf("%s/%slint2", PATH_LIBEXEC, target_prefix);
if (target_prefix() != NULL && strcmp(target_prefix(), "") != 0)
snprintf(resolved, MAXPATHLEN, "%s/%s", target_prefix(), path);
target_prefix(), wbuf);
target_prefix());
target_prefix());
"/%s/boot/netbsd", target_prefix());
"/%s/boot/ppc", target_prefix());
"/%s/boot/ofwboot", target_prefix());
target_prefix(), RC_CHECK_SCRIPT);
" /etc/passwd",target_prefix());
target_prefix(), target_prefix());
const char *target_prefix(void);
scripting_fprintf(NULL, "cat <<EOF >%s/etc/fstab\n", target_prefix());
"Making %s/etc/fstab (%s).\n", target_prefix(),
target_prefix(), xfer_dir + (*xfer_dir == '/'));
snprintf(ext_dir_bin, sizeof ext_dir_bin, "%s/%s", target_prefix(),
snprintf(ext_dir_src, sizeof ext_dir_src, "%s/%s", target_prefix(),
target_prefix(), ifconfig_fn);
target_prefix(), ifconfig_fn);
target_prefix());
target_prefix());
if (flags & RUN_CHROOT && *target_prefix()
&& chroot(target_prefix()) != 0)
warn("chroot(%s) for %s", target_prefix(), *args);
return concat_paths(target_prefix(), tgtpath);
make_prefixed_dir(target_prefix(), path);
const char *args[] = { target_prefix(), strerror(error) };
opts, from, target_prefix(), on);
if (run_program(0, "/sbin/umount %s", target_prefix()) != 0)
target_prefix(), m->um_mountpoint);
target_prefix(), m->um_mountpoint);
target_prefix());
target_prefix());
target_prefix(), xfer_dir, set_name,
snprintf(ext_dir_bin, sizeof ext_dir_bin, "%s/%s", target_prefix(), xfer_dir);
snprintf(ext_dir_src, sizeof ext_dir_src, "%s/%s", target_prefix(), xfer_dir);
const char *tp = target_prefix();