Lines Matching defs:wtmp
77 int nolog; /* don't log in utmp or wtmp */
368 int pid, wtmp;
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);
422 * Record login in wtmp file.
431 int wtmp;
471 * uucpd only writes to the wtmp file.
473 * ftpd (which also only writes to the wtmp file)
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);