Searched refs:utx (Results 1 - 8 of 8) sorted by relevance
/netbsd-current/libexec/utmp_update/ |
H A D | 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 [all...] |
/netbsd-current/external/bsd/ntp/dist/libntp/ |
H A D | systime.c | 411 struct utmpx utx; local 418 ZERO(utx); 448 utx.ut_type = OLD_TIME; 449 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line)); 450 utx.ut_tv = tvlast; 452 pututxline(&utx); 453 utx.ut_type = NEW_TIME; 454 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx [all...] |
/netbsd-current/lib/libc/gen/ |
H A D | utmpx.c | 73 old2new(struct utmpx *utx) argument 76 struct timeval *tv = &utx->ut_tv; 83 new2old(struct utmpx *utx) argument 86 struct timeval *tv = &utx->ut_tv; 170 getutxid(const struct utmpx *utx) argument 173 _DIAGASSERT(utx != NULL); 175 if (utx->ut_type == EMPTY) 181 switch (utx->ut_type) { 188 if (ut.ut_type == utx->ut_type) 200 if (memcmp(ut.ut_id, utx 217 getutxline(const struct utmpx *utx) argument 241 pututxline(const struct utmpx *utx) argument 306 utmp_update(const struct utmpx *utx) argument 338 updwtmpx(const char *file, const struct utmpx *utx) argument [all...] |
/netbsd-current/lib/libc/compat/gen/ |
H A D | 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);
|
/netbsd-current/usr.bin/w/ |
H A D | 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 [all...] |
/netbsd-current/bin/date/ |
H A D | date.c | 382 struct utmpx utx; local 383 memset(&utx, 0, sizeof(utx)); 384 utx.ut_type = OLD_TIME; 385 (void)gettimeofday(&utx.ut_tv, NULL); 386 pututxline(&utx); 404 utx.ut_type = NEW_TIME; 405 (void)gettimeofday(&utx.ut_tv, NULL); 406 pututxline(&utx);
|
/netbsd-current/external/bsd/tmux/dist/ |
H A D | utmp.c | 65 struct utmpx utx; member in struct:window_utmp 144 login_utmpx(&wu->utx, username, "tmux", tty, &tv); 162 logout_utmpx(&wu->utx, &tv);
|
/netbsd-current/usr.bin/who/ |
H A D | 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);
|
Completed in 277 milliseconds