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

/macosx-10.10.1/Libc-1044.1.2/util/
H A Dlogwtmp.c71 struct utmpx utx; local
81 bzero(&utx, sizeof(utx));
87 utx.ut_type = strcmp(name, "reboot") == 0 ? BOOT_TIME : SHUTDOWN_TIME;
89 strncpy(utx.ut_user, name, sizeof(utx.ut_user));
90 strncpy(utx.ut_line, line, sizeof(utx.ut_line));
91 utx.ut_pid = getpid();
92 utx
[all...]
H A Dlogout.c70 struct utmpx *ux, utx; local
82 bzero(&utx, sizeof(utx));
83 strncpy(utx.ut_line, line, sizeof(utx.ut_line));
84 utx.ut_type = UTMPX_AUTOFILL_MASK | UTMPX_DEAD_IF_CORRESPONDING_MASK | DEAD_PROCESS;
85 (void)gettimeofday(&utx.ut_tv, NULL);
88 ux = __pututxline(def_utx, &utx);
/macosx-10.10.1/Heimdal-398.1.2/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...]
/macosx-10.10.1/ntp-92/libntp/
H A Dsystime.c280 struct utmpx utx; local
287 memset((char *)&utx, 0, sizeof(utx));
312 utx.ut_type = OLD_TIME;
313 (void)strcpy(utx.ut_line, OTIME_MSG);
314 utx.ut_tv = oldtimetv;
315 pututxline(&utx);
317 utx.ut_type = NEW_TIME;
318 (void)strcpy(utx.ut_line, NTIME_MSG);
319 utx
[all...]
/macosx-10.10.1/OpenSSH-189/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...]
/macosx-10.10.1/Libc-1044.1.2/gen/NetBSD/
H A Dutmpx.c251 _getutxid(struct _utmpx *U, const struct utmpx *utx) argument
257 if (utx->ut_type == EMPTY)
263 ux = _utmpx_working_copy(utx, &temp, 1);
276 getutxid(const struct utmpx *utx) argument
278 return _getutxid(__default_utx(), utx);
283 __getutxid(struct _utmpx *U, const struct utmpx *utx) argument
289 switch (utx->ut_type) {
296 if (U->ut.ut_type == utx->ut_type)
308 if (memcmp(U->ut.ut_id, utx->ut_id,
325 __getutxline(struct _utmpx *U, const struct utmpx *utx) argument
346 _getutxline(struct _utmpx *U, const struct utmpx *utx) argument
359 getutxline(const struct utmpx *utx) argument
366 _pututxline(struct _utmpx *U, const struct utmpx *utx) argument
389 pututxline(const struct utmpx *utx) argument
395 __pututxline(struct _utmpx *U, const struct utmpx *utx) argument
[all...]
/macosx-10.10.1/system_cmds-643.1.1/reboot.tproj/
H A Dreboot.c196 struct utmpx utx; local
197 bzero(&utx, sizeof(utx));
198 utx.ut_type = SHUTDOWN_TIME;
199 gettimeofday(&utx.ut_tv, NULL);
200 pututxline(&utx);
/macosx-10.10.1/syslog-267/syslogd.tproj/
H A Dsyslogd.c388 struct utmpx utx; local
408 bzero(&utx, sizeof(utx));
409 utx.ut_type = BOOT_TIME;
410 utx.ut_pid = 1;
414 if (sysctl(mib, 2, &utx.ut_tv, &len, NULL, 0) < 0)
416 gettimeofday(&utx.ut_tv, NULL);
419 pututxline(&utx);
430 snprintf(buf, sizeof(buf), "BOOT_TIME %lu %u", (unsigned long)utx.ut_tv.tv_sec, (unsigned int)utx
[all...]
/macosx-10.10.1/shell_cmds-179/who/
H A Dutmpentry.c198 struct utmpx *utx; local
220 while ((what & 1) && (utx = getutxent()) != NULL) {
222 if (((1 << utx->ut_type) & etype) == 0)
224 if (fname == NULL && ((1 << utx->ut_type) & etype) == 0)
231 getentryx(ep, utx);
/macosx-10.10.1/system_cmds-643.1.1/shutdown.tproj/
H A Dshutdown.c480 struct utmpx utx; local
481 bzero(&utx, sizeof(utx));
482 utx.ut_type = SHUTDOWN_TIME;
483 gettimeofday(&utx.ut_tv, NULL);
484 pututxline(&utx);
/macosx-10.10.1/ppp-786.1.1/Helpers/pppd/
H A Dauth.c1832 struct utmpx utx; local
1834 bzero(&utx, sizeof(utx));
1839 utx.ut_type = UTMPX_AUTOFILL_MASK | LOGIN_PROCESS;
1840 (void)strncpy(utx.ut_line, tty, sizeof(utx.ut_line));
1841 (void)pututxline(&utx);
1893 struct utmpx utx;
1895 bzero(&utx, sizeof(utx));
[all...]
/macosx-10.10.1/Libc-1044.1.2/gen/
H A Dutmpx-darwin.c435 _utmpx_working_copy(const struct utmpx *utx, struct utmpx *temp, int onlyid) argument
440 if ((utx->ut_type & (UTMPX_AUTOFILL_MASK | UTMPX_DEAD_IF_CORRESPONDING_MASK)) == 0)
441 return utx;
442 memcpy(temp, utx, sizeof(*temp));
445 if ((utx->ut_type & UTMPX_AUTOFILL_MASK) == 0)
693 static struct utmpx utx; local
715 msg2utmpx(m, &utx);
716 return &utx;
/macosx-10.10.1/configd-699.1.5/Plugins/Logger/
H A Dlogger.c1687 utmpx_t utx; local
1694 utx = _openutx(NULL);
1695 while ((utmpx = _getutxent(utx)) != NULL) {
1783 _endutxent(utx);

Completed in 296 milliseconds