Lines Matching defs:tbuf
54 int tsize = -1; /* used slots in tbuf table */
58 struct tbuf {
67 } * tbuf;
96 static void update(struct tbuf *);
129 if ((tbuf = (struct tbuf *) calloc(a_tsize,
130 sizeof (struct tbuf))) == NULL) {
243 struct tbuf *tp;
255 for (tp = tbuf; tp <= &tbuf[tsize]; tp++)
271 update(&tbuf[iline()]);
309 * iline: look up/enter current line name in tbuf, return index
318 if (EQN(wb.ut_line, tbuf[i].tline))
322 if ((tbuf = (struct tbuf *) realloc(tbuf, a_tsize *
323 sizeof (struct tbuf))) == NULL) {
329 CPYN(tbuf[tsize].tline, wb.ut_line);
330 tbuf[tsize].tdev = lintodev(wb.ut_line);
337 struct tbuf *tp;
340 for (tp = tbuf; tp <= &tbuf[tsize]; tp++)
345 * update tbuf with new time, write ctmp record for end of session
348 update(struct tbuf *tp)
350 time_t told, /* last time for tbuf record */
438 struct tbuf *tp;
449 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) {