Lines Matching refs:histfsize
69 static off_t histfsize; variable
546 histfsize = 0; in sethistfile()
795 histfsize = lseek(histfd, (off_t)0, SEEK_END); in hist_persist_init()
796 if (histfsize > MKSH_MAXHISTFSIZE) { in hist_persist_init()
799 } else if (histfsize > 2) { in hist_persist_init()
801 base = (void *)mmap(NULL, (size_t)histfsize, PROT_READ, in hist_persist_init()
806 munmap(caddr_cast(base), (size_t)histfsize); in hist_persist_init()
810 lines = histload(hist_source, base + 2, (size_t)histfsize - 2); in hist_persist_init()
811 munmap(caddr_cast(base), (size_t)histfsize); in hist_persist_init()
859 } else if (histfsize != 0) { in hist_persist_init()
872 histfsize = 0; in hist_persist_init()
882 if ((histfsize = lseek(histfd, (off_t)0, SEEK_END)) < 0) in hist_persist_init()
968 else if (sizenow < histfsize) { in writehistfile()
978 sizenow > histfsize in writehistfile()
981 bytes = (size_t)(sizenow - histfsize); in writehistfile()
986 news = base + (size_t)histfsize; in writehistfile()
1003 if ((histfsize = lseek(histfd, (off_t)0, SEEK_END)) < 0) in writehistfile()