Lines Matching refs:lno
588 int lno = hist_source->line; in histsync() local
594 if (lno != hist_source->line) in histsync()
912 int lno = 0, lines = 0; in histload() local
926 lno = ((base[0] & 0xFF) << 24) | ((base[1] & 0xFF) << 16) | in histload()
930 if (histptr >= history && lno - 1 != s->line) { in histload()
934 if (lno >= s->line - (histptr - history) && lno <= s->line) { in histload()
935 hp = &histptr[lno - s->line]; in histload()
940 s->line = lno--; in histload()
941 histsave(&lno, (char *)(base + 4), HIST_NOTE, false); in histload()
959 writehistfile(int lno, const char *cmd) in writehistfile() argument
991 lno = hist_source->line; in writehistfile()
998 if (cmd && !writehistline(histfd, lno, cmd)) { in writehistfile()
1009 writehistline(int fd, int lno, const char *cmd) in writehistline() argument
1015 hdr[1] = (lno >> 24) & 0xFF; in writehistline()
1016 hdr[2] = (lno >> 16) & 0xFF; in writehistline()
1017 hdr[3] = (lno >> 8) & 0xFF; in writehistline()
1018 hdr[4] = lno & 0xFF; in writehistline()