Lines Matching refs:dev_fd
71 if (ioctl(epp->dev_fd, DKIOCG_VIRTGEOM, &disk_geom)) { in fdisk_init_disk_geom()
94 if (ioctl(epp->dev_fd, DKIOCG_PHYGEOM, &disk_geom)) { in fdisk_init_disk_geom()
107 if (ioctl(epp->dev_fd, DKIOCGGEOM, &disk_geom)) { in fdisk_init_disk_geom()
121 if (ioctl(epp->dev_fd, DKIOCGMEDIAINFO, (caddr_t)&disk_info) < 0) { in fdisk_init_disk_geom()
203 if ((temp->dev_fd = open(temp->device_name, O_RDWR, 0666)) < 0) { in libfdisk_init()
269 (void) close((*epp)->dev_fd); in libfdisk_fini()
303 if (lseek(epp->dev_fd, label_offset, SEEK_SET) < 0) { in fdisk_is_linux_swap()
308 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap()
329 if (lseek(epp->dev_fd, seek_offset, SEEK_SET) < 0) { in fdisk_is_linux_swap()
334 if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) { in fdisk_is_linux_swap()
648 if (lseek(epp->dev_fd, offset, SEEK_SET) < 0) { in fdisk_read_extpart()
651 if (read(epp->dev_fd, ext_buf, sectsize) < in fdisk_read_extpart()
776 if (lseek(epp->dev_fd, 0, SEEK_SET) < 0) { in fdisk_read_master_part_table()
779 if (read(epp->dev_fd, buf, sectsize) < sectsize) { in fdisk_read_master_part_table()
1080 if (lseek(epp->dev_fd, seek_offset, SEEK_SET) < 0) { in read_modify_write_ebr()
1083 if (read(epp->dev_fd, ebr_buf, sectsize) < sectsize) { in read_modify_write_ebr()
1094 if (lseek(epp->dev_fd, seek_offset, SEEK_SET) < 0) { in read_modify_write_ebr()
1097 if (write(epp->dev_fd, ebr_buf, sectsize) < sectsize) { in read_modify_write_ebr()
1307 rval = ioctl(epp->dev_fd, DKIOCSETEXTPART); in fdisk_commit_ext_part()