HomeSort by: relevance | last modified time | path
    Searched defs:utx (Results 1 - 5 of 5) sorted by relevancy

  /src/lib/libc/compat/gen/
compat_utmpx.c 183 struct utmpx utx; local in function:getutmp
184 utmpx50_to_utmpx(utx50, &utx);
185 __getutmp50(&utx, ut);
191 struct utmpx utx; local in function:getutmpx
192 __getutmpx50(ut, &utx);
193 utmpx_to_utmpx50(&utx, utx50);
  /src/libexec/utmp_update/
utmp_update.c 76 struct utmpx *utx; local in function:main
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/usr.bin/who/
utmpentry.c 178 struct utmpx *utx; local in function:getutentries
201 while ((what & 1) && (utx = getutxent()) != NULL) {
202 if (fname == NULL && ((1 << utx->ut_type) & etype) == 0)
208 getentryx(ep, utx);
  /src/bin/date/
date.c 535 struct utmpx utx; local in function:setthetime
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/usr.bin/w/
w.c 146 struct utmpx *utx; local in function:main
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...]

Completed in 25 milliseconds