2 * getutline.c: not-quite-compatible replacement for getutline(3)
3 * by nathan bryant, feb 1999
14 struct utmp *getutline(struct utmp *ut)
16 static struct utmp retval;
19 if ((utmp = fopen(_PATH_UTMP, "rb")) == NULL)
23 if (!fread(&retval, sizeof retval, 1, utmp))
28 while (ut->ut_line != retval.ut_line);
33 #endif /* HAVE_UTMP_H */