Lines Matching defs:fd
326 int fd = -1;
363 if ((fd = open(rsp->rname, O_RDWR)) < 0)
377 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET) < 0)
380 if (read(fd, mbp, DEV_BSIZE) != DEV_BSIZE)
394 meta_mkdummymaster(sp, fd, 16);
447 if (lseek(fd, (off_t)dbtob(offset), SEEK_SET)
451 if (write(fd, mbp, DEV_BSIZE) != DEV_BSIZE)
457 (void) close(fd);
463 if (fd != -1)
464 (void) close(fd);
621 int fd = -1;
639 if ((fd = open(fp, O_RDONLY|O_NDELAY)) < 0) {
646 if (devid_get(fd, &devid1) != 0) {
651 if (close(fd) < 0) {