Home
last modified time | relevance | path

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

/freebsd-14-stable/lib/libulog/
HDulog_login.c40 ulog_fill(struct utmpx *utx, const char *line) in ulog_fill() argument
49 memset(utx, 0, sizeof *utx); in ulog_fill()
51 utx->ut_pid = getpid(); in ulog_fill()
52 gettimeofday(&utx->ut_tv, NULL); in ulog_fill()
53 strlcpy(utx->ut_line, line, sizeof utx->ut_line); in ulog_fill()
57 SHA1_Update(&c, utx->ut_line, sizeof utx->ut_line); in ulog_fill()
60 memcpy(utx->ut_id, id, MIN(sizeof utx->ut_id, sizeof id)); in ulog_fill()
66 struct utmpx utx; in ulog_login() local
68 ulog_fill(&utx, line); in ulog_login()
69 utx.ut_type = USER_PROCESS; in ulog_login()
[all …]
/freebsd-14-stable/crypto/heimdal/appl/ftp/ftpd/
HDlogwtmp.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-14-stable/crypto/openssh/
HDloginrec.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-14-stable/usr.sbin/utx/
HDutx.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()
HDMakefile4 PROG= utx
5 MAN= utx.8
/freebsd-14-stable/usr.bin/who/
HDwho.c229 struct utmpx *utx; in process_utmp() local
231 while ((utx = getutxent()) != NULL) { in process_utmp()
232 if ((aflag || !bflag) && utx->ut_type == USER_PROCESS) { in process_utmp()
233 if (ttystat(utx->ut_line) == 0) in process_utmp()
234 row(utx); in process_utmp()
235 } else if (bflag && utx->ut_type == BOOT_TIME) in process_utmp()
236 row(utx); in process_utmp()
243 struct utmpx *utx; in quick() local
248 while ((utx = getutxent()) != NULL) { in quick()
249 if (utx->ut_type != USER_PROCESS) in quick()
[all …]
/freebsd-14-stable/contrib/ntp/libntp/
HDsystime.c408 struct utmpx utx; in update_uwtmp() local
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.ut_line)); in update_uwtmp()
452 utx.ut_tv = timetv; in update_uwtmp()
454 pututxline(&utx); in update_uwtmp()
[all …]
/freebsd-14-stable/lib/libpam/modules/pam_lastlog/
HDpam_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-14-stable/libexec/rc/rc.d/
HDvar104 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
HDMakefile329 _utx= utx
/freebsd-14-stable/sbin/reboot/
HDreboot.c70 struct utmpx utx; in main() local
174 utx.ut_type = SHUTDOWN_TIME; in main()
175 gettimeofday(&utx.ut_tv, NULL); in main()
176 pututxline(&utx); in main()
/freebsd-14-stable/share/security/
HDlomac-policy.contexts27 /var/run/utx.active lomac/equal
28 /var/log/utx.(lastlogin|log) lomac/equal
/freebsd-14-stable/tools/build/options/
HDWITHOUT_UTMPX8 .Xr utx 8 .
/freebsd-14-stable/usr.sbin/periodic/etc/monthly/
HD200.accounting17 W=/var/log/utx.log
/freebsd-14-stable/usr.sbin/newsyslog/
HDnewsyslog.conf31 /var/log/utx.log 644 3 * @01T05 B
/freebsd-14-stable/usr.sbin/
HDMakefile210 SUBDIR.${MK_UTMPX}+= utx
/freebsd-14-stable/targets/pseudo/userland/
HDMakefile.depend712 usr.sbin/utx \
/freebsd-14-stable/tools/build/mk/
HDOptionalObsoleteFiles.inc9106 OLD_FILES+=etc/rc.d/utx
9112 OLD_FILES+=usr/sbin/utx
9118 OLD_FILES+=usr/share/man/man8/utx.8.gz