Lines Matching refs:utmp
7 #include <utmp.h>
38 /* vv Taken from tinylogin utmp.c vv */
40 * read_or_build_utent - see if utmp file is correct for this process
42 * System V is very picky about the contents of the utmp file
44 * The utmp file is scanned for an entry with the same process
53 static void read_or_build_utent(struct utmp *utptr, int picky)
55 struct utmp *ut;
60 /* First, try to find a valid utmp entry for this process. */
71 bb_error_msg_and_die("no utmp entry found");
88 * write_utent - put a USER_PROCESS entry in the utmp file
90 * write_utent changes the type of the current utmp entry to
93 static void write_utent(struct utmp *utptr, const char *username)
239 USE_FEATURE_UTMP(struct utmp utent;)