Lines Matching defs:entry

95 static struct futmp fubuf;	/* Copy of last entry read in. */
96 static struct utmp ubuf; /* Last entry returned to client */
135 * "getutent_frec" gets the raw version of the next entry in the utmp file.
159 /* Try to read in the next entry from the utmp file. */
166 /* Save the location in the file where this entry was found. */
173 * "_compat_getutent" gets the next entry in the utmp file.
188 * "_compat_getutid" finds the specified entry in the utmp file. If
192 _compat_getutid(const struct utmp *entry)
199 * Start looking for entry. Look in our current buffer before
204 * If there is no entry in "ubuf", skip to the read.
207 switch (entry->ut_type) {
210 * Do not look for an entry if the user sent
211 * us an EMPTY entry.
227 if (entry->ut_type == fubuf.ut_type) {
235 * and DEAD_PROCESS the type of the entry in "fubuf",
246 fubuf.ut_id[0] == entry->ut_id[0] &&
247 fubuf.ut_id[1] == entry->ut_id[1] &&
248 fubuf.ut_id[2] == entry->ut_id[2] &&
249 fubuf.ut_id[3] == entry->ut_id[3]) {
255 /* Do not search for illegal types of entry. */
262 /* the proper entry wasn't found. */
270 * USER_PROCESS with the same "line" as the specified "entry".
273 _compat_getutline(const struct utmp *entry)
279 * If the current entry is the one we are interested in,
285 strncmp(&entry->ut_line[0], &fubuf.ut_line[0],
298 * If there is already an entry with the same id, then it is
299 * overwritten, otherwise a new entry is made at the end of the
303 _compat_pututline(const struct utmp *entry)
311 * Copy the user supplied entry into our temporary buffer to
315 tmpbuf = *entry;
316 utmp_api2frec(entry, &ftmpbuf);
332 * Find the proper entry in the utmp file. Start at the current
335 * If it still isn't found, then write a new entry at the end of
398 * Zero the stored copy of the last entry read, since we are
448 * makeut - create a utmp entry, recycling an id if a wild card is
457 struct utmp *utp; /* "current" utmp entry being examined */
498 * found an unused entry, reuse it
536 * _compat_modut - modify a utmp entry.
546 struct utmp *up; /* "current" utmp entry being examined */
589 * DEAD_PROCESS entry or creating a new one. This routine only