bootfile
char bootfile[PATH_MAX];
strcpy(bootfile, bootpath);
strcat(bootfile, kernel);
win = loadfile(bootfile, marks, LOAD_KERNEL);
strcpy(bootfile, bootpath);
strcat(bootfile, kernelnames[i]);
win = loadfile(bootfile, marks, LOAD_KERNEL);
strcpy(bootfile, ++filename);
printf("Bootfile: %s\n", bootfile);
strcpy(bootfile, path);
if (bootfile[0] == '\0')
strcpy(bootfile, "netbsd");
extern char bootfile[];
*file = bootfile;
strncpy(bi_path.bootpath, bootfile, sizeof(bi_path.bootpath));
*file = bootfile;
strncpy(bi_path.bootpath, bootfile, sizeof(bi_path.bootpath));
char *bootfile;
bootfile = strsep(&bf, ";");
printf("Trying \"%s\"...\n", bootfile);
fd = open(bootfile, 0);
bootfile[0] = '\0';
strlcpy(bootfile, fname, sizeof bootfile);
strlcpy(bootfile, fname, sizeof bootfile);
*file = bootfile;
strlcpy(bootfile, filename, sizeof(bootfile));
filename = strchr(bootfile, ':');
fname = bootfile;
if (strchr(bootfile, ':'))
fname = bootfile;
strncpy(bootfile, fname, FNAME_SIZE);
uint8_t bootfile[128]; /* boot filename */
bootfile = GetEnvironmentVariable(ARCENV_BOOTFILE);
if (bootfile)
setenv("bootfile", bootfile, 1);
extern char bootfile[MAXBOOTPATHLEN];
char bootfile[MIPS_BFSIZE]; /* default file to boot */
strcpy(vh->bootfile, "/netbsd");
char bootfile[128];
if ((ofd = open(bootfile, O_RDWR)) < 0)
err(1, "%s", bootfile);
if (nlist(bootfile, nl) != 0)
errx(1, "Could not find symbols in %s", bootfile);
err(1, "fstat %s", bootfile);
errx(1, "%s too big to map", bootfile);
err(1, "mmap %s", bootfile);
printf("mapped %s\n", bootfile);
errx(1, "No ELF header in %s", bootfile);
errx(1, "Couldn't find offset for %s in %s", nl[i].n_name, bootfile);
printf("%s is at offset %#x in %s\n", nl[i].n_name, offsets[i], bootfile);
printf("unmapped %s\n", bootfile);
const char *kernel, *bootfile;
bootfile = argv[2];
snprintf(bootfile, sizeof(bootfile), "%s", file);
else if (bootfile[0] == '\0')
snprintf(bootfile, sizeof(bootfile), "netbsd");
snprintf(bi_path.bootpath, sizeof(bi_path.bootpath), "%s", bootfile);
extern char bootfile[]; /* handed by DHCP */
*file = bootfile; /* resolved fname */
*file = bootfile; /* resolved fname */
char bootfile[50];
if (memcmp(nvram.bootfile, "dksc(", 5) == 0 ||
memcmp(nvram.bootfile, "bootp(", 6) == 0)
hack = strstr(nvram.bootfile, ",8)");
return (nvram.bootfile);
if ((file = strrchr(nvram.bootfile, ')')) != NULL)
strcpy(vh->bootfile, "/netbsd");
char bootfile[PATH_MAX];
strcpy(bootfile, argv[0]);
ep = strrchr(bootfile, ')');
i = ep - bootfile;
bootfile[i - 1] = '0';
if (strstr(bootfile, "ip3x"))
if ((loadfile(bootfile, marks, LOAD_KERNEL)) >= 0)
strcpy(bootfile, bootpath);
strcat(bootfile, kernel);
win = loadfile(bootfile, marks, LOAD_KERNEL);
strcpy(bootfile, bootpath);
strcat(bootfile, kernelnames[i]);
win = loadfile(bootfile, marks, LOAD_KERNEL);
strlcpy(bi_bpath.bootpath, bootfile, BTINFO_BOOTPATH_LEN);
printf("bootfile: %s\n", volhdr->bootfile);
strcpy(volhdr->bootfile, "/netbsd");
char bootfile[128];
struct bootfile ntm_bootfile;
memcpy(&ntmp->ntm_bootfile, bp->b_data, sizeof(struct bootfile));
(void)strncpy((char *)bp->bp_file, bootfile, sizeof(bp->bp_file));
(void)memcpy(bootfile, rbuf.rbootp.bp_file, sizeof(bootfile));
bootfile[sizeof(bootfile) - 1] = '\0';
if (bootfile[0] != '\0')
printf("file name: %s\n", bootfile);
char bootfile[FNAME_SIZE]; /* bootp says to boot this */
extern char bootfile[FNAME_SIZE];
const char *kernel = *fname ? fname : bootfile;
if (bootfile[0] != '\0')
printf("boot: file name: %s\n", bootfile);
char bootfile[16];
p = dhcp->bootfile;
e = p + sizeof(dhcp->bootfile);
uint8_t bootfile[BOOTFILE_LEN]; /* boot file name */
char *homedir, *bootfile;
bootfile = NULL;
bootfile = strrchr(homedir, '/');
if (bootfile) {
if (homedir == bootfile)
*bootfile++ = '\0';
bootfile = homedir;
(bootfile) ? bootfile : "");
if (hp->flags.bootfile)
bootfile = hp->bootfile->string;
if (bootfile) {
if (bootfile[0] != '/') {
strlcat(lrealpath, bootfile, sizeof(lrealpath));
bootfile = NULL;
struct shared_string *bootfile,
unsigned bootfile :1,
if (hp->flags.bootfile) {
fprintf(fp, "\\\n\t:bf=%s:", hp->bootfile->string);
DUP_LINK(bootfile);
del_string(hostptr->bootfile);
PARSE_STR(bootfile);
static const char *bootfile = "boot.gz";
run_program(0, "/bin/rm -f %s/%s", bootdir, bootfile);
bootfile, bootdir, kernels[i]);
const char *bootfile = "/boot";
cp_to_target("/usr/mdec/ofwboot", bootfile);
pm->diskdev, "/usr/mdec/bootxx", bootfile);
const char *bootfile = "/boot";
cp_to_target("/usr/mdec/boot", bootfile);
pm->diskdev, "/usr/mdec/bootxx", bootfile);
const char *bootfile = "/boot";
cp_to_target("/usr/mdec/boot", bootfile);
pm->diskdev, "/usr/mdec/bootxx", bootfile);