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

/freebsd-10.1-release/usr.sbin/utx/
H A DMakefile3 PROG= utx
4 MAN= utx.8
6 LINKS= ${BINDIR}/utx ${BINDIR}/utxrm
7 MLINKS= utx.8 utxrm.8
H A Dutx.c54 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.1-release/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-10.1-release/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-10.1-release/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-10.1-release/etc/rc.d/
H A Dvar103 # 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 DMakefile200 _utx= utx
/freebsd-10.1-release/crypto/openssh/
H A Dloginrec.c730 set_utmpx_time(struct logininfo *li, struct utmpx *utx) argument
733 utx->ut_tv.tv_sec = li->tv_sec;
734 utx->ut_tv.tv_usec = li->tv_usec;
736 utx->ut_time = li->tv_sec;
741 construct_utmpx(struct logininfo *li, struct utmpx *utx) argument
746 memset(utx, '\0', sizeof(*utx));
749 line_abbrevname(utx->ut_id, li->line, sizeof(utx->ut_id));
755 utx
998 utmpx_write_library(struct logininfo *li, struct utmpx *utx) argument
1013 utmpx_write_direct(struct logininfo *li, struct utmpx *utx) argument
1023 struct utmpx utx; local
1044 struct utmpx utx; local
1260 wtmpx_write(struct logininfo *li, struct utmpx *utx) argument
1292 struct utmpx utx; local
1302 struct utmpx utx; local
1328 wtmpx_islogin(struct logininfo *li, struct utmpx *utx) argument
1347 struct utmpx utx; local
1628 struct utmpx *utx; local
[all...]
/freebsd-10.1-release/contrib/ntp/libntp/
H A Dsystime.c491 struct utmpx utx; local
498 ZERO(utx);
528 utx.ut_type = OLD_TIME;
529 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line));
530 utx.ut_tv = tvlast;
532 pututxline(&utx);
533 utx.ut_type = NEW_TIME;
534 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx
[all...]
/freebsd-10.1-release/usr.bin/who/
H A Dwho.c227 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.1-release/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-10.1-release/bin/date/
H A Ddate.c200 struct utmpx utx; local
291 utx.ut_type = OLD_TIME;
292 (void)gettimeofday(&utx.ut_tv, NULL);
293 pututxline(&utx);
298 utx.ut_type = NEW_TIME;
299 (void)gettimeofday(&utx.ut_tv, NULL);
300 pututxline(&utx);
/freebsd-10.1-release/sbin/reboot/
H A Dreboot.c68 struct utmpx utx; local
145 utx.ut_type = SHUTDOWN_TIME;
146 gettimeofday(&utx.ut_tv, NULL);
147 pututxline(&utx);
/freebsd-10.1-release/etc/periodic/monthly/
H A D200.accounting18 W=/var/log/utx.log
/freebsd-10.1-release/etc/
H A Dnewsyslog.conf38 /var/log/utx.log 644 3 * @01T05 B
/freebsd-10.1-release/usr.sbin/timed/timed/
H A Dmaster.c347 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 Dslave.c78 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.1-release/usr.sbin/
H A DMakefile320 SUBDIR+= utx

Completed in 1913 milliseconds