Lines Matching refs:histfsize
69 static off_t histfsize; variable
569 histfsize = 0; in sethistfile()
776 histfsize = lseek(histfd, (off_t)0, SEEK_END); in hist_init()
777 if (histfsize > MKSH_MAXHISTFSIZE || hs == hist_init_restore) { in hist_init()
781 } else if (histfsize > 2) { in hist_init()
783 base = (void *)mmap(NULL, (size_t)histfsize, PROT_READ, in hist_init()
788 munmap(caddr_cast(base), (size_t)histfsize); in hist_init()
792 lines = histload(hist_source, base + 2, (size_t)histfsize - 2); in hist_init()
793 munmap(caddr_cast(base), (size_t)histfsize); in hist_init()
842 } else if (histfsize != 0) { in hist_init()
855 histfsize = 0; in hist_init()
864 histfsize = lseek(histfd, (off_t)0, SEEK_END); in hist_init()
932 if (sizenow < histfsize) { in writehistfile()
941 sizenow > histfsize in writehistfile()
944 bytes = (size_t)(sizenow - histfsize); in writehistfile()
949 news = base + (size_t)histfsize; in writehistfile()
966 histfsize = lseek(histfd, (off_t)0, SEEK_END); in writehistfile()