2 * getutline.c: not-quite-compatible replacement for getutline(3)
3 * by nathan bryant, feb 1999
13 struct utmp *getutline(const struct utmp *ut)
15 static struct utmp retval;
18 if ((utmp = fopen(_PATH_UTMP, "rb")) == NULL)
22 if (!fread(&retval, sizeof retval, 1, utmp))
27 while (ut->ut_line != retval.ut_line);
32 #endif /* HAVE_UTMP_H */