Home | History | Annotate | Download | only in who

Lines Matching refs:up

267 getentry(struct utmpentry *e, struct utmp *up)
269 COMPILE_ASSERT(sizeof(e->name) > sizeof(up->ut_name));
270 COMPILE_ASSERT(sizeof(e->line) > sizeof(up->ut_line));
271 COMPILE_ASSERT(sizeof(e->host) > sizeof(up->ut_host));
277 * up->ut_* because they may not be terminated. For this
281 memcpy(e->name, up->ut_name, sizeof(up->ut_name));
282 memcpy(e->line, up->ut_line, sizeof(up->ut_line));
283 memcpy(e->host, up->ut_host, sizeof(up->ut_host));
285 e->tv.tv_sec = up->ut_time;
298 getentryx(struct utmpentry *e, struct utmpx *up)
300 COMPILE_ASSERT(sizeof(e->name) > sizeof(up->ut_name));
301 COMPILE_ASSERT(sizeof(e->line) > sizeof(up->ut_line));
302 COMPILE_ASSERT(sizeof(e->host) > sizeof(up->ut_host));
308 * up->ut_* because they may not be terminated. For this
312 memcpy(e->name, up->ut_name, sizeof(up->ut_name));
313 memcpy(e->line, up->ut_line, sizeof(up->ut_line));
314 memcpy(e->host, up->ut_host, sizeof(up->ut_host));
316 e->tv = up->ut_tv;
317 e->pid = up->ut_pid;
318 e->term = up->ut_exit.e_termination;
319 e->exit = up->ut_exit.e_exit;
320 e->sess = up->ut_session;
321 e->type = up->ut_type;