itty
ttystats_init(struct itty **ttystats, int *ttycp, size_t *ttystatssiz)
struct itty *itp;
*ttystatssiz = ttyc * sizeof(struct itty);
*ttystats = mallocarray(ttyc, sizeof(struct itty),
struct itty *ttystats;
ttyc * sizeof(struct itty));
void ttystats_init(struct itty **, int *, size_t *);
void ttyprt(struct itty *);
void tty2itty(struct tty *tp, struct itty *itp);
struct itty *globalitp;
tty2itty(struct tty *tp, struct itty *itp)
struct itty itty;
tty2itty(&tty, &itty);
ttyprt(&itty);
if ((globalitp = reallocarray(NULL, ntty, sizeof(struct itty))) == NULL)
nlen = ntty * sizeof(struct itty);
ttyprt(struct itty *tp)