Searched defs:bootsect (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dpartition.c312 char bootsect[512 * 3]; /* 3 sectors to be safe */ local
326 if ((ioctl(fd, DKIOCGMBOOT, bootsect) < 0) && (errno != ENOTTY)) {
555 char bootsect[512]; local
588 if (read(fd, bootsect, 512) != 512) {
594 (void) memcpy(&bootblk, bootsect, sizeof (bootblk));
/osnet-11/usr/src/lib/libbootmgmt/common/
H A Dlibbootmgmt.c530 char *bootsect = NULL; local
546 if ((bootsect = calloc(sectsize, 1)) == NULL) {
550 if (ioctl(fd, DKIOCGMBOOT, bootsect) < 0) {
556 free(bootsect);
561 (read(wholefd, bootsect, sectsize) != sectsize)) {
564 free(bootsect);
569 free(bootsect);
574 mboot = (struct mboot *)(uintptr_t)bootsect;
577 free(bootsect);
599 free(bootsect);
[all...]

Completed in 23 milliseconds