Home
last modified time | relevance | path

Searched refs:utx (Results 1 – 8 of 8) sorted by relevance

/netbsd/src/libexec/utmp_update/
Dutmp_update.c76 struct utmpx *utx; in main() local
101 if (len > sizeof(*utx) * 4 + 1 || len < sizeof(*utx)) in main()
104 if ((utx = malloc(len+1)) == NULL) in main()
107 res = strunvis((char *)utx, argv[1]); in main()
108 if (res != (int)sizeof(*utx)) in main()
110 sizeof(*utx)); in main()
112 switch (utx->ut_type) { in main()
117 logerr(0, "Invalid utmpx type %d", (int)utx->ut_type); in main()
120 p = utx->ut_host; in main()
121 ep = p + sizeof(utx->ut_host); in main()
[all …]
/netbsd/src/lib/libc/gen/
Dutmpx.c73 old2new(struct utmpx *utx) in old2new() argument
76 struct timeval *tv = &utx->ut_tv; in old2new()
83 new2old(struct utmpx *utx) in new2old() argument
86 struct timeval *tv = &utx->ut_tv; in new2old()
170 getutxid(const struct utmpx *utx) in getutxid() argument
173 _DIAGASSERT(utx != NULL); in getutxid()
175 if (utx->ut_type == EMPTY) in getutxid()
181 switch (utx->ut_type) { in getutxid()
188 if (ut.ut_type == utx->ut_type) in getutxid()
200 if (memcmp(ut.ut_id, utx->ut_id, in getutxid()
[all …]
/netbsd/src/external/bsd/ntp/dist/libntp/
Dsystime.c410 struct utmpx utx; in update_uwtmp() local
417 ZERO(utx); in update_uwtmp()
447 utx.ut_type = OLD_TIME; in update_uwtmp()
448 strlcpy(utx.ut_line, OTIME_MSG, sizeof(utx.ut_line)); in update_uwtmp()
449 utx.ut_tv = tvlast; in update_uwtmp()
451 pututxline(&utx); in update_uwtmp()
452 utx.ut_type = NEW_TIME; in update_uwtmp()
453 strlcpy(utx.ut_line, NTIME_MSG, sizeof(utx.ut_line)); in update_uwtmp()
454 utx.ut_tv = timetv; in update_uwtmp()
456 pututxline(&utx); in update_uwtmp()
[all …]
/netbsd/src/usr.bin/w/
Dw.c146 struct utmpx *utx; in main() local
236 while ((utx = getutxent()) != NULL) { in main()
237 if (utx->ut_type != USER_PROCESS) in main()
247 strncmp(utx->ut_name, sel_user, sizeof(utx->ut_name)) != 0) in main()
251 (void)memcpy(ep->line, utx->ut_line, sizeof(utx->ut_line)); in main()
252 ep->line[sizeof(utx->ut_line)] = '\0'; in main()
259 (void)memcpy(ep->name, utx->ut_name, sizeof(utx->ut_name)); in main()
260 ep->name[sizeof(utx->ut_name)] = '\0'; in main()
261 if (!nflag || getnameinfo((struct sockaddr *)&utx->ut_ss, in main()
262 utx->ut_ss.ss_len, ep->host, sizeof(ep->host), NULL, 0, in main()
[all …]
/netbsd/src/lib/libc/compat/gen/
Dcompat_utmpx.c183 struct utmpx utx; in getutmp() local
184 utmpx50_to_utmpx(utx50, &utx); in getutmp()
185 __getutmp50(&utx, ut); in getutmp()
191 struct utmpx utx; in getutmpx() local
192 __getutmpx50(ut, &utx); in getutmpx()
193 utmpx_to_utmpx50(&utx, utx50); in getutmpx()
/netbsd/src/bin/date/
Ddate.c535 struct utmpx utx; in setthetime() local
536 memset(&utx, 0, sizeof(utx)); in setthetime()
537 utx.ut_type = OLD_TIME; in setthetime()
538 (void)gettimeofday(&utx.ut_tv, NULL); in setthetime()
539 pututxline(&utx); in setthetime()
557 utx.ut_type = NEW_TIME; in setthetime()
558 (void)gettimeofday(&utx.ut_tv, NULL); in setthetime()
559 pututxline(&utx); in setthetime()
/netbsd/src/usr.bin/who/
Dutmpentry.c178 struct utmpx *utx; in getutentries() local
201 while ((what & 1) && (utx = getutxent()) != NULL) { in getutentries()
202 if (fname == NULL && ((1 << utx->ut_type) & etype) == 0) in getutentries()
208 getentryx(ep, utx); in getutentries()
/netbsd/src/external/gpl3/binutils/dist/binutils/
DChangeLog-98991681 Tue Apr 21 16:07:18 1998 Stanislav Brabec <utx@k332.feld.cvut.cz>