Searched refs:bootsect (Results 1 - 4 of 4) sorted by relevance

/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...]
/osnet-11/usr/src/lib/libntfs/
H A DMakefile.com37 $(LIBNTFSDIR)/bootsect.o \
H A DMakefile65 ../common/include/ntfs/bootsect.h \
/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));

Completed in 51 milliseconds