Lines Matching refs:utmpx

152 #define	NMAX	sizeof (((struct utmpx *)0)->ut_name)
153 #define HMAX sizeof (((struct utmpx *)0)->ut_host)
2014 struct utmpx *u = (struct utmpx *)0; in update_utmpx_entry()
2015 struct utmpx utmpx; in update_utmpx_entry() local
2038 (void) memset((void *)&utmpx, 0, sizeof (utmpx)); in update_utmpx_entry()
2039 (void) time(&utmpx.ut_tv.tv_sec); in update_utmpx_entry()
2040 utmpx.ut_pid = getpid(); in update_utmpx_entry()
2043 SCPYN(utmpx.ut_host, remote_host); in update_utmpx_entry()
2045 if (tmplen < sizeof (utmpx.ut_host)) in update_utmpx_entry()
2046 utmpx.ut_syslen = tmplen; in update_utmpx_entry()
2048 utmpx.ut_syslen = sizeof (utmpx.ut_host); in update_utmpx_entry()
2054 SCPYN(utmpx.ut_host, zone_name); in update_utmpx_entry()
2056 if (tmplen < sizeof (utmpx.ut_host)) in update_utmpx_entry()
2057 utmpx.ut_syslen = tmplen; in update_utmpx_entry()
2059 utmpx.ut_syslen = sizeof (utmpx.ut_host); in update_utmpx_entry()
2061 utmpx.ut_syslen = 0; in update_utmpx_entry()
2064 SCPYN(utmpx.ut_user, user); in update_utmpx_entry()
2076 SCPYN(utmpx.ut_line, (ttyn+sizeof ("/dev/")-1)); in update_utmpx_entry()
2077 (void) memcpy(utmpx.ut_id, u->ut_id, in update_utmpx_entry()
2078 sizeof (utmpx.ut_id)); in update_utmpx_entry()
2079 utmpx.ut_exit.e_exit = u->ut_exit.e_exit; in update_utmpx_entry()
2080 utmpx.ut_type = USER_PROCESS; in update_utmpx_entry()
2081 (void) pututxline(&utmpx); in update_utmpx_entry()
2087 if (u == (struct utmpx *)NULL) { in update_utmpx_entry()
2102 updwtmpx(WTMPX_FILE, &utmpx); in update_utmpx_entry()