HomeSort by: relevance | last modified time | path
    Searched refs:ut (Results 1 - 25 of 36) sorted by relevancy

1 2

  /src/lib/libutil/
logwtmpx.c 59 struct utmpx ut; local in function:logwtmpx
65 (void)memset(&ut, 0, sizeof(ut));
66 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));
67 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name));
68 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
69 ut.ut_type = type
    [all...]
logout.c 57 struct utmp ut; local in function:logout
64 while (read(fd, &ut, sizeof(ut)) == sizeof(ut)) {
65 if (!ut.ut_name[0] || strncmp(ut.ut_line, line,
68 memset(ut.ut_name, 0, (size_t)UT_NAMESIZE);
69 memset(ut.ut_host, 0, (size_t)UT_HOSTSIZE);
70 (void)time(&ut.ut_time);
71 (void)lseek(fd, -(off_t)sizeof(ut), SEEK_CUR)
    [all...]
loginx.c 50 loginx(const struct utmpx *ut)
52 (void)pututxline(ut);
53 (void)updwtmpx(_PATH_WTMPX, ut);
logwtmp.c 56 struct utmp ut; local in function:logwtmp
67 (void) strncpy(ut.ut_line, line, sizeof(ut.ut_line));
68 (void) strncpy(ut.ut_name, name, sizeof(ut.ut_name));
69 (void) strncpy(ut.ut_host, host, sizeof(ut.ut_host));
70 (void) time(&ut.ut_time);
71 if (write(fd, &ut, sizeof(struct utmp)) != sizeof(struct utmp))
login.c 53 login(const struct utmp *ut)
58 _DIAGASSERT(ut != NULL);
63 (void)write(fd, ut, sizeof(struct utmp));
67 (void)write(fd, ut, sizeof(struct utmp));
logoutx.c 58 struct utmpx *utp, ut; local in function:logoutx
59 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line));
60 if ((utp = getutxline(&ut)) == NULL) {
  /src/lib/libc/compat/include/
utmp.h 51 utmp_to_utmp50(const struct utmp *ut, struct utmp50 *ut50)
53 (void)memcpy(ut50, ut, sizeof(*ut50));
54 ut50->ut_time = (int32_t)ut->ut_time;
58 utmp50_to_utmp(const struct utmp50 *ut50, struct utmp *ut)
60 (void)memcpy(ut, ut50, sizeof(*ut50));
61 ut->ut_time = ut50->ut_time;
utmpx.h 63 utmpx50_to_utmpx(const struct utmpx50 *ut50, struct utmpx *ut)
65 (void)memcpy(ut, ut50, sizeof(*ut));
66 timeval50_to_timeval(&ut50->ut_tv, &ut->ut_tv);
70 utmpx_to_utmpx50(const struct utmpx *ut, struct utmpx50 *ut50)
72 (void)memcpy(ut50, ut, sizeof(*ut50));
73 timeval_to_timeval50(&ut->ut_tv, &ut50->ut_tv);
  /src/libexec/ftpd/
logwtmp.c 89 struct utmp ut; local in function:ftpd_logwtmp
95 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));
96 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name));
97 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
98 (void)time(&ut.ut_time);
99 if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
121 struct utmpx ut; local in function:ftpd_logwtmpx
    [all...]
