Lines Matching refs:entry

92 static struct futmp fubuf;	/* Copy of last entry read in. */
93 static struct utmp ubuf; /* Last entry returned to client */
132 * "getutent_frec" gets the raw version of the next entry in the utmp file.
156 /* Try to read in the next entry from the utmp file. */
163 /* Save the location in the file where this entry was found. */
170 * "_compat_getutent" gets the next entry in the utmp file.
185 * "_compat_getutid" finds the specified entry in the utmp file. If
189 _compat_getutid(const struct utmp *entry)
196 * Start looking for entry. Look in our current buffer before
201 * If there is no entry in "ubuf", skip to the read.
204 switch (entry->ut_type) {
207 * Do not look for an entry if the user sent
208 * us an EMPTY entry.
224 if (entry->ut_type == fubuf.ut_type) {
232 * and DEAD_PROCESS the type of the entry in "fubuf",
243 fubuf.ut_id[0] == entry->ut_id[0] &&
244 fubuf.ut_id[1] == entry->ut_id[1] &&
245 fubuf.ut_id[2] == entry->ut_id[2] &&
246 fubuf.ut_id[3] == entry->ut_id[3]) {
252 /* Do not search for illegal types of entry. */
259 /* the proper entry wasn't found. */
267 * USER_PROCESS with the same "line" as the specified "entry".
270 _compat_getutline(const struct utmp *entry)
276 * If the current entry is the one we are interested in,
282 strncmp(&entry->ut_line[0], &fubuf.ut_line[0],
295 * If there is already an entry with the same id, then it is
296 * overwritten, otherwise a new entry is made at the end of the
300 _compat_pututline(const struct utmp *entry)
308 * Copy the user supplied entry into our temporary buffer to
312 tmpbuf = *entry;
313 utmp_api2frec(entry, &ftmpbuf);
329 * Find the proper entry in the utmp file. Start at the current
332 * If it still isn't found, then write a new entry at the end of
395 * Zero the stored copy of the last entry read, since we are
445 * makeut - create a utmp entry, recycling an id if a wild card is
454 struct utmp *utp; /* "current" utmp entry being examined */
495 * found an unused entry, reuse it
533 * _compat_modut - modify a utmp entry.
543 struct utmp *up; /* "current" utmp entry being examined */
586 * DEAD_PROCESS entry or creating a new one. This routine only