Home
last modified time | relevance | path

Searched refs:ut (Results 1 – 25 of 25) sorted by relevance

/original-bsd/libexec/ftpd/
H A Dlogwtmp.c35 struct utmp ut; local
41 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));
42 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name));
43 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
44 (void)time(&ut.ut_time);
45 if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
/original-bsd/lib/libutil/
H A Dlogwtmp.c23 struct utmp ut; local
32 (void) strncpy(ut.ut_line, line, sizeof(ut.ut_line));
33 (void) strncpy(ut.ut_name, name, sizeof(ut.ut_name));
34 (void) strncpy(ut.ut_host, host, sizeof(ut.ut_host));
35 (void) time(&ut.ut_time);
36 if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
H A Dlogout.c28 UTMP ut; local
34 while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) {
35 if (!ut.ut_name[0] || strncmp(ut.ut_line, line, UT_LINESIZE))
37 bzero(ut.ut_name, UT_NAMESIZE);
38 bzero(ut.ut_host, UT_HOSTSIZE);
39 (void)time(&ut.ut_time);
41 (void)write(fd, &ut, sizeof(UTMP));
H A Dlogin.c21 login(ut) in login() argument
22 struct utmp *ut; in login()
30 (void)write(fd, ut, sizeof(struct utmp));
34 (void)write(fd, ut, sizeof(struct utmp));
/original-bsd/usr.bin/uucp/libuu/
H A Dulockf.c184 struct ut { in ultouch() struct
187 } ut; in ultouch() local
195 ut.actime = ut.modtime = Now.time; in ultouch()
198 if (ut.actime >= lasttouch && ut.actime < lasttouch+60) in ultouch()
200 lasttouch = ut.actime; in ultouch()
207 utime(Lockfile[i], &ut); in ultouch()
/original-bsd/sys/kern/
H A Dkern_acct.c151 struct timeval t, ut, st; local
169 calcru(p, &ut, &st, NULL);
171 ap->ac_utime = compress(ut.tv_sec, ut.tv_usec);
179 timevaladd(&t, &ut);
202 compress(t, ut) in compress() argument
204 long ut;
209 if (ut)
210 t += ut / (1000000 / AHZ);
H A Dkern_resource.c353 register u_quad_t u, st, ut, it, tot; local
360 ut = p->p_uticks;
364 tot = st + ut + it;
389 ut = (u * ut) / tot;
390 up->tv_sec = ut / 1000000;
391 up->tv_usec = ut % 1000000;
/original-bsd/sys/miscfs/procfs/
H A Dprocfs_status.c89 struct timeval ut, st; local
91 calcru(p, &ut, &st, (void *) 0);
93 ut.tv_sec,
94 ut.tv_usec,
/original-bsd/usr.bin/uucp/UUAIDS/
H A DL.aliases11 ut-sally ut-sall
H A Duucpsummary185 /^ut/d
/original-bsd/usr.bin/finger/
H A Dutil.c122 enter_where(ut, pn) in enter_where() argument
123 struct utmp *ut; in enter_where()
130 bcopy(ut->ut_line, w->tty, UT_LINESIZE);
132 bcopy(ut->ut_host, w->host, UT_HOSTSIZE);
134 w->loginat = (time_t)ut->ut_time;
/original-bsd/usr.bin/w/
H A Dw.c98 FILE *ut; local
150 if ((ut = fopen(_PATH_UTMP, "r")) == NULL)
156 for (nusers = 0; fread(&utmp, sizeof(utmp), 1, ut);) {
189 (void)fclose(ut);
/original-bsd/usr.sbin/syslogd/
H A Dsyslogd.c684 struct utmp ut; local
687 char line[sizeof(ut.ut_line) + 1];
697 while (fread((char *)&ut, sizeof(ut), 1, uf) == 1) {
698 if (ut.ut_name[0] == '\0')
700 strncpy(line, ut.ut_line, sizeof(ut.ut_line));
701 line[sizeof(ut.ut_line)] = '\0';
713 if (!strncmp(f->f_un.f_uname[i], ut.ut_name,
/original-bsd/share/man/man4/man4.vax/
H A DMakefile6 pcl.0 ps.0 qe.0 rx.0 tb.0 tm.0 tmscp.0 ts.0 tu.0 uda.0 up.0 ut.0 \
/original-bsd/usr.bin/systat/
H A Dvmstat.c69 static int ut; variable
86 ut = open(_PATH_UTMP, O_RDONLY); in openkre()
87 if (ut < 0) in openkre()
97 (void) close(ut);
510 if (ut < 0) in ucount()
512 while (read(ut, &utmp, sizeof(utmp))) in ucount()
516 lseek(ut, 0L, L_SET); in ucount()
/original-bsd/sys/vax/uba/
H A Duda.c2219 register struct udatypes *ut; local
2227 for (ut = udatypes; ut->ut_id; ut++)
2228 if (ut->ut_id == i &&
2229 ut->ut_nsectors == ra->ra_geom.rg_nsectors &&
2230 ut->ut_ntracks == ra->ra_geom.rg_ntracks &&
2231 ut->ut_ncylinders == ra->ra_geom.rg_ncyl)
2247 p = ut->ut_name;
2251 sz = ut->ut_sizes;
2252 lp->d_nsectors = ut->ut_nsectors;
2253 lp->d_ntracks = ut->ut_ntracks;
[all …]
/original-bsd/old/cu/
H A Dcu.c946 struct ut { in ultouch() struct
949 } ut; in ultouch() local
951 ut.actime = time(&ut.modtime); in ultouch()
955 utime(Lockfile[i], &ut); in ultouch()
/original-bsd/old/sysline/
H A Dsysline.c129 int ut = -1; /* the file descriptor */ variable
454 if (ut < 0 && (ut = open(_PATH_UTMP, 0)) < 0) {
458 if (fstat(ut, &st) < 0 || st.st_mtime == lastmod)
478 lseek(ut, 0L, 0);
479 (void) read(ut, (char *) (nflag ? new : old), utmpsize);
/original-bsd/etc/etc.vax/
H A DMAKEDEV82 ht*|tm*|tms*|ts*|ut*)
89 ut*) blk=10; chr=17;;
107 if [ $i = ut ]
/original-bsd/usr.bin/uucp/DOC/
H A DREADME44 ut-sally ut-sall
/original-bsd/sys/vax/conf/
H A Dfiles.vax87 vax/uba/ut.c optional tj device-driver
/original-bsd/sys/vax/stand/
H A DMakefile29 ut.c
/original-bsd/admin/admin/copyright4.2-4.3/
H A Dfiles.4.2.copyr628 /usr/man/man4/ut.4
1578 /usr/src/sys/stand/ut.c
1755 /usr/src/sys/vaxuba/ut.c
H A Dfiles.4.3.copyr972 /usr/man/man4/ut.4
2236 /usr/src/sys/stand/ut.c
2436 /usr/src/sys/vaxuba/ut.c
/original-bsd/games/fortune/datfiles/
H A Dfortunes234435 But when they did a ps -ut they found the system crashed!