2 * getutline.c: not-quite-compatible replacement for getutline(3)
3 * by nathan bryant, feb 1999
15 struct utmp *getutline(struct utmp *ut)
17 static struct utmp retval;
20 if ((utmp = fopen(_PATH_UTMP, "rb")) == NULL)
24 if (!fread(&retval, sizeof retval, 1, utmp))
29 while (strcmp(ut->ut_line, retval.ut_line));
34 #endif /* HAVE_UTMP_H */