logutmp.c 91 ftpd_login(const struct utmp *ut)
127 (void)write(fd, ut, sizeof(UTMP));
133 UTMP ut; local in function:ftpd_logout
142 while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) {
143 if (!ut.ut_name[0]
144 || strncmp(ut.ut_line, line, UT_LINESIZE))
146 memset(ut.ut_name, 0, UT_NAMESIZE);
147 memset(ut.ut_host, 0, UT_HOSTSIZE);
148 (void)time(&ut.ut_time);
150 (void)write(fd, &ut, sizeof(UTMP))
    [all...]
  /src/lib/libc/gen/
utmp.c 47 static FILE *ut; variable in typeref:typename:FILE *
53 if (ut == NULL)
55 (void)fseeko(ut, (off_t)0, SEEK_SET);
61 if (ut == NULL) {
64 if ((ut = fopen(utfile, "re")) == NULL)
66 if (fstat(fileno(ut), &st) == -1)
75 if (fread(&utmp, sizeof(utmp), 1, ut) == 1)
78 (void)fclose(ut);
85 if (ut != NULL) {
86 (void)fclose(ut);
    [all...]
utmpx.c 60 static struct utmpx ut; variable in typeref:struct:utmpx
97 (void)memset(&ut, 0, sizeof(ut));
100 (void)fseeko(fp, (off_t)sizeof(ut), SEEK_SET);
108 (void)memset(&ut, 0, sizeof(ut));
139 (void)memset(&ut, 0, sizeof(ut));
140 ut.ut_type = SIGNATURE;
141 (void)memcpy(ut.ut_user, vers, sizeof(vers))
    [all...]
  /src/lib/libutil/compat/
compat_login.c 64 struct utmp ut; variable in typeref:struct:utmp
66 utmp50_to_utmp(ut50, &ut);
71 (void)write(fd, &ut, sizeof(ut));
75 (void)write(fd, &ut, sizeof(ut));
compat_loginx.c 58 struct utmpx ut; variable in typeref:struct:utmpx
59 utmpx50_to_utmpx(ut50, &ut);
60 (void)__pututxline50(&ut);
61 (void)__updwtmpx50(_PATH_WTMPX, &ut);
compat_logoutx.c 58 struct utmpx *utp, ut; local in function:logoutx
59 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line));
60 if ((utp = getutxline(&ut)) == NULL) {
  /src/distrib/utils/libhack/
utmp.c 14 login(ut)
15 const struct utmp *ut;
20 loginx(ut)
21 const struct utmpx *ut;
  /src/lib/libc/compat/gen/
compat_utmp.c 53 cvt(struct utmp *ut)
55 struct utmp50 *ut50 = (void *)ut;
56 if (ut == NULL)
58 ut50->ut_time = (int32_t)ut->ut_time;
compat_utmpx.c 69 cvt(struct utmpx *ut)
71 if (ut == NULL)
73 timeval_to_timeval50(&ut->ut_tv, (void *)&ut->ut_tv);
74 return (void *)ut;
104 struct utmpx ut; local in function:getutxid
105 utmpx50_to_utmpx(ut50, &ut);
106 return cvt(__getutxid50(&ut));
112 struct utmpx ut; local in function:getutxline
113 utmpx50_to_utmpx(ut50, &ut);
120 struct utmpx ut; local in function:pututxline
128 struct utmpx ut; local in function:updwtmpx
    [all...]
  /src/libexec/rpc.rusersd/
rusers_proc.c 194 static utmp_array ut; local in function:do_names_3
202 (void)memset(&ut, 0, sizeof(ut));
203 ut.utmp_array_val = utmps;
217 ut.utmp_array_len = nu;
219 return &ut;
241 static struct utmpidlearr ut; local in function:do_names_2
248 (void)memset(&ut, 0, sizeof(ut));
249 ut.uia_arr = utmp_idlep
    [all...]
  /src/usr.bin/who/
utmpentry.c 181 struct utmp *ut; local in function:getutentries
217 while ((what & 2) && (ut = getutent()) != NULL) {
218 if (fname == NULL && (*ut->ut_name == '\0' ||
219 *ut->ut_line == '\0'))
223 if (strncmp(ep->line, ut->ut_line,
224 sizeof(ut->ut_line)) == 0)
233 getentry(ep, ut);
  /src/usr.bin/w/
w.c 143 struct utmp *ut; local in function:main
277 while ((ut = getutent()) != NULL) {
278 if (ut->ut_name[0] == '\0')
282 strncmp(ut->ut_name, sel_user, sizeof(ut->ut_name)) != 0)
287 if (strncmp(ep->line, ut->ut_line,
288 sizeof(ut->ut_line)) == 0)
301 (void)memcpy(ep->name, ut->ut_name, sizeof(ut->ut_name));
302 (void)memcpy(ep->line, ut->ut_line, sizeof(ut->ut_line))
    [all...]
  /src/share/man/man4/man4.vax/
Makefile 19 uda.4 up.4 ut.4 uu.4 \
  /src/sbin/init/
init.c 1345 struct utmpx ut; local in function:make_utmpx
1348 (void)memset(&ut, 0, sizeof(ut));
1349 (void)strlcpy(ut.ut_name, name, sizeof(ut.ut_name));
1350 ut.ut_type = type;
1351 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line));
1352 ut.ut_pid = pid;
1354 ut.ut_tv = *tv
1390 struct utmpx ut; local in function:utmpx_set_runlevel
    [all...]
  /src/sys/kern/
kern_acct.c 408 struct timeval ut, st, tmp; local in function:acct_process
446 calcru(p, &ut, &st, NULL, NULL);
448 acct.ac_utime = encode_comp_t(ut.tv_sec, ut.tv_usec);
459 timeradd(&ut, &st, &tmp);
kern_resource.c 507 uint64_t u, st, ut, it, tot, dt; local in function:calcru
516 ut = p->p_uticks;
526 tot = st + ut + it;
532 st = ut = u / 2;
535 ut = (u * ut) / tot;
552 if (p->p_xutime > ut) {
553 dt = p->p_xutime - ut;
555 ut = p->p_xutime;
558 ut -= uimin(dt, ut)
    [all...]

Completed in 19 milliseconds

1 2