Lines Matching refs:utmp
71 #include <utmp.h>
80 typedef struct utmp UTMP;
86 * Special versions of login()/logout() which hold the utmp file open,
91 ftpd_login(const struct utmp *ut)
93 UTMP ubuf;
111 (void)lseek(fd, (off_t)(topslot * sizeof(UTMP)), SEEK_SET);
114 if (read(fd, &ubuf, sizeof(UTMP)) == sizeof(UTMP)) {
116 (void)lseek(fd, -(off_t)sizeof(UTMP), SEEK_CUR);
121 (void)lseek(fd, (off_t)(topslot * sizeof(UTMP)),
127 (void)write(fd, ut, sizeof(UTMP));
133 UTMP ut;
142 while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) {
149 (void)lseek(fd, -(off_t)sizeof(UTMP), SEEK_CUR);
150 (void)write(fd, &ut, sizeof(UTMP));