Lines Matching refs:ttnames
103 static char **ttnames; variable
256 ttnames = calloc(lines, sizeof (char *)); in main()
258 if (ttnames == NULL || logouts == NULL) { in main()
270 if (ttnames[i] == NULL) { in main()
280 (void) strlcpy(ttnames[i], bp->ut_line, in main()
282 (void) strlcpy(ttnames[i]+LMAX+1, in main()
284 (void) strlcpy(ttnames[i]+LMAX+HMAX+2, in main()
289 } else if (linehostnameq(ttnames[i], in main()
471 tmpttnames = realloc(ttnames, sizeof (char *)*lines); in reallocate_buffer()
477 ttnames = tmpttnames; in reallocate_buffer()
481 ttnames[j] = NULL; in reallocate_buffer()
489 ttnames[i] = (char *)malloc(LMAX + HMAX + NMAX + 3); in memory_alloc()
490 if (ttnames[i] == NULL) { in memory_alloc()