Symbol: utmp
bin/ed/undo.c
69
undo_t utmp; \
bin/ed/undo.c
70
utmp = x, x = y, y = utmp; \
lib/libutil/login.c
43
login(struct utmp *utp)
lib/libutil/login.c
45
struct utmp old_ut;
lib/libutil/login.c
57
pos = (off_t)tty * sizeof(struct utmp);
lib/libutil/login.c
59
pread(fd, &old_ut, sizeof(struct utmp), pos) ==
lib/libutil/login.c
60
sizeof(struct utmp) &&
lib/libutil/login.c
65
(void)pwrite(fd, utp, sizeof(struct utmp), pos);
lib/libutil/login.c
69
(void)write(fd, utp, sizeof(struct utmp));
lib/libutil/logout.c
42
typedef struct utmp UTMP;
lib/libutil/logwtmp.c
46
struct utmp ut;
lib/libutil/logwtmp.c
56
if (write(fd, &ut, sizeof(struct utmp)) !=
lib/libutil/logwtmp.c
57
sizeof(struct utmp))
lib/libutil/util.h
79
struct utmp;
lib/libutil/util.h
84
void login(struct utmp *);
libexec/comsat/comsat.c
187
if (statbf.st_size > INT_MAX - 10 * sizeof(struct utmp)) {
libexec/comsat/comsat.c
193
sizeof(struct utmp);
libexec/comsat/comsat.c
194
struct utmp *u;
libexec/comsat/comsat.c
196
if ((u = recallocarray(utmp, utmpsize,
libexec/comsat/comsat.c
198
free(utmp);
libexec/comsat/comsat.c
202
utmp = u;
libexec/comsat/comsat.c
205
n = pread(uf, utmp, statbf.st_size, 0);
libexec/comsat/comsat.c
208
nutmp = n / sizeof(struct utmp);
libexec/comsat/comsat.c
217
struct utmp *utp = &utmp[nutmp];
libexec/comsat/comsat.c
233
while (--utp >= utmp) {
libexec/comsat/comsat.c
245
notify(struct utmp *utp, off_t offset)
libexec/comsat/comsat.c
63
struct utmp *utmp = NULL;
libexec/comsat/comsat.c
69
void notify(struct utmp *, off_t);
libexec/ftpd/extern.h
101
struct utmp;
libexec/ftpd/extern.h
102
void ftpd_login(struct utmp *ut);
libexec/ftpd/ftpd.c
154
static struct utmp utmp; /* for utmp */
libexec/ftpd/ftpd.c
2151
ftpd_logout(utmp.ut_line);
libexec/ftpd/ftpd.c
852
ftpd_logout(utmp.ut_line);
libexec/ftpd/ftpd.c
960
memset(&utmp, 0, sizeof(utmp));
libexec/ftpd/ftpd.c
961
(void)time(&utmp.ut_time);
libexec/ftpd/ftpd.c
962
(void)strncpy(utmp.ut_name, pw->pw_name, sizeof(utmp.ut_name));
libexec/ftpd/ftpd.c
963
(void)strncpy(utmp.ut_host, remotehost, sizeof(utmp.ut_host));
libexec/ftpd/ftpd.c
964
(void)strncpy(utmp.ut_line, ttyline, sizeof(utmp.ut_line));
libexec/ftpd/ftpd.c
965
ftpd_login(&utmp);
libexec/ftpd/logutmp.c
104
struct utmp ut;
libexec/ftpd/logutmp.c
113
while (read(fd, &ut, sizeof(struct utmp)) == sizeof(struct utmp)) {
libexec/ftpd/logutmp.c
121
(void)lseek(fd, -(off_t)sizeof(struct utmp), SEEK_CUR);
libexec/ftpd/logutmp.c
122
(void)write(fd, &ut, sizeof(struct utmp));
libexec/ftpd/logutmp.c
59
ftpd_login(struct utmp *ut)
libexec/ftpd/logutmp.c
61
struct utmp ubuf;
libexec/ftpd/logutmp.c
79
(void)lseek(fd, (off_t)topslot * sizeof(struct utmp), SEEK_SET);
libexec/ftpd/logutmp.c
82
if (read(fd, &ubuf, sizeof(struct utmp)) ==
libexec/ftpd/logutmp.c
83
sizeof(struct utmp)) {
libexec/ftpd/logutmp.c
85
(void)lseek(fd, -(off_t)sizeof(struct utmp),
libexec/ftpd/logutmp.c
91
(void)lseek(fd, (off_t)topslot * sizeof(struct utmp),
libexec/ftpd/logutmp.c
97
(void)write(fd, ut, sizeof(struct utmp));
libexec/ftpd/logwtmp.c
61
struct utmp ut;
libexec/ftpd/logwtmp.c
71
if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
libexec/ftpd/logwtmp.c
72
sizeof(struct utmp))
libexec/rpc.rusersd/rusers_proc.c
106
struct utmp usr;
libexec/rpc.rusersd/rusers_proc.c
135
struct utmp usr;
libexec/rpc.rusersd/rusers_proc.c
198
struct utmp usr;
libexec/rpc.rusersd/rusers_proc.c
262
struct utmp usr;
libexec/talkd/process.c
191
struct utmp ubuf, ubuf1;
regress/usr.sbin/syslogd/ttylog.c
149
struct utmp utmp;
regress/usr.sbin/syslogd/ttylog.c
167
memset(&utmp, 0, sizeof(utmp));
regress/usr.sbin/syslogd/ttylog.c
168
strlcpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
regress/usr.sbin/syslogd/ttylog.c
169
strlcpy(utmp.ut_name, username, sizeof(utmp.ut_name));
regress/usr.sbin/syslogd/ttylog.c
170
time(&utmp.ut_time);
regress/usr.sbin/syslogd/ttylog.c
171
login(&utmp);
usr.bin/finger/extern.h
44
void enter_where(struct utmp *, PERSON *);
usr.bin/finger/finger.c
169
struct utmp user;
usr.bin/finger/finger.c
198
struct utmp user;
usr.bin/finger/util.c
234
enter_where(struct utmp *ut, PERSON *pn)
usr.bin/last/last.c
214
print_entry(const struct utmp *bp)
usr.bin/last/last.c
251
struct utmp *bp;
usr.bin/last/last.c
417
want(struct utmp *bp, int check)
usr.bin/last/last.c
53
static struct utmp buf[1024]; /* utmp read buffer */
usr.bin/last/last.c
84
int want(struct utmp *, int);
usr.bin/last/last.c
87
void print_entry(const struct utmp *);
usr.bin/login/login.c
151
struct utmp utmp;
usr.bin/login/login.c
658
memset(&utmp, 0, sizeof(utmp));
usr.bin/login/login.c
659
(void)time(&utmp.ut_time);
usr.bin/login/login.c
660
(void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name));
usr.bin/login/login.c
662
(void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host));
usr.bin/login/login.c
663
(void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
usr.bin/login/login.c
664
login(&utmp);
usr.bin/ssh/sshlogin.c
154
struct utmp u;
usr.bin/systat/main.c
200
struct utmp utmp;
usr.bin/systat/main.c
205
while (read(ut, &utmp, sizeof(utmp)))
usr.bin/systat/main.c
206
if (utmp.ut_name[0] != '\0')
usr.bin/users/users.c
53
struct utmp utmp;
usr.bin/users/users.c
75
while (fread((char *)&utmp, sizeof(utmp), 1, stdin) == 1) {
usr.bin/users/users.c
76
if (*utmp.ut_name) {
usr.bin/users/users.c
92
(void)strncpy(names[ncnt], utmp.ut_name, UT_NAMESIZE);
usr.bin/w/w.c
180
for (nusers = 0; fread(&utmp, sizeof(utmp), 1, ut);) {
usr.bin/w/w.c
181
if (utmp.ut_name[0] == '\0')
usr.bin/w/w.c
185
strncmp(utmp.ut_name, sel_user, UT_NAMESIZE) != 0))
usr.bin/w/w.c
191
memcpy(&(ep->utmp), &utmp, sizeof(utmp));
usr.bin/w/w.c
192
if (!(stp = ttystat(ep->utmp.ut_line)))
usr.bin/w/w.c
245
if (strncmp(ep->utmp.ut_line, "ftp", 3) == 0) {
usr.bin/w/w.c
249
(void)strncpy(pidstr, &ep->utmp.ut_line[3],
usr.bin/w/w.c
296
p = *ep->utmp.ut_host ? ep->utmp.ut_host : "-";
usr.bin/w/w.c
307
(int)(ep->utmp.ut_host + UT_HOSTSIZE - x), x);
usr.bin/w/w.c
319
NAME_WIDTH, UT_NAMESIZE, ep->utmp.ut_name,
usr.bin/w/w.c
320
strncmp(ep->utmp.ut_line, "tty", 3) ?
usr.bin/w/w.c
321
ep->utmp.ut_line : ep->utmp.ut_line + 3,
usr.bin/w/w.c
323
pr_attime(&ep->utmp.ut_time, &now);
usr.bin/w/w.c
68
struct utmp utmp;
usr.bin/w/w.c
88
struct utmp utmp;
usr.bin/wall/wall.c
131
while (fread(&utmp, sizeof(utmp), 1, fp) == 1) {
usr.bin/wall/wall.c
132
if (!utmp.ut_name[0])
usr.bin/wall/wall.c
136
strncpy(username, utmp.ut_name, sizeof(utmp.ut_name));
usr.bin/wall/wall.c
137
username[sizeof(utmp.ut_name)] = '\0';
usr.bin/wall/wall.c
151
strncpy(line, utmp.ut_line, sizeof(utmp.ut_line));
usr.bin/wall/wall.c
152
line[sizeof(utmp.ut_line)] = '\0';
usr.bin/wall/wall.c
156
un->tty = strndup(line, sizeof(utmp.ut_line));
usr.bin/wall/wall.c
83
struct utmp utmp;
usr.bin/wall/wall.c
85
char line[sizeof(utmp.ut_line) + 1];
usr.bin/wall/wall.c
86
char username[sizeof(utmp.ut_name) + 1];
usr.bin/who/who.c
201
struct utmp usr;
usr.bin/who/who.c
224
output(struct utmp *up)
usr.bin/who/who.c
48
void output(struct utmp *);
usr.bin/who/who.c
69
struct utmp usr;
usr.bin/write/write.c
124
struct utmp u;
usr.bin/write/write.c
155
struct utmp u;
usr.sbin/ac/ac.c
311
log_out(struct utmp_list *head, struct utmp *up)
usr.sbin/ac/ac.c
351
log_in(struct utmp_list *head, struct utmp *up)
usr.sbin/ac/ac.c
381
memmove((char *)&lp->usr, (char *)up, sizeof (struct utmp));
usr.sbin/ac/ac.c
399
struct utmp usr;
usr.sbin/ac/ac.c
44
struct utmp usr;
usr.sbin/ac/ac.c
90
struct utmp_list *log_in(struct utmp_list *, struct utmp *);
usr.sbin/ac/ac.c
91
struct utmp_list *log_out(struct utmp_list *, struct utmp *);
usr.sbin/syslogd/syslogd.c
2270
struct utmp ut;