Lines Matching refs:utmp
17 Modified by cmetz for OPIE 2.4. Do utmp checks on utmpx systems.
44 #define utmp utmpx
47 #include <utmp.h>
66 struct utmp utmp;
130 memset(&utmp, 0, sizeof(struct utmp));
132 int i = __opiegetutmpentry(ttyname(0), &utmp);
134 if (!i && utmp.ut_host[0]) {
135 char host[sizeof(utmp.ut_host) + 1];
138 strncpy(host, utmp.ut_host, sizeof(utmp.ut_host));
139 host[sizeof(utmp.ut_host)] = 0;