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

/freebsd-10.0-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.0-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.0-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.0-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.0-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 DMakefile195 _utx= utx
/freebsd-10.0-release/crypto/openssh/
H A Dloginrec.c727 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 Dsystime.c269 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 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.0-release/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c72 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 Ddate.c184 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 Dreboot.c68 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 D200.accounting18 W=/var/log/utx.log
/freebsd-10.0-release/etc/
H A Dnewsyslog.conf38 /var/log/utx.log 644 3 * @01T05 B
/freebsd-10.0-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.0-release/usr.sbin/
H A DMakefile310 SUBDIR+= utx

Completed in 199 milliseconds