Lines Matching defs:boot
42 char *boot, *dev;
54 fprintf(stderr, "usage: %s [-n] [-v] <boot> <device>\n",
75 load_boot(char *boot, size_t *bootsize)
85 if ((fd = open(boot, O_RDONLY)) < 0) {
86 warn("open: %s", boot);
91 warn("fstat: %s", boot);
99 warn("read: eh: %s", boot);
115 warn("read: ph: %s", boot);
156 warn("calloc: no memory for boot image.");
161 warn("read: boot image: %s", boot);
247 boot = argv[optind];
250 printf("boot: %s\n", boot);
254 if ((bp = load_boot(boot, &bootsize)) == NULL)
268 warn("boot image is too big.");
285 * Write boot image.
314 warn("write boot loader");