Lines Matching refs:Bootsect
310 static char *Bootsect; /* pointer to sector zero buffer */ variable
731 dev_mboot_write(0, Bootsect, sectsiz); in update_disk_and_exit()
1129 Bootsect = (char *)calloc(3 * sectsiz, 1); in main()
1130 if (Bootsect == NULL) { in main()
1138 Nullsect = Bootsect + sectsiz; in main()
1168 Bootblk = (struct mboot *)Bootsect; in main()
1383 if ((ioctl(Dev, DKIOCGMBOOT, Bootsect) < 0) && (errno != ENOTTY)) { in dev_mboot_read()
1395 if (read(Dev, Bootsect, sectsiz) != sectsiz) { in dev_mboot_read()
1618 buff_ptr = (int *)Bootsect; in fill_patt()
1629 off_ptr = (off_t *)Bootsect; in fill_patt()
1642 if (write(Dev, Bootsect, sectsiz) != sectsiz) { in fill_patt()
1667 if (read(Dev, Bootsect, sectsiz) != sectsiz) { in abs_read()
1674 if ((c = write(1, Bootsect, (unsigned)sectsiz)) != sectsiz) { in abs_read()
1705 if ((c = read(0, Bootsect, (unsigned)sectsiz)) != sectsiz) { in abs_write()
1714 Bootsect[i++] = 0x41; in abs_write()
1715 Bootsect[i++] = 0x62; in abs_write()
1716 Bootsect[i++] = 0x65; in abs_write()
1717 Bootsect[i++] = 0; in abs_write()
1733 if (write(Dev, Bootsect, sectsiz) != sectsiz) { in abs_write()
2719 dev_mboot_write(0, Bootsect, sectsiz);
2756 dev_mboot_write(0, Bootsect, sectsiz);