| /src/lib/libc/compat/gen/ |
| compat_utmpx.c | 183 struct utmpx utx; local 184 utmpx50_to_utmpx(utx50, &utx); 185 __getutmp50(&utx, ut); 191 struct utmpx utx; local 192 __getutmpx50(ut, &utx); 193 utmpx_to_utmpx50(&utx, utx50);
|
| /src/usr.bin/who/ |
| utmpentry.c | 178 struct utmpx *utx; local 201 while ((what & 1) && (utx = getutxent()) != NULL) { 202 if (fname == NULL && ((1 << utx->ut_type) & etype) == 0) 208 getentryx(ep, utx);
|
| /src/libexec/utmp_update/ |
| utmp_update.c | 76 struct utmpx *utx; local 101 if (len > sizeof(*utx) * 4 + 1 || len < sizeof(*utx)) 104 if ((utx = malloc(len+1)) == NULL) 107 res = strunvis((char *)utx, argv[1]); 108 if (res != (int)sizeof(*utx)) 110 sizeof(*utx)); 112 switch (utx->ut_type) { 117 logerr(0, "Invalid utmpx type %d", (int)utx->ut_type); 120 p = utx->ut_host [all...] |
| /src/bin/date/ |
| date.c | 535 struct utmpx utx; local 536 memset(&utx, 0, sizeof(utx)); 537 utx.ut_type = OLD_TIME; 538 (void)gettimeofday(&utx.ut_tv, NULL); 539 pututxline(&utx); 557 utx.ut_type = NEW_TIME; 558 (void)gettimeofday(&utx.ut_tv, NULL); 559 pututxline(&utx);
|
| /src/external/bsd/ntp/dist/libntp/ |
| systime.c | 410 struct utmpx utx; local 417 ZERO(utx); 447 utx.ut_type = OLD_TIME; 448 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line)); 449 utx.ut_tv = tvlast; 451 pututxline(&utx); 452 utx.ut_type = NEW_TIME; 453 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx.ut_line)) [all...] |
| /src/usr.bin/w/ |
| w.c | 146 struct utmpx *utx; local 236 while ((utx = getutxent()) != NULL) { 237 if (utx->ut_type != USER_PROCESS) 247 strncmp(utx->ut_name, sel_user, sizeof(utx->ut_name)) != 0) 251 (void)memcpy(ep->line, utx->ut_line, sizeof(utx->ut_line)); 252 ep->line[sizeof(utx->ut_line)] = '\0'; 259 (void)memcpy(ep->name, utx->ut_name, sizeof(utx->ut_name)) [all...] |