Lines Matching refs:utmp
102 void cray_retain_utmp(struct utmp *, int);
105 void cray_set_tmpdir(struct utmp *);
690 cray_retain_utmp(struct utmp *ut, int pid) in cray_retain_utmp()
693 struct utmp utmp; in cray_retain_utmp() local
697 while (read(fd, (char *)&utmp, sizeof(utmp)) == sizeof(utmp)) { in cray_retain_utmp()
698 if (pid == utmp.ut_pid) { in cray_retain_utmp()
699 ut->ut_jid = utmp.ut_jid; in cray_retain_utmp()
700 strncpy(ut->ut_tpath, utmp.ut_tpath, sizeof(utmp.ut_tpath)); in cray_retain_utmp()
701 strncpy(ut->ut_host, utmp.ut_host, sizeof(utmp.ut_host)); in cray_retain_utmp()
702 strncpy(ut->ut_name, utmp.ut_name, sizeof(utmp.ut_name)); in cray_retain_utmp()
789 cray_set_tmpdir(struct utmp *ut) in cray_set_tmpdir()