Name
setutent -- access utmp file entries
Synopsis
#include <utmp.h>
void setutent(void); |
Description
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.
Errors
On error, (struct utmp*)0 will be returned.
Files
/var/run/utmp database of currently logged-in users
/var/log/wtmp database of past user logins