Lines Matching defs:entry

130 static struct futmpx fubuf;	/* Copy of last entry read in. */
131 static struct utmpx ubuf; /* Last entry returned to client */
181 * "getutxent_frec" gets the raw version of the next entry in the utmpx file.
224 * Try to read in the next entry from the utmpx file.
255 * "getutxent" gets the next entry in the utmpx file.
269 * "getutent" gets the next entry in the utmp file.
293 * "getutxid" finds the specified entry in the utmpx file. If
297 getutxid(const struct utmpx *entry)
311 * Start looking for entry. Look in our current buffer before
316 * If there is no entry in "fubuf", skip to the read.
319 switch (entry->ut_type) {
322 * Do not look for an entry if the user sent
323 * us an EMPTY entry.
338 if (entry->ut_type == fubuf.ut_type) {
346 * and DEAD_PROCESS the type of the entry in "fubuf",
357 (fubuf.ut_id[0] == entry->ut_id[0]) &&
358 (fubuf.ut_id[1] == entry->ut_id[1]) &&
359 (fubuf.ut_id[2] == entry->ut_id[2]) &&
360 (fubuf.ut_id[3] == entry->ut_id[3])) {
367 * Do not search for illegal types of entry.
376 * Return NULL since the proper entry wasn't found.
383 * "getutid" finds the specified entry in the utmp file. If
387 getutid(const struct utmp *entry)
393 return (_compat_getutid(entry));
400 getutmpx(entry, &utmpx);
409 * USER_PROCESS with the same "line" as the specified "entry".
412 getutxline(const struct utmpx *entry)
425 * If the current entry is the one we are interested in,
431 strncmp(&entry->ut_line[0], &fubuf.ut_line[0],
439 * Since entry wasn't found, return NULL.
447 * USER_PROCESS with the same "line" as the specified "entry".
450 getutline(const struct utmp *entry)
456 return (_compat_getutline(entry));
464 getutmpx(entry, &utmpx);
586 * Normal termination. Return a pointer to the entry we just made.
606 * If there is already an entry with the same id, then it is
607 * overwritten, otherwise a new entry is made at the end of the
612 pututxline(const struct utmpx *entry)
620 * Copy the user supplied entry into our temporary buffer to
624 if (entry == NULL)
627 (void) memcpy(&tmpxbuf, entry, sizeof (tmpxbuf));
628 utmpx_api2frec(entry, &ftmpxbuf);
638 * so invoke update_utmp(8) to write the entry for us.
641 return (invoke_utmp_update(entry));
644 * Find the proper entry in the utmpx file. Start at the current
647 * If it still isn't found, then write a new entry at the end of
702 pututline(const struct utmp *entry)
708 return (_compat_pututline(entry));
710 getutmpx(entry, &utmpx);
730 * Zero the stored copy of the last entry read, since we are
905 * modutx - modify a utmpx entry. Also notify init about new pids or
916 struct utmpx *up; /* "current" utmpx entry */
934 * only get here if ids are the same, i.e. found right entry
952 * modut - modify a utmp entry. Also notify init about new pids or
990 * DEAD_PROCESS entry or creating a new one. This routine only
1138 * makeutx - create a utmpx entry, recycling an id if a wild card is
1189 * Unused entry, reuse it. We know the offset. So
1210 * Seek to end and write out the entry
1234 * makeut - create a utmp entry, recycling an id if a wild card is
1261 * Buffered read routine to get one entry from utmpx file