Lines Matching defs:tbuf
53 int tsize = -1; /* highest index of used slot in tbuf table */
60 struct tbuf {
69 } *tbuf;
101 static void update(struct tbuf *);
104 static int tcmp(struct tbuf *, struct tbuf *);
135 if ((tbuf = (struct tbuf *)calloc(a_tsize,
136 sizeof (struct tbuf))) == NULL) {
219 struct tbuf *tp;
231 for (tp = tbuf; tp <= &tbuf[tsize]; tp++)
249 update(&tbuf[iline()]);
287 * iline: look up/enter current line name in tbuf, return index
296 if (EQN(wb.ut_line, tbuf[i].tline))
300 if ((tbuf = (struct tbuf *)realloc(tbuf, a_tsize *
301 sizeof (struct tbuf))) == NULL) {
307 CPYN(tbuf[tsize].tline, wb.ut_line);
308 tbuf[tsize].tdev = lintodev(wb.ut_line);
315 struct tbuf *tp;
318 for (tp = tbuf; tp <= &tbuf[tsize]; tp++)
323 * update tbuf with new time, write ctmp record for end of session
326 update(struct tbuf *tp)
328 time_t told, /* last time for tbuf record */
414 struct tbuf *tp;
424 qsort((char *)tbuf, tsize + 1, sizeof (tbuf[0]),
426 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) {
447 tcmp(struct tbuf *t1, struct tbuf *t2)