Lines Matching defs:utmp
1 /* $NetBSD: utmp.c,v 1.10 2011/10/15 23:00:02 christos Exp $ */
34 __RCSID("$NetBSD: utmp.c,v 1.10 2011/10/15 23:00:02 christos Exp $");
43 #include <utmp.h>
46 static struct utmp utmp;
58 struct utmp *
69 * If we have a an old version utmp file bail.
71 numentries = st.st_size / sizeof(utmp);
72 if ((off_t)(numentries * sizeof(utmp)) != st.st_size)
75 if (fread(&utmp, sizeof(utmp), 1, ut) == 1)
76 return &utmp;