Lines Matching refs:entry

129 static struct futmpx fubuf;	/* Copy of last entry read in. */
130 static struct utmpx ubuf; /* Last entry returned to client */
180 * "getutxent_frec" gets the raw version of the next entry in the utmpx file.
223 * Try to read in the next entry from the utmpx file.
254 * "getutxent" gets the next entry in the utmpx file.
268 * "getutent" gets the next entry in the utmp file.
292 * "getutxid" finds the specified entry in the utmpx file. If
296 getutxid(const struct utmpx *entry)
310 * Start looking for entry. Look in our current buffer before
315 * If there is no entry in "fubuf", skip to the read.
318 switch (entry->ut_type) {
321 * Do not look for an entry if the user sent
322 * us an EMPTY entry.
337 if (entry->ut_type == fubuf.ut_type) {
345 * and DEAD_PROCESS the type of the entry in "fubuf",
356 (fubuf.ut_id[0] == entry->ut_id[0]) &&
357 (fubuf.ut_id[1] == entry->ut_id[1]) &&
358 (fubuf.ut_id[2] == entry->ut_id[2]) &&
359 (fubuf.ut_id[3] == entry->ut_id[3])) {
366 * Do not search for illegal types of entry.
375 * Return NULL since the proper entry wasn't found.
382 * "getutid" finds the specified entry in the utmp file. If
386 getutid(const struct utmp *entry)
392 return (_compat_getutid(entry));
399 getutmpx(entry, &utmpx);
408 * USER_PROCESS with the same "line" as the specified "entry".
411 getutxline(const struct utmpx *entry)
424 * If the current entry is the one we are interested in,
430 strncmp(&entry->ut_line[0], &fubuf.ut_line[0],
438 * Since entry wasn't found, return NULL.
446 * USER_PROCESS with the same "line" as the specified "entry".
449 getutline(const struct utmp *entry)
455 return (_compat_getutline(entry));
463 getutmpx(entry, &utmpx);
585 * Normal termination. Return a pointer to the entry we just made.
605 * If there is already an entry with the same id, then it is
606 * overwritten, otherwise a new entry is made at the end of the
611 pututxline(const struct utmpx *entry)
619 * Copy the user supplied entry into our temporary buffer to
623 if (entry == NULL)
626 (void) memcpy(&tmpxbuf, entry, sizeof (tmpxbuf));
627 utmpx_api2frec(entry, &ftmpxbuf);
637 * so invoke update_utmp(8) to write the entry for us.
640 return (invoke_utmp_update(entry));
643 * Find the proper entry in the utmpx file. Start at the current
646 * If it still isn't found, then write a new entry at the end of
701 pututline(const struct utmp *entry)
707 return (_compat_pututline(entry));
709 getutmpx(entry, &utmpx);
729 * Zero the stored copy of the last entry read, since we are
906 * modutx - modify a utmpx entry. Also notify init about new pids or
917 struct utmpx *up; /* "current" utmpx entry */
935 * only get here if ids are the same, i.e. found right entry
953 * modut - modify a utmp entry. Also notify init about new pids or
991 * DEAD_PROCESS entry or creating a new one. This routine only
1140 * makeutx - create a utmpx entry, recycling an id if a wild card is
1191 * Unused entry, reuse it. We know the offset. So
1213 * Seek to end and write out the entry
1237 * makeut - create a utmp entry, recycling an id if a wild card is
1264 * Buffered read routine to get one entry from utmpx file