Home
last modified time | relevance | path

Searched refs:entryx (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/utmp_update/
H A Dutmp_update.c119 struct utmpx entryx; in main() local
161 load_utmpx_struct(&entryx, argv); in main()
162 check_utmpx(&entryx); in main()
168 if (fstatat(devfd, entryx.ut_line, &stat_arg, 0) < 0) { in main()
188 err = invalid_utmpx(&entryx, rutmpx); in main()
198 if (pututxline(&entryx) == (struct utmpx *)NULL) { in main()
226 load_utmpx_struct(struct utmpx *entryx, char *argv[]) in load_utmpx_struct() argument
233 (void) memset(entryx, 0, sizeof (struct utmpx)); in load_utmpx_struct()
249 (void) strncpy(entryx->ut_user, user, sizeof (entryx->ut_user)); in load_utmpx_struct()
250 (void) strncpy(entryx->ut_id, id, sizeof (entryx->ut_id)); in load_utmpx_struct()
[all …]
/illumos-gate/usr/src/cmd/sulogin/
H A Dsulogin.c619 struct utmpx entryx; in single() local
621 entryx.ut_tv.tv_sec = time(NULL); in single()
622 entryx.ut_type = USER_PROCESS; in single()
623 entryx.ut_pid = getpid(); in single()
624 (void) strcpy(entryx.ut_user, "root"); in single()
625 (void) strcpy(entryx.ut_line, ttyn); in single()
626 entryx.ut_tv.tv_usec = 0; in single()
627 entryx.ut_session = 0; in single()
628 entryx.ut_id[0] = 'c'; in single()
629 entryx.ut_id[1] = 'o'; in single()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c482 invoke_utmp_update(const struct utmpx *entryx) in invoke_utmp_update() argument
495 char pad[sizeof (entryx->pad) * 2 + 1]; in invoke_utmp_update()
496 char host[sizeof (entryx->ut_host) + 1]; in invoke_utmp_update()
506 (void) strncpy(user, entryx->ut_user, sizeof (entryx->ut_user)); in invoke_utmp_update()
507 user[sizeof (entryx->ut_user)] = '\0'; in invoke_utmp_update()
508 (void) strncpy(id, entryx->ut_id, sizeof (entryx->ut_id)); in invoke_utmp_update()
509 id[sizeof (entryx->ut_id)] = '\0'; in invoke_utmp_update()
510 (void) strncpy(line, entryx->ut_line, sizeof (entryx->ut_line)); in invoke_utmp_update()
511 line[sizeof (entryx->ut_line)] = '\0'; in invoke_utmp_update()
512 (void) sprintf(pid, "%d", (int)entryx->ut_pid); in invoke_utmp_update()
[all …]