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

  /src/lib/libutil/compat/
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_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_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/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...]
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) {
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))
  /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/libexec/ftpd/
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...]
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...]
  /src/lib/libc/compat/gen/
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/sys/miscfs/procfs/
procfs_status.c 139 /* comm pid ppid pgid sid maj,min ctty,sldr start ut st wmsg uid gid groups ... */
172 struct timeval ut, st; local in function:procfs_status_netbsd
174 calcru(p, &ut, &st, (void *) 0, NULL);
176 " %lld,%ld %lld,%ld", (long long)ut.tv_sec,
177 (long)ut.tv_usec, (long long)st.tv_sec, (long)st.tv_usec);
  /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/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/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...]
kern_proc.c 2768 struct timeval ut, st, rt; local in function:fill_kproc2
2912 calcru(p, &ut, &st, NULL, &rt);
2915 ki->p_uutime_sec = ut.tv_sec;
2916 ki->p_uutime_usec = ut.tv_usec;
2938 &p->p_stats->p_cru.ru_stime, &ut);
2939 ki->p_uctime_sec = ut.tv_sec;
2940 ki->p_uctime_usec = ut.tv_usec;
  /src/sys/arch/vax/boot/xxboot/
bootxx.c 371 void *ut = top; local in function:alloc
373 return 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/usr.sbin/sysinst/arch/i386/
md.c 885 struct utsname ut; local in function:get_bootmodel
894 if (uname(&ut) < 0)
895 ut.version[0] = 0;
898 if (strstr(ut.version, "TINY") != NULL)
902 if (strstr(ut.version, "PS2") != NULL)
  /src/lib/libc/stdlib/
malloc.c 72 void utrace(struct ut *, int);
272 struct ut { void *p; size_t s; void *r; }; struct
276 struct ut u; \
  /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/usr.bin/kdump/
kdump.c 1515 struct ut { void *p; size_t s; void *r; } m; struct in function:ktruser_malloc

Completed in 23 milliseconds