Lines Matching refs:histfsize
69 static off_t histfsize; variable
546 histfsize = 0; in sethistfile()
755 histfsize = lseek(histfd, (off_t)0, SEEK_END); in hist_init()
756 if (histfsize > MKSH_MAXHISTFSIZE || hs == hist_init_restore) { in hist_init()
760 } else if (histfsize > 2) { in hist_init()
762 base = (void *)mmap(NULL, (size_t)histfsize, PROT_READ, in hist_init()
767 munmap(caddr_cast(base), (size_t)histfsize); in hist_init()
771 lines = histload(hist_source, base + 2, (size_t)histfsize - 2); in hist_init()
772 munmap(caddr_cast(base), (size_t)histfsize); in hist_init()
821 } else if (histfsize != 0) { in hist_init()
834 histfsize = 0; in hist_init()
843 histfsize = lseek(histfd, (off_t)0, SEEK_END); in hist_init()
911 if (sizenow < histfsize) { in writehistfile()
920 sizenow > histfsize in writehistfile()
923 bytes = (size_t)(sizenow - histfsize); in writehistfile()
928 news = base + (size_t)histfsize; in writehistfile()
945 histfsize = lseek(histfd, (off_t)0, SEEK_END); in writehistfile()