struct utmp *ut;
const struct utmp *ut;
login(ut)	struct utmp *ut;{	register int fd;	int tty;	tty = ttyslot();	if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) {		(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), L_SET);		(void)write(fd, ut, sizeof(struct utmp));		(void)close(fd);	}	if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {		(void)write(fd, ut, sizeof(struct utmp));		(void)close(fd);	}}