| /netbsd-src/external/gpl2/mkhybrid/dist/ |
| H A D | eltorito.c | 57 char * bootpath; /* filename of boot catalog */ in FDECL1() local 61 bootpath = (char *) e_malloc(strlen(boot_catalog)+strlen(path)+2); in FDECL1() 62 strcpy(bootpath, path); in FDECL1() 63 if (bootpath[strlen(bootpath)-1] != '/') in FDECL1() 65 strcat(bootpath,"/"); in FDECL1() 68 strcat(bootpath, boot_catalog); in FDECL1() 74 fprintf(stderr,"Looking for boot catalog file %s\n",bootpath); in FDECL1() 77 if (!stat_filter(bootpath, &statbuf)) in FDECL1() 87 free(bootpath); in FDECL1() 93 fprintf(stderr, "Please check the following file: %s.\n",bootpath); in FDECL1() [all …]
|
| /netbsd-src/sys/arch/macppc/stand/bootxx/ |
| H A D | bootxx.c | 319 char bootpath[128]; in startup() local 327 if (OF_getprop(chosen, "bootpath", bootpath, sizeof(bootpath)) == 1) { in startup() 332 OF_getprop(options, "boot-device", bootpath, sizeof(bootpath)); in startup() 341 for (i = 0; i < sizeof(bootpath); i++) { in startup() 342 if (bootpath[i] == ':') in startup() 343 bootpath[i] = 0; in startup() 344 if (bootpath[i] == 0) in startup() 349 putstrn(bootpath, i); in startup() 350 fd = OF_open(bootpath); in startup()
|
| /netbsd-src/sys/arch/macppc/stand/ofwboot/ |
| H A D | hfs.c | 42 char bootpath[128], *cp; in hfs_open() local 46 memset(bootpath, 0, sizeof bootpath); in hfs_open() 47 OF_getprop(chosen, "bootpath", bootpath, sizeof bootpath); in hfs_open() 48 cp = strrchr(bootpath, ','); in hfs_open() 53 OF_fd = OF_open(bootpath); in hfs_open()
|
| /netbsd-src/sys/arch/arc/stand/boot/ |
| H A D | boot.c | 133 const char *bootpath = NULL; in main() local 166 bootpath = firmware_getenv("OSLoadPartition"); in main() 167 if (bootpath == NULL) in main() 168 bootpath = in main() 171 if (bootpath == NULL) { in main() 176 DPRINTF("bootpath = %s\n", bootpath); in main() 210 strcpy(bootfile, bootpath); in main() 218 strcpy(bootfile, bootpath); in main() 235 strlcpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN); in main()
|
| /netbsd-src/sys/arch/sgimips/stand/common/ |
| H A D | iris_parse.c | 45 char bootpath[1 + 64]; in parse() local 48 char *ep = strcpy(bootpath, argv[1]); in parse() 49 ep = strrchr(bootpath, '/'); in parse() 55 i = ep - bootpath; in parse() 56 bootpath[i - 1] = '\0'; in parse() 58 ep = strchr(bootpath, '('); in parse()
|
| H A D | boot.c | 125 const char *bootpath = NULL; in main() local 177 bootpath = arcbios_GetEnvironmentVariable("OSLoadPartition"); in main() 179 if (bootpath == NULL) { in main() 210 strcpy(bootfile, bootpath); in main() 218 strcpy(bootfile, bootpath); in main() 234 strlcpy(bi_bpath.bootpath, bootfile, BTINFO_BOOTPATH_LEN); in main()
|
| /netbsd-src/sys/arch/sparc/sparc/ |
| H A D | autoconf.c | 138 struct bootpath bootpath[8]; variable 141 static void bootpath_fake(struct bootpath *, const char *); 142 static void bootpath_print(struct bootpath *); 143 static struct bootpath *bootpath_store(int, struct bootpath *); 532 struct bootpath *bp; in bootpath_build() 538 memset(bootpath, 0, sizeof(bootpath)); in bootpath_build() 539 bp = bootpath; in bootpath_build() 568 if (CPU_ISSUN4M && bp == bootpath in bootpath_build() 571 strcpy(bootpath[0].name, "iommu"); in bootpath_build() 572 bootpath[0].val[0] = 0; in bootpath_build() [all …]
|
| /netbsd-src/sbin/gpt/ |
| H A D | biosboot.c | 92 read_boot(gpt_t gpt, const char *bootpath) in read_boot() argument 102 if (bootpath == NULL) in read_boot() 104 else if (*bootpath == '/') in read_boot() 105 bp = strdup(bootpath); in read_boot() 107 if (asprintf(&bp, "%s/%s", DEFAULT_BOOTDIR, bootpath) < 0) in read_boot() 112 gpt_warn(gpt, "Can't allocate memory for bootpath"); in read_boot() 171 const char *bootpath, int active) in biosboot() argument 196 if ((bootcode = read_boot(gpt, bootpath)) == NULL) { in biosboot() 275 char *bootpath = NULL; in cmd_biosboot() local 283 if (gpt_name_get(gpt, &bootpath) in cmd_biosboot() [all...] |
| /netbsd-src/sys/arch/pmax/stand/common/ |
| H A D | boot.c | 114 char bootname[PATH_MAX], bootpath[PATH_MAX]; in main() local 152 strcpy(bootpath, dev); in main() 153 strcat(bootpath, kernel); in main() 154 printf("Loading: %s\n", bootpath); in main() 155 win = (loadfile(bootpath, marks, LOAD_ALL) != -1); in main() 157 name = bootpath; in main() 164 strncpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN); in main()
|
| /netbsd-src/sys/arch/mipsco/stand/common/ |
| H A D | boot.c | 107 char bootname[PATH_MAX], bootpath[PATH_MAX]; in main() local 152 strcpy(bootpath, dev); in main() 153 strcat(bootpath, kernel); in main() 154 printf("Loading: %s\n", bootpath); in main() 155 win = (loadfile(bootpath, marks, LOAD_ALL) != -1); in main() 157 name = bootpath; in main() 164 strncpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN); in main()
|
| /netbsd-src/sys/arch/mmeye/stand/boot/ |
| H A D | boot.c | 188 char bootpath[PATH_MAX]; in main() local 227 bootpath[0] = '\0'; in main() 229 strcpy(bootpath, dev ? dev : DEFBOOTDEV); in main() 230 strcat(bootpath, ":"); in main() 231 strcat(bootpath, kernel); in main() 233 printf("Loading: %s", bootpath); in main() 237 win = (loadfile(bootpath, marks, LOAD_ALL) != -1); in main() 248 strncpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN); in main()
|
| /netbsd-src/sys/arch/emips/stand/common/ |
| H A D | boot.c | 83 char bootpath[PATH_MAX], options[OPT_MAX]; in main() local 121 strcpy(bootpath, dev); in main() 122 strcat(bootpath, kernel); in main() 123 name = getboot(bootpath,options); in main() 136 strcpy(bootpath, dev); in main() 137 strcat(bootpath, kernel); in main() 138 win = (loadit(bootpath, marks) == 0); in main() 140 name = bootpath; in main() 147 strncpy(bi_bpath.bootpath, name/*kernel?*/, BTINFO_BOOTPATH_LEN); in main()
|
| /netbsd-src/sys/arch/powerpc/oea/ |
| H A D | ofw_autoconf.c | 73 extern char bootpath[256]; 109 if (bootpath[0] != '/' && bootpath[0] != '\0') { in canonicalize_bootpath() 116 cp1 = strchr(bootpath, ':'); in canonicalize_bootpath() 117 cp2 = strchr(bootpath, ','); in canonicalize_bootpath() 127 len = OF_getprop(aliases, bootpath, aliasbuf, in canonicalize_bootpath() 132 memcpy(bootpath, aliasbuf, len); in canonicalize_bootpath() 133 strcpy(&bootpath[len], tmpbuf); in canonicalize_bootpath() 147 strcpy(cbootpath, bootpath); in canonicalize_bootpath() 161 printf("bootpath: %s\n", bootpath); in canonicalize_bootpath() 164 strcpy(cbootpath, bootpath); in canonicalize_bootpath() [all …]
|
| H A D | ofwoea_machdep.c | 116 char bootpath[256] = ""; variable 160 strcpy(bootpath, args); in ofwoea_initppc() 161 args = bootpath; in ofwoea_initppc() 171 if (bootpath[0] == 0) { in ofwoea_initppc() 175 len = OF_getprop(chs, "bootpath", bootpath, sizeof(bootpath) - 1); in ofwoea_initppc() 177 bootpath[len] = 0; in ofwoea_initppc()
|
| /netbsd-src/sys/arch/cobalt/stand/boot/ |
| H A D | boot.c | 411 char bootpath[PATH_MAX]; in main() local 455 bootpath[0] = '\0'; in main() 457 strcpy(bootpath, dev ? dev : DEFBOOTDEV); in main() 458 strcat(bootpath, ":"); in main() 459 strcat(bootpath, kernel); in main() 461 lcd_loadfile(bootpath); in main() 462 printf("Loading: %s", bootpath); in main() 466 patch_bootstring(bootpath); in main() 467 win = (loadfile(bootpath, marks, LOAD_ALL) != -1); in main() 471 strncpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN); in main()
|
| /netbsd-src/sys/arch/evbarm/stand/boot2440/ |
| H A D | devopen.c | 87 strncpy(bi_path.bootpath, bootfile, sizeof(bi_path.bootpath)); in devopen() 97 strncpy(bi_path.bootpath, bootfile, sizeof(bi_path.bootpath)); in devopen() 110 strncpy(bi_path.bootpath, *file, sizeof(bi_path.bootpath)); in devopen()
|
| /netbsd-src/sys/arch/i386/stand/efiboot/ |
| H A D | devopen.c | 185 strncpy(bibp.bootpath, *file, sizeof(bibp.bootpath)); in devopen() 231 strncpy(bibp.bootpath, *file, sizeof(bibp.bootpath)); in devopen() 304 strncpy(bibp.bootpath, *file, sizeof(bibp.bootpath)); in devopen()
|
| /netbsd-src/sys/arch/sparc/stand/ofwboot/ |
| H A D | promlib.c | 74 static char bootpath[PROM_MAX_PATH]; in openfirmware_bootpath() local 76 if (_prom_getprop(openfirmware_chosen(), "bootpath", bootpath, in openfirmware_bootpath() 77 sizeof(bootpath)) < 0) { in openfirmware_bootpath() 81 return bootpath; in openfirmware_bootpath()
|
| /netbsd-src/usr.sbin/sysinst/arch/atari/ |
| H A D | md.c | 141 char bootpath[MAXPATHLEN]; in md_post_newfs() local 156 snprintf(bootpath, sizeof(bootpath), "/usr/mdec/%s/boot.atari", in md_post_newfs() 158 rv = cp_to_target(bootpath, "/"); in md_post_newfs()
|
| /netbsd-src/usr.sbin/sysinst/arch/luna68k/ |
| H A D | md.c | 257 char bootpath[MAXPATHLEN]; in md_update() local 279 snprintf(bootpath, sizeof(bootpath), "%s/%s", mntdir, "boot"); in md_update() 280 if (stat(bootpath, &sb) == 0 && S_ISREG(sb.st_mode)) in md_update()
|
| /netbsd-src/sys/arch/prep/prep/ |
| H A D | autoconf.c | 65 extern char bootpath[256]; 342 cp = strchr(bootpath, ':'); in findroot() 347 len = strlen(bootpath); in findroot() 349 printf("Modified bootpath: %s\n", bootpath); in findroot() 361 if (strncmp(prop_string_cstring_nocopy(str), bootpath, in findroot()
|
| /netbsd-src/sys/arch/sandpoint/stand/altboot/ |
| H A D | dev_net.c | 86 snprintf(bi_path.bootpath, sizeof(bi_path.bootpath), "%s", bootfile); in net_open()
|
| /netbsd-src/sys/arch/i386/stand/pxeboot/ |
| H A D | devopen.c | 137 strncpy(bibp.bootpath, filename, sizeof(bibp.bootpath)); in devopen()
|
| /netbsd-src/sys/arch/i386/stand/boot/ |
| H A D | devopen.c | 141 strncpy(bibp.bootpath, *file, sizeof(bibp.bootpath)); in devopen()
|
| /netbsd-src/sys/arch/i386/stand/dosboot/ |
| H A D | devopen.c | 119 strncpy(bibp.bootpath, *file, sizeof(bibp.bootpath)); in devopen()
|