Lines Matching defs:utmp
70 struct utmpx *utmp = NULL;
73 unsigned utmpmtime = 0; /* last modification time for utmp */
74 unsigned utmpsize = 0; /* last malloced size for utmp */
231 if (utmp)
232 utmp = (struct utmpx *)realloc(utmp, utmpsize);
234 utmp = (struct utmpx *)malloc(utmpsize);
235 if (! utmp) {
241 nutmp = read(uf, utmp, statbf.st_size)/sizeof (struct utmpx);
250 struct utmpx *utp = &utmp[nutmp];
259 if (utmp == NULL || nutmp == 0)
271 while (--utp >= utmp)
273 (!strncmp(utp->ut_name, name, sizeof (utmp[0].ut_name))))
285 char tty[sizeof (utmp[0].ut_line) + 5];
286 char name[sizeof (utmp[0].ut_name) + 1];
326 * We need to make sure that the tty listed in the utmp
327 * file really is a tty device so that a corrupted utmp
335 dsyslog(LOG_DEBUG, "line listed in utmp file is not a tty\n");