/freebsd-10.0-release/usr.sbin/utx/ |
H A D | Makefile | 3 PROG= utx 4 MAN= utx.8 6 LINKS= ${BINDIR}/utx ${BINDIR}/utxrm 7 MLINKS= utx.8 utxrm.8
|
H A D | utx.c | 54 struct utmpx utx = { .ut_type = DEAD_PROCESS }; local 58 (void)gettimeofday(&utx.ut_tv, NULL); 61 if (len <= sizeof(utx.ut_id)) { 63 strncpy(utx.ut_id, *id, sizeof(utx.ut_id)); 64 } else if (len != sizeof(utx.ut_id) * 2 || 65 b16_pton(*id, utx.ut_id, sizeof(utx.ut_id)) != 0) { 73 if (pututxline(&utx) == NULL) { 84 struct utmpx utx local [all...] |
/freebsd-10.0-release/lib/libulog/ |
H A D | ulog_login.c | 40 ulog_fill(struct utmpx *utx, const char *line) argument 49 memset(utx, 0, sizeof *utx); 51 utx->ut_pid = getpid(); 52 gettimeofday(&utx->ut_tv, NULL); 53 strncpy(utx->ut_line, line, sizeof utx->ut_line); 57 SHA1_Update(&c, utx->ut_line, sizeof utx->ut_line); 60 memcpy(utx 66 struct utmpx utx; local 79 struct utmpx utx; local [all...] |
/freebsd-10.0-release/contrib/opie/libopie/ |
H A D | logwtmp.c | 121 struct utmpx utx; local 165 memset(&utx, 0, sizeof(struct utmpx)); 170 strncpy(utx.ut_line, line, sizeof(utx.ut_line)); 171 strncpy(utx.ut_name, name, sizeof(utx.ut_name)); 172 strncpy(utx.ut_host, host, sizeof(utx.ut_host)); 175 utx.ut_type = USER_PROCESS; 177 utx [all...] |
/freebsd-10.0-release/crypto/heimdal/appl/ftp/ftpd/ |
H A D | logwtmp.c | 118 struct utmpx utx; local 122 memset(&utx, 0, sizeof(struct utmpx)); 144 strncpy(utx.ut_line, line, sizeof(utx.ut_line)); 145 strncpy(utx.ut_user, name, sizeof(utx.ut_user)); 146 strncpy(utx.ut_host, host, sizeof(utx.ut_host)); 148 utx.ut_syslen = strlen(host) + 1; 149 if (utx [all...] |
/freebsd-10.0-release/etc/rc.d/ |
H A D | var | 103 # Make sure we have /var/log/utx.lastlogin and /var/log/utx.log files 104 if [ ! -f /var/log/utx.lastlogin ]; then 105 cp /dev/null /var/log/utx.lastlogin 106 chmod 644 /var/log/utx.lastlogin 108 if [ ! -f /var/log/utx.log ]; then 109 cp /dev/null /var/log/utx.log 110 chmod 644 /var/log/utx.log
|
H A D | Makefile | 195 _utx= utx
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | loginrec.c | 727 set_utmpx_time(struct logininfo *li, struct utmpx *utx) argument 730 utx->ut_tv.tv_sec = li->tv_sec; 731 utx->ut_tv.tv_usec = li->tv_usec; 733 utx->ut_time = li->tv_sec; 738 construct_utmpx(struct logininfo *li, struct utmpx *utx) argument 743 memset(utx, '\0', sizeof(*utx)); 746 line_abbrevname(utx->ut_id, li->line, sizeof(utx->ut_id)); 752 utx 995 utmpx_write_library(struct logininfo *li, struct utmpx *utx) argument 1010 utmpx_write_direct(struct logininfo *li, struct utmpx *utx) argument 1020 struct utmpx utx; local 1041 struct utmpx utx; local 1257 wtmpx_write(struct logininfo *li, struct utmpx *utx) argument 1289 struct utmpx utx; local 1299 struct utmpx utx; local 1325 wtmpx_islogin(struct logininfo *li, struct utmpx *utx) argument 1344 struct utmpx utx; local 1625 struct utmpx *utx; local [all...] |
/freebsd-10.0-release/contrib/ntp/libntp/ |
H A D | systime.c | 269 struct utmpx utx; local 276 memset((char *)&utx, 0, sizeof(utx)); 301 utx.ut_type = OLD_TIME; 302 (void)strcpy(utx.ut_line, OTIME_MSG); 303 utx.ut_tv = oldtimetv; 304 pututxline(&utx); 306 utx.ut_type = NEW_TIME; 307 (void)strcpy(utx.ut_line, NTIME_MSG); 308 utx [all...] |
/freebsd-10.0-release/usr.bin/who/ |
H A D | who.c | 227 struct utmpx *utx; local 229 while ((utx = getutxent()) != NULL) { 230 if (((aflag || !bflag) && utx->ut_type == USER_PROCESS) || 231 (bflag && utx->ut_type == BOOT_TIME)) 232 if (ttystat(utx->ut_line) == 0) 233 row(utx); 240 struct utmpx *utx; local 245 while ((utx = getutxent()) != NULL) { 246 if (utx->ut_type != USER_PROCESS) 248 printf("%-16s", utx 266 struct utmpx ut, *utx; local [all...] |
/freebsd-10.0-release/lib/libpam/modules/pam_lastlog/ |
H A D | pam_lastlog.c | 72 struct utmpx *utx, utl; local 109 utx = getutxuser(user); 110 if (utx != NULL && utx->ut_type == USER_PROCESS) { 111 t = utx->ut_tv.tv_sec; 112 if (*utx->ut_host != '\0') 114 24 - 5, ctime(&t), utx->ut_host); 117 24 - 5, ctime(&t), utx->ut_line);
|
/freebsd-10.0-release/bin/date/ |
H A D | date.c | 184 struct utmpx utx; local 275 utx.ut_type = OLD_TIME; 276 (void)gettimeofday(&utx.ut_tv, NULL); 277 pututxline(&utx); 282 utx.ut_type = NEW_TIME; 283 (void)gettimeofday(&utx.ut_tv, NULL); 284 pututxline(&utx);
|
/freebsd-10.0-release/sbin/reboot/ |
H A D | reboot.c | 68 struct utmpx utx; local 145 utx.ut_type = SHUTDOWN_TIME; 146 gettimeofday(&utx.ut_tv, NULL); 147 pututxline(&utx);
|
/freebsd-10.0-release/etc/periodic/monthly/ |
H A D | 200.accounting | 18 W=/var/log/utx.log
|
/freebsd-10.0-release/etc/ |
H A D | newsyslog.conf | 38 /var/log/utx.log 644 3 * @01T05 B
|
/freebsd-10.0-release/usr.sbin/timed/timed/ |
H A D | master.c | 347 struct utmpx utx; local 369 utx.ut_type = OLD_TIME; 370 (void)gettimeofday(&utx.ut_tv, NULL); 371 pututxline(&utx); 373 utx.ut_type = NEW_TIME; 374 (void)gettimeofday(&utx.ut_tv, NULL); 375 pututxline(&utx);
|
H A D | slave.c | 78 struct utmpx utx; local 279 utx.ut_type = OLD_TIME; 280 gettimeofday(&utx.ut_tv, NULL); 281 pututxline(&utx); 283 utx.ut_type = NEW_TIME; 284 gettimeofday(&utx.ut_tv, NULL); 285 pututxline(&utx);
|
/freebsd-10.0-release/usr.sbin/ |
H A D | Makefile | 310 SUBDIR+= utx
|