Symbol: _PATH_UTMP
lib/libutil/login.c
50
if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT|O_CLOEXEC, 0644))
lib/libutil/logout.c
50
if ((fd = open(_PATH_UTMP, O_RDWR|O_CLOEXEC)) == -1)
libexec/comsat/comsat.c
111
if ((uf = open(_PATH_UTMP, O_RDONLY)) == -1) {
libexec/comsat/comsat.c
112
syslog(LOG_ERR, "open: %s: %m", _PATH_UTMP);
libexec/comsat/comsat.c
96
if (unveil(_PATH_UTMP, "r") == -1)
libexec/comsat/comsat.c
97
err(1, "unveil %s", _PATH_UTMP);
libexec/ftpd/logutmp.c
73
(fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) == -1))
libexec/rpc.rusersd/rusersd.c
70
if ((utmp_fd = open(_PATH_UTMP, O_RDONLY)) == -1) {
libexec/rpc.rusersd/rusersd.c
71
syslog(LOG_ERR, "cannot open %s", _PATH_UTMP);
libexec/talkd/process.c
200
if ((fp = fopen(_PATH_UTMP, "r")) == NULL) {
libexec/talkd/process.c
201
fprintf(stderr, "talkd: can't read %s.\n", _PATH_UTMP);
usr.bin/finger/finger.c
172
if (!freopen(_PATH_UTMP, "r", stdin))
usr.bin/finger/finger.c
173
err(2, _PATH_UTMP);
usr.bin/finger/finger.c
267
if (!freopen(_PATH_UTMP, "r", stdin))
usr.bin/finger/finger.c
268
err(1, _PATH_UTMP);
usr.bin/systat/main.c
479
ut = open(_PATH_UTMP, O_RDONLY);
usr.bin/users/users.c
56
if (unveil(_PATH_UTMP, "r") == -1)
usr.bin/users/users.c
57
err(1, "unveil %s", _PATH_UTMP);
usr.bin/users/users.c
70
if (!freopen(_PATH_UTMP, "r", stdin)) {
usr.bin/users/users.c
71
err(1, "can't open %s", _PATH_UTMP);
usr.bin/w/w.c
174
if ((ut = fopen(_PATH_UTMP, "r")) == NULL)
usr.bin/w/w.c
175
err(1, "%s", _PATH_UTMP);
usr.bin/wall/wall.c
117
if (unveil(_PATH_UTMP, "r") == -1)
usr.bin/wall/wall.c
118
err(1, "unveil %s", _PATH_UTMP);
usr.bin/wall/wall.c
126
if (!(fp = fopen(_PATH_UTMP, "r")))
usr.bin/wall/wall.c
127
err(1, "cannot read %s", _PATH_UTMP);
usr.bin/who/who.c
122
if (unveil(_PATH_UTMP, "r") == -1)
usr.bin/who/who.c
123
err(1, "unveil %s", _PATH_UTMP);
usr.bin/who/who.c
137
ufp = file(_PATH_UTMP);
usr.bin/who/who.c
188
ufp = file(_PATH_UTMP);
usr.bin/write/write.c
127
if ((ufd = open(_PATH_UTMP, O_RDONLY)) == -1)
usr.bin/write/write.c
160
if ((ufd = open(_PATH_UTMP, O_RDONLY)) == -1)
usr.bin/write/write.c
161
err(1, "%s", _PATH_UTMP);
usr.sbin/syslogd/privsep.c
189
if (unveil(_PATH_UTMP, "r") == -1)
usr.sbin/syslogd/privsep.c
190
err(1, "unveil %s", _PATH_UTMP);
usr.sbin/syslogd/privsep.c
300
fd = open(_PATH_UTMP, O_RDONLY|O_NONBLOCK);