Home | History | Annotate | Download | only in sunlabel

Lines Matching defs:diskfd

167 static int diskfd;			/* fd on the disk */
233 if ((diskfd = open(s, O_RDWR)) == -1 ||
234 (diskfd = open(s, O_RDWR | O_NONBLOCK)) == -1) {
235 if ((diskfd = open(s, O_RDONLY)) == -1) {
582 if (lseek(diskfd, (off_t)0, SEEK_SET) == (off_t)-1)
585 if ((rv = read(diskfd, &labelbuf[0], 512)) == -1)
611 if (lseek(diskfd, (off_t)0, SEEK_SET) < (off_t)-1)
616 if ((rv = write(diskfd, &labelbuf[0], 512)) == -1) {
1188 if (ioctl(diskfd, DIOCGDINFO, &u.l) == -1) {
1216 if (ioctl(diskfd, DIOCSDINFO, &u.l) == -1) {