Lines Matching defs:u
95 struct utmpx *u;
100 (void) strncpy(buf, lastname(line), sizeof (u->ut_line));
101 buf[sizeof (u->ut_line)] = '\0';
104 while ((u = getutxent()) != NULL) {
105 if (u->ut_pid == ownpid) {
106 if (u->ut_type == USER_PROCESS) {
107 strncpy(ttyn, u->ut_line, sizeof (u->ut_line));
108 ttyn[sizeof (u->ut_line)] = '\0';
187 struct utmpx *u;
192 while ((u = getutxent()) != NULL) {
194 if (u->ut_type == INIT_PROCESS && u->ut_pid == ownpid) {
195 (void) strncpy(u->ut_line, lastname(line),
196 sizeof (u->ut_line));
197 (void) strncpy(u->ut_user, "LOGIN",
198 sizeof (u->ut_user));
199 u->ut_type = LOGIN_PROCESS;
202 (void) pututxline(u);
208 if (u != NULL)
209 updwtmpx("/etc/wtmpx", u);