Lines Matching refs:tp
94 tee_cleanup(register Tee_t* tp)
99 if (tp)
102 if (tp->line >= 0)
103 sfset(sfstdout, SF_LINE, tp->line);
104 for (hp = tp->fd; (n = *hp) >= 0; hp++)
112 register Tee_t* tp = 0;
120 if (context && (tp = (Tee_t*)sh_context(context)->data))
123 tee_cleanup(tp);
170 if (tp = (Tee_t*)stakalloc(sizeof(Tee_t) + argc * sizeof(int)))
172 memset(&tp->disc, 0, sizeof(tp->disc));
173 tp->disc.writef = tee_write;
175 sh_context(context)->data = (void*)tp;
176 tp->line = line;
177 hp = tp->fd;
187 if (hp == tp->fd)
188 tp = 0;
192 sfdisc(sfstdout, &tp->disc);
202 tee_cleanup(tp);