Searched refs:utx (Results 1 - 19 of 19) sorted by relevance

/freebsd-11-stable/usr.sbin/utx/
H A DMakefile3 PROG= utx
4 MAN= utx.8
H A Dutx.c30 __FBSDID("$FreeBSD: stable/11/usr.sbin/utx/utx.c 330449 2018-03-05 07:26:05Z eadler $");
56 struct utmpx utx = { .ut_type = DEAD_PROCESS }; local
60 (void)gettimeofday(&utx.ut_tv, NULL);
63 if (len <= sizeof(utx.ut_id)) {
65 strncpy(utx.ut_id, *id, sizeof(utx.ut_id));
66 } else if (len != sizeof(utx.ut_id) * 2 ||
67 b16_pton(*id, utx.ut_id, sizeof(utx
86 struct utmpx utx = { .ut_type = type }; local
[all...]
/freebsd-11-stable/lib/libulog/
H A Dulog_login.c40 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-11-stable/contrib/opie/libopie/
H A Dlogwtmp.c121 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-11-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c118 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-11-stable/crypto/openssh/
H A Dloginrec.c733 set_utmpx_time(struct logininfo *li, struct utmpx *utx) argument
736 utx->ut_tv.tv_sec = li->tv_sec;
737 utx->ut_tv.tv_usec = li->tv_usec;
739 utx->ut_time = li->tv_sec;
744 construct_utmpx(struct logininfo *li, struct utmpx *utx) argument
749 memset(utx, '\0', sizeof(*utx));
752 line_abbrevname(utx->ut_id, li->line, sizeof(utx->ut_id));
758 utx
1001 utmpx_write_library(struct logininfo *li, struct utmpx *utx) argument
1016 utmpx_write_direct(struct logininfo *li, struct utmpx *utx) argument
1026 struct utmpx utx; local
1047 struct utmpx utx; local
1263 wtmpx_write(struct logininfo *li, struct utmpx *utx) argument
1295 struct utmpx utx; local
1305 struct utmpx utx; local
1331 wtmpx_islogin(struct logininfo *li, struct utmpx *utx) argument
1350 struct utmpx utx; local
1631 struct utmpx *utx; local
[all...]
/freebsd-11-stable/etc/rc.d/
H A Dvar104 # Make sure we have /var/log/utx.lastlogin and /var/log/utx.log files
105 if [ ! -f /var/log/utx.lastlogin ]; then
106 cp /dev/null /var/log/utx.lastlogin
107 chmod 644 /var/log/utx.lastlogin
109 if [ ! -f /var/log/utx.log ]; then
110 cp /dev/null /var/log/utx.log
111 chmod 644 /var/log/utx.log
H A DMakefile307 _utx= utx
/freebsd-11-stable/contrib/ntp/libntp/
H A Dsystime.c409 struct utmpx utx; local
416 ZERO(utx);
446 utx.ut_type = OLD_TIME;
447 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line));
448 utx.ut_tv = tvlast;
450 pututxline(&utx);
451 utx.ut_type = NEW_TIME;
452 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx
[all...]
/freebsd-11-stable/usr.bin/who/
H A Dwho.c229 struct utmpx *utx; local
231 while ((utx = getutxent()) != NULL) {
232 if (((aflag || !bflag) && utx->ut_type == USER_PROCESS) ||
233 (bflag && utx->ut_type == BOOT_TIME))
234 if (ttystat(utx->ut_line) == 0)
235 row(utx);
242 struct utmpx *utx; local
247 while ((utx = getutxent()) != NULL) {
248 if (utx->ut_type != USER_PROCESS)
250 printf("%-16s", utx
268 struct utmpx ut, *utx; local
[all...]
/freebsd-11-stable/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c70 struct utmpx *utx, utl; local
107 utx = getutxuser(user);
108 if (utx != NULL && utx->ut_type == USER_PROCESS) {
109 t = utx->ut_tv.tv_sec;
110 if (*utx->ut_host != '\0')
112 24 - 5, ctime(&t), utx->ut_host);
115 24 - 5, ctime(&t), utx->ut_line);
/freebsd-11-stable/bin/date/
H A Ddate.c208 struct utmpx utx; local
301 utx.ut_type = OLD_TIME;
302 (void)gettimeofday(&utx.ut_tv, NULL);
303 pututxline(&utx);
308 utx.ut_type = NEW_TIME;
309 (void)gettimeofday(&utx.ut_tv, NULL);
310 pututxline(&utx);
/freebsd-11-stable/sbin/reboot/
H A Dreboot.c68 struct utmpx utx; local
161 utx.ut_type = SHUTDOWN_TIME;
162 gettimeofday(&utx.ut_tv, NULL);
163 pututxline(&utx);
/freebsd-11-stable/etc/periodic/monthly/
H A D200.accounting18 W=/var/log/utx.log
/freebsd-11-stable/etc/
H A Dnewsyslog.conf38 /var/log/utx.log 644 3 * @01T05 B
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dmaster.c349 struct utmpx utx; local
371 utx.ut_type = OLD_TIME;
372 (void)gettimeofday(&utx.ut_tv, NULL);
373 pututxline(&utx);
375 utx.ut_type = NEW_TIME;
376 (void)gettimeofday(&utx.ut_tv, NULL);
377 pututxline(&utx);
H A Dslave.c78 struct utmpx utx; local
280 utx.ut_type = OLD_TIME;
281 gettimeofday(&utx.ut_tv, NULL);
282 pututxline(&utx);
284 utx.ut_type = NEW_TIME;
285 gettimeofday(&utx.ut_tv, NULL);
286 pututxline(&utx);
/freebsd-11-stable/usr.sbin/
H A DMakefile217 SUBDIR.${MK_UTMPX}+= utx
/freebsd-11-stable/targets/pseudo/userland/
H A DMakefile.depend772 usr.sbin/utx \

Completed in 134 milliseconds