Lines Matching refs:mapfd
122 int mapfd = 0;
159 mapfd = open(ondiskname, O_RDWR|O_CREAT|O_SYNC, S_IRUSR | S_IWUSR);
160 if (mapfd < 0) {
162 if ((mapfd = open(ondiskname, O_RDONLY)) < 0) {
184 rv = read(mapfd, ondiskbuf, cachestat.st_size);
231 (void) close(mapfd);
239 (void) close(mapfd);
250 (void) close(mapfd);
256 rv = lseek(mapfd, 0, 0);
261 (void) close(mapfd);
267 if (write(mapfd, ondiskbuf, newsz) != newsz) {
271 (void) close(mapfd);