Lines Matching refs:unit
187 int unit; in flush() local
194 unit = didfds ? 2 : SHDIAG; in flush()
196 unit = didfds ? 1 : SHOUT; in flush()
199 if (didfds == 0 && ioctl(unit, TIOCLGET, (char *)&lmode) == 0 && in flush()
202 (void) ioctl(unit, TIOCLBIC, (char *)&lmode); in flush()
203 (void) write(unit, "\n", 1); in flush()
206 (void) write(unit, linbuf, linp - linbuf); in flush()
216 int unit; in write_string() local
223 unit = didfds ? 2 : SHDIAG; in write_string()
225 unit = didfds ? 1 : SHOUT; in write_string()
228 (void) write(unit, s, strlen(s)); in write_string()