target_expand
n = handle_aout_libs(target_expand("/usr/lib"), LIB_COUNT, NULL);
strlcpy(prefix, target_expand("/emul"), sizeof(prefix));
target_expand("/emul.old"));
strlcpy(prefix, target_expand("/usr/aout"), sizeof(prefix));
strlcpy(src, target_expand("/etc/ld.so.conf"), sizeof(src));
strlcpy(src, target_expand("/usr/lib"), sizeof(src));
strlcpy(src, target_expand("/usr/X11R6/lib"), sizeof(src));
target_expand(PART_BOOT_MOUNT));
strlcpy(ldr_path, target_expand("/boot.emips"), sizeof ldr_path);
bootxx_filename = strdup(target_expand(p));
strcpy(src, target_is_populated ? target_expand(s) : s);
target_expand("/.bootsd"), pm->diskdev))
run_program(0, "rm -f %s", target_expand("/.bootimage"));
target_expand("/netbsd.ecoff"), pm->diskdev);
if ((fp = fopen(target_expand(RC_CHECK_SCRIPT), "w")) == NULL) {
target_expand(RC_CHECK_SCRIPT));
target_expand(RC_CHECK_SCRIPT));
unlink(target_expand(RC_CHECK_SCRIPT));
if (access(target_expand("/etc/resolv.conf"), R_OK) != 0) {
unlink(target_expand("/etc/resolv.conf"));
if (!(fp = fopen(target_expand("/etc/rc.conf"), "r"))) {
target_expand("/etc/rc.conf"), strerror(errno));
const char *target_expand(const char *);
if (access(target_expand("/etc/resolv.conf"), R_OK) != 0) {
unlink(target_expand("/etc/resolv.conf"));
tgt_dir = target_expand(dir);
const char *real_path = target_expand(tgt_path);
strlcpy(realfrom, target_expand(frompath), sizeof realfrom);
strlcpy(realto, target_expand(topath), sizeof realto);
strlcpy(realfrom, target_expand(frompath), sizeof realfrom);
strlcpy(realto, target_expand(topath), sizeof realto);
return fopen(target_expand(filename), type);
const char *realname = target_expand(name);
const char *real_path = target_expand(path);
if (stat(target_expand("/"), &sb1) == 0
&& stat(target_expand("/var"), &sb2) == 0
strlcpy(localtime_link, target_expand("/etc/localtime"),
strlcpy(zoneinfo_dir, target_expand("/usr/share/zoneinfo/"),
strlcpy(localtime_link, target_expand("/etc/localtime"),
if (asprintf(&rcconf, "%s", target_expand("/etc/rc.conf")) < 0
|| asprintf(&tempname, "%s", target_expand("/etc/rc.conf.tmp.XXXXXX")) < 0
|| asprintf(&bakname, "%s", target_expand("/etc/rc.conf.bak.XXXXXX")) < 0) {