Home | History | Annotate | Download | only in ksh

Lines Matching defs:histfd

45 static int	histfd;
581 if (histfd) {
583 (void) close(histfd);
584 histfd = 0;
794 if (histfd && dowrite)
857 histfd = savefd(fd, 0);
859 (void) flock(histfd, LOCK_EX);
861 hsize = lseek(histfd, 0L, SEEK_END);
865 if (sprinkle(histfd)) {
874 base = (unsigned char *)mmap(0, hsize, PROT_READ, MAP_FLAGS, histfd, 0);
899 (void) flock(histfd, LOCK_UN);
900 hsize = lseek(histfd, 0L, SEEK_END);
982 if (fstat(histfd, &statb) >= 0)
1115 (void) flock(histfd, LOCK_EX);
1116 sizenow = lseek(histfd, 0L, SEEK_END);
1124 base = (unsigned char *)mmap(0, sizenow, PROT_READ, MAP_FLAGS, histfd, 0);
1153 (void) write(histfd, hdr, 5);
1154 (void) write(histfd, cmd, strlen(cmd)+1);
1155 hsize = lseek(histfd, 0L, SEEK_END);
1156 (void) flock(histfd, LOCK_UN);
1165 (void) flock(histfd, LOCK_UN);
1166 (void) close(histfd);
1167 histfd = 0;