Lines Matching refs:wtmp
368 int pid, wtmp; local
405 wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
406 if (wtmp >= 0) {
412 (void) lseek(wtmp, 0L, 2);
414 (void) write(wtmp, (char *)&utmp, sizeof (utmp));
415 (void) close(wtmp);
431 int wtmp; local
486 wtmp = open("/usr/adm/wtmp", O_WRONLY|O_APPEND);
487 if (wtmp >= 0) {
495 (void) lseek(wtmp, 0L, 2);
497 (void) write(wtmp, (char *)&utmp, sizeof (utmp));
498 (void) close(wtmp);