Lines Matching refs:Bootsect
302 static char *Bootsect; /* pointer to sector zero buffer */ variable
724 dev_mboot_write(0, Bootsect, sectsiz); in update_disk_and_exit()
1126 Bootsect = (char *)calloc(3 * sectsiz, 1); in main()
1127 if (Bootsect == NULL) { in main()
1135 Nullsect = Bootsect + sectsiz; in main()
1164 Bootblk = (struct mboot *)Bootsect; in main()
1376 if ((ioctl(Dev, DKIOCGMBOOT, Bootsect) < 0) && (errno != ENOTTY)) { in dev_mboot_read()
1388 if (read(Dev, Bootsect, sectsiz) != sectsiz) { in dev_mboot_read()
1616 buff_ptr = (int *)Bootsect; in fill_patt()
1627 off_ptr = (off_t *)Bootsect; in fill_patt()
1640 if (write(Dev, Bootsect, sectsiz) != sectsiz) { in fill_patt()
1665 if (read(Dev, Bootsect, sectsiz) != sectsiz) { in abs_read()
1672 if ((c = write(1, Bootsect, (unsigned)sectsiz)) != sectsiz) { in abs_read()
1703 if ((c = read(0, Bootsect, (unsigned)sectsiz)) != sectsiz) { in abs_write()
1712 Bootsect[i++] = 0x41; in abs_write()
1713 Bootsect[i++] = 0x62; in abs_write()
1714 Bootsect[i++] = 0x65; in abs_write()
1715 Bootsect[i++] = 0; in abs_write()
1731 if (write(Dev, Bootsect, sectsiz) != sectsiz) { in abs_write()
2728 dev_mboot_write(0, Bootsect, sectsiz);
2765 dev_mboot_write(0, Bootsect, sectsiz);
5671 dev_mboot_write(0, Bootsect, sectsiz);