setutent -- access utmp file entries
setutent() rewinds the file pointer to the beginning of the utmp file. It is generally a Good Idea to call it before any of the other functions.
On error, (struct utmp*)0 will be returned.
/var/run/utmp database of currently logged-in users
/var/log/wtmp database of past user logins