Lines Matching defs:utmpx
43 * its utmpx entry on termination.
46 * Also the program periodically scans the /etc/utmpx file for
62 #include <utmpx.h>
155 * Scanner - periodically scans the utmpx file for stale entries
160 static void scan_utmps(); /* Scanner, reads utmpx file */
172 static void clean_utmpx_ent(); /* Cleans a utmpx entry */
304 * Loop here scanning the utmpx file and waiting for processes
336 * the tables by scanning utmpx
539 * scan_utmps() - Scan the utmpx file.
549 struct utmpx *utmpx;
554 * Scan utmpx.
557 while ((utmpx = getutxent()) != NULL) {
558 if (utmpx->ut_type == USER_PROCESS) {
562 if (proc_is_alive(utmpx->ut_pid)) {
567 if (find_pid(utmpx->ut_pid, &i) == 0)
568 add_pid(utmpx->ut_pid); /* No, add it */
574 if (find_pid(utmpx->ut_pid, &i) == 1)
575 rem_pid(utmpx->ut_pid, i, CLEANIT);
577 clean_utmpx_ent(utmpx);
786 * not in the utmpx file.
931 struct utmpx *u;
949 * Do nothing if entry not found in utmpx file.
964 * clean_utmpx_ent - Clean a utmpx entry
968 clean_utmpx_ent(struct utmpx *u)