Home
last modified time | relevance | path

Searched refs:utx (Results 1 – 20 of 20) sorted by relevance

/freebsd/lib/libulog/
H A Dulog_login.c39 ulog_fill(struct utmpx *utx, const char *line) in ulog_fill() argument
48 memset(utx, 0, sizeof *utx); in ulog_fill()
50 utx->ut_pid = getpid(); in ulog_fill()
51 gettimeofday(&utx->ut_tv, NULL); in ulog_fill()
52 strlcpy(utx->ut_line, line, sizeof utx->ut_line); in ulog_fill()
56 SHA1_Update(&c, utx->ut_line, sizeof utx->ut_line); in ulog_fill()
59 memcpy(utx in ulog_fill()
65 struct utmpx utx; ulog_login() local
78 struct utmpx utx; ulog_logout() local
[all...]
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c118 struct utmpx utx; in ftpd_logwtmp_wtmp() local
122 memset(&utx, 0, sizeof(struct utmpx)); in ftpd_logwtmp_wtmp()
144 strncpy(utx.ut_line, line, sizeof(utx.ut_line)); in ftpd_logwtmp_wtmp()
145 strncpy(utx.ut_user, name, sizeof(utx.ut_user)); in ftpd_logwtmp_wtmp()
146 strncpy(utx.ut_host, host, sizeof(utx.ut_host)); in ftpd_logwtmp_wtmp()
148 utx.ut_syslen = strlen(host) + 1; in ftpd_logwtmp_wtmp()
149 if (utx.ut_syslen > sizeof(utx.ut_host)) in ftpd_logwtmp_wtmp()
150 utx.ut_syslen = sizeof(utx.ut_host); in ftpd_logwtmp_wtmp()
156 utx.ut_tv.tv_sec = tv.tv_sec; in ftpd_logwtmp_wtmp()
157 utx.ut_tv.tv_usec = tv.tv_usec; in ftpd_logwtmp_wtmp()
[all …]
/freebsd/crypto/openssh/
H A Dloginrec.c713 set_utmpx_time(struct logininfo *li, struct utmpx *utx) in set_utmpx_time() argument
716 utx->ut_tv.tv_sec = li->tv_sec; in set_utmpx_time()
717 utx->ut_tv.tv_usec = li->tv_usec; in set_utmpx_time()
719 utx->ut_time = li->tv_sec; in set_utmpx_time()
724 construct_utmpx(struct logininfo *li, struct utmpx *utx) in construct_utmpx() argument
729 memset(utx, '\0', sizeof(*utx)); in construct_utmpx()
732 line_abbrevname(utx->ut_id, li->line, sizeof(utx->ut_id)); in construct_utmpx()
738 utx->ut_type = USER_PROCESS; in construct_utmpx()
741 utx->ut_type = DEAD_PROCESS; in construct_utmpx()
744 line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); in construct_utmpx()
[all …]
/freebsd/usr.sbin/utx/
H A Dutx.c54 struct utmpx utx = { .ut_type = DEAD_PROCESS }; in rm() local
58 (void)gettimeofday(&utx.ut_tv, NULL); in rm()
61 if (len <= sizeof(utx.ut_id)) { in rm()
63 strncpy(utx.ut_id, *id, sizeof(utx.ut_id)); in rm()
64 } else if (len != sizeof(utx.ut_id) * 2 || in rm()
65 b16_pton(*id, utx.ut_id, sizeof(utx.ut_id)) != 0) { in rm()
73 if (pututxline(&utx) == NULL) { in rm()
84 struct utmpx utx = { .ut_type = type }; in boot() local
86 (void)gettimeofday(&utx.ut_tv, NULL); in boot()
87 if (pututxline(&utx) == NULL) { in boot()
H A DMakefile3 PROG= utx
4 MAN= utx.8
/freebsd/usr.bin/who/
H A Dwho.c228 struct utmpx *utx; in process_utmp() local
230 while ((utx = getutxent()) != NULL) { in process_utmp()
231 if ((aflag || !bflag) && utx->ut_type == USER_PROCESS) { in process_utmp()
232 if (ttystat(utx->ut_line) == 0) in process_utmp()
233 row(utx); in process_utmp()
234 } else if (bflag && utx->ut_type == BOOT_TIME) in process_utmp()
235 row(utx); in process_utmp()
242 struct utmpx *utx; in quick() local
247 while ((utx = getutxent()) != NULL) { in quick()
248 if (utx->ut_type != USER_PROCESS) in quick()
[all …]
/freebsd/contrib/ntp/libntp/
H A Dsystime.c408 struct utmpx utx; in update_uwtmp()
415 ZERO(utx); in update_uwtmp()
445 utx.ut_type = OLD_TIME; in update_uwtmp()
446 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line)); in update_uwtmp()
447 utx.ut_tv = tvlast; in update_uwtmp()
449 pututxline(&utx); in update_uwtmp()
450 utx.ut_type = NEW_TIME; in update_uwtmp()
451 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx in update_uwtmp()
409 struct utmpx utx; update_uwtmp() local
[all...]
/freebsd/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c70 struct utmpx *utx, utl; in pam_sm_open_session() local
107 utx = getutxuser(user); in pam_sm_open_session()
108 if (utx != NULL && utx->ut_type == USER_PROCESS) { in pam_sm_open_session()
109 t = utx->ut_tv.tv_sec; in pam_sm_open_session()
110 if (*utx->ut_host != '\0') in pam_sm_open_session()
112 24 - 5, ctime(&t), utx->ut_host); in pam_sm_open_session()
115 24 - 5, ctime(&t), utx->ut_line); in pam_sm_open_session()
/freebsd/libexec/rc/rc.d/
H A Dvar107 if [ ! -f /var/log/utx.lastlogin ]; then
108 cp /dev/null /var/log/utx.lastlogin
109 chmod 644 /var/log/utx.lastlogin
111 if [ ! -f /var/log/utx.log ]; then
112 cp /dev/null /var/log/utx.log
113 chmod 644 /var/log/utx.log
H A DMakefile334 _utx= utx
/freebsd/bin/date/
H A Ddate.c251 struct utmpx utx; in setthetime() local
344 utx.ut_type = OLD_TIME; in setthetime()
345 memset(utx.ut_id, 0, sizeof(utx.ut_id)); in setthetime()
346 (void)gettimeofday(&utx.ut_tv, NULL); in setthetime()
347 pututxline(&utx); in setthetime()
350 utx.ut_type = NEW_TIME; in setthetime()
351 (void)gettimeofday(&utx.ut_tv, NULL); in setthetime()
352 pututxline(&utx); in setthetime()
/freebsd/sbin/reboot/
H A Dreboot.c223 struct utmpx utx; in main() local
385 utx.ut_type = SHUTDOWN_TIME; in main()
386 gettimeofday(&utx.ut_tv, NULL); in main()
387 pututxline(&utx); in main()
/freebsd/share/security/
H A Dlomac-policy.contexts27 /var/run/utx.active lomac/equal
28 /var/log/utx.(lastlogin|log) lomac/equal
/freebsd/tools/build/options/
H A DWITHOUT_UTMPX8 .Xr utx 8 .
/freebsd/usr.sbin/periodic/etc/monthly/
H A D200.accounting17 W=/var/log/utx.log
/freebsd/usr.sbin/newsyslog/
H A Dnewsyslog.conf31 /var/log/utx.log 644 3 * @01T05 B
/freebsd/usr.sbin/
H A DMakefile208 SUBDIR.${MK_UTMPX}+= utx
/freebsd/targets/pseudo/userland/
H A DMakefile.depend708 usr.sbin/utx \
/freebsd/tools/build/mk/
H A DOptionalObsoleteFiles.inc8896 OLD_FILES+=etc/rc.d/utx
8902 OLD_FILES+=usr/sbin/utx
8908 OLD_FILES+=usr/share/man/man8/utx.8.gz
/freebsd/
H A DObsoleteFiles.inc15514 # 20131103: removal of utxrm(8), use 'utx rm' instead