/src/lib/libc/gen/ |
utmp.c | 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; variable in typeref:struct: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 [all...] |
/src/include/ |
utmp.h | 1 /* $NetBSD: utmp.h,v 1.13 2016/01/22 23:59:44 dholland Exp $ */ 36 * @(#)utmp.h 8.2 (Berkeley) 1/21/94 45 #define _PATH_UTMP "/var/run/utmp" 59 struct utmp { struct 70 struct utmp *getutent(void) __RENAME(__getutent50);
|
/src/lib/libpam/modules/pam_lastlog/ |
pam_lastlog.c | 78 #include <utmp.h> 240 logit(LOG_NOTICE, "%s(): no utmp record for %s", 338 struct utmp utmp; local in function:doutmp 340 (void)memset((void *)&utmp, 0, sizeof(utmp)); 341 utmp.ut_time = now->tv_sec; 342 (void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name)); 344 (void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host)) [all...] |
/src/libexec/comsat/ |
comsat.c | 66 #include <utmp.h> 86 static struct utmpentry *utmp = NULL; variable in typeref:struct:utmpentry * 182 nutmp = getutentries(NULL, &utmp); 214 for (ep = utmp; ep != NULL; ep = ep->next)
|
/src/usr.bin/login/ |
common.c | 61 #include <utmp.h> 302 struct utmp utmp; local in function:doutmp 304 (void)memset((void *)&utmp, 0, sizeof(utmp)); 305 utmp.ut_time = now.tv_sec; 306 (void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name)); 308 (void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host)) [all...] |
/src/usr.bin/last/ |
last.c | 63 #include <utmp.h> 248 errx(EXIT_FAILURE, "No utmp or utmpx support compiled in."); 261 errx(EXIT_FAILURE, "No utmp or utmpx support compiled in."); 392 #define utmp utmpx macro
|
/src/libexec/ftpd/ |
ftpd.c | 147 #include <utmp.h> 186 int doutmp; /* update utmp file */ 203 static struct utmp utmp; /* for utmp */ variable in typeref:struct:utmp 306 doutmp = 0; /* default: Do NOT log to utmp */ 1245 (void)memset(&utmp, 0, sizeof(utmp)); 1246 (void)time(&utmp.ut_time); 1247 (void)strncpy(utmp.ut_name, name, sizeof(utmp.ut_name)) [all...] |