Lines Matching defs:compfd
1356 int compfd = -1;
1388 if ((compfd = open64(devicename, O_RDONLY | O_NONBLOCK)) == -1) {
1405 (void) close(compfd);
1417 (void) close(compfd);
1425 rbytes = read(compfd, buf, sizeof (buf));
1436 (void) close(compfd);
1480 int compfd = -1, uncompfd = -1;
1569 if ((compfd = mkstemp64(comp_filename)) == -1)
1576 (void) fchmod(compfd, statbuf.st_mode);
1578 if (fchown(compfd, statbuf.st_uid, statbuf.st_gid) == -1)
1690 if (write(compfd, algorithm, sizeof (algorithm))
1695 if (write(compfd, &segsize, sizeof (segsize)) != sizeof (segsize))
1699 if (write(compfd, &index_entries, sizeof (index_entries)) !=
1704 if (write(compfd, &lastread, sizeof (lastread)) != sizeof (lastread))
1708 if (write(compfd, index + i, sizeof (*index)) !=
1725 if (write(compfd, compressed_seg, rbytes) != rbytes)
1729 if (fstat64(compfd, &statbuf) == -1)
1742 if (write(compfd, uncompressed_seg, offset) != offset)
1745 (void) close(compfd);
1752 if (compfd != -1)
1768 if (compfd != -1)
1769 (void) close(compfd);