/titanic_50/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | write.c | 89 struct utmpx *utx; in conv2utmpx() local 91 utx = (struct utmpx *) nbuf; in conv2utmpx() 95 (void) strcpy(utx->ut_user, ut->ut_name); in conv2utmpx() 96 (void) memset(utx->ut_id, 0, sizeof (utx->ut_id)); in conv2utmpx() 97 (void) strcpy(utx->ut_line, ut->ut_line); in conv2utmpx() 98 utx->ut_pid = 0; in conv2utmpx() 99 if ((strcmp(utx->ut_user, "") == 0) && in conv2utmpx() 100 (strcmp(utx->ut_host, "") == 0)) in conv2utmpx() 101 utx->ut_type = DEAD_PROCESS; in conv2utmpx() 103 utx->ut_type = USER_PROCESS; in conv2utmpx() [all …]
|
H A D | read.c | 83 struct utmpx *utx; in to_utmp() local 85 utx = (struct utmpx *)nbuf; in to_utmp() 88 while ((char *)utx < (nbuf + len)) { in to_utmp() 89 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line)); in to_utmp() 90 (void) strncpy(ut->ut_name, utx->ut_user, sizeof (ut->ut_name)); in to_utmp() 91 (void) strncpy(ut->ut_host, utx->ut_host, sizeof (ut->ut_host)); in to_utmp() 92 ut->ut_time = utx->ut_tv.tv_sec; in to_utmp() 93 utx++; in to_utmp()
|
/titanic_50/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | write.c | 101 struct utmpx *utx; in conv2utmpx() local 103 utx = (struct utmpx *) nbuf; in conv2utmpx() 107 (void) strcpy(utx->ut_user, ut->ut_name); in conv2utmpx() 108 (void) memset(utx->ut_id, 0, sizeof (utx->ut_id)); in conv2utmpx() 109 (void) strcpy(utx->ut_line, ut->ut_line); in conv2utmpx() 110 utx->ut_pid = 0; in conv2utmpx() 111 if ((strcmp(utx->ut_user, "") == 0) && in conv2utmpx() 112 (strcmp(utx->ut_host, "") == 0)) in conv2utmpx() 113 utx->ut_type = DEAD_PROCESS; in conv2utmpx() 115 utx->ut_type = USER_PROCESS; in conv2utmpx() [all …]
|
H A D | read.c | 88 struct utmpx *utx; in to_utmp() local 90 utx = (struct utmpx *)nbuf; in to_utmp() 93 while ((char *)utx < (nbuf + len)) { in to_utmp() 94 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line)); in to_utmp() 95 (void) strncpy(ut->ut_name, utx->ut_user, sizeof (ut->ut_name)); in to_utmp() 96 (void) strncpy(ut->ut_host, utx->ut_host, sizeof (ut->ut_host)); in to_utmp() 97 ut->ut_time = utx->ut_tv.tv_sec; in to_utmp() 98 utx++; in to_utmp()
|
/titanic_50/usr/src/cmd/ssh/sshd/ |
H A D | loginrec.c | 671 set_utmpx_time(struct logininfo *li, struct utmpx *utx) in set_utmpx_time() argument 674 utx->ut_tv.tv_sec = li->tv_sec; in set_utmpx_time() 675 utx->ut_tv.tv_usec = li->tv_usec; in set_utmpx_time() 678 utx->ut_time = li->tv_sec; in set_utmpx_time() 684 construct_utmpx(struct logininfo *li, struct utmpx *utx) in construct_utmpx() argument 686 (void) memset(utx, '\0', sizeof(*utx)); in construct_utmpx() 688 (void) line_abbrevname(utx->ut_id, li->line, sizeof(utx->ut_id)); in construct_utmpx() 694 utx->ut_type = USER_PROCESS; in construct_utmpx() 697 utx->ut_type = DEAD_PROCESS; in construct_utmpx() 701 (void) line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); in construct_utmpx() [all …]
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 867 updwtmpx(const char *filex, struct utmpx *utx) in updwtmpx() argument 877 utmpx_api2frec(utx, &futx); in updwtmpx() 1361 getutmpx(const struct utmp *ut, struct utmpx *utx) in getutmpx() argument 1363 (void) memcpy(utx->ut_user, ut->ut_user, sizeof (ut->ut_user)); in getutmpx() 1364 (void) bzero(&utx->ut_user[sizeof (ut->ut_user)], in getutmpx() 1365 sizeof (utx->ut_user) - sizeof (ut->ut_user)); in getutmpx() 1366 (void) memcpy(utx->ut_line, ut->ut_line, sizeof (ut->ut_line)); in getutmpx() 1367 (void) bzero(&utx->ut_line[sizeof (ut->ut_line)], in getutmpx() 1368 sizeof (utx->ut_line) - sizeof (ut->ut_line)); in getutmpx() 1369 (void) memcpy(utx->ut_id, ut->ut_id, sizeof (ut->ut_id)); in getutmpx() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | ttyslot.c | 55 struct utmpx utx; in ttyslot() local 74 while (_read(fd, &utx, sizeof (struct utmpx)) > 0) { in ttyslot() 76 if (strncmp(utx.ut_line, p, sizeof (utx.ut_line)) == 0) { in ttyslot()
|
/titanic_50/usr/src/head/ |
H A D | utmpx.h | 125 #define nonuserx(utx) ((utx).ut_exit.e_exit == NONROOT_USRX ? 1 : 0) argument 126 #define setuserx(utx) ((utx).ut_exit.e_exit = NONROOT_USRX) argument
|
/titanic_50/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 397 struct utmpx *utx; in is_login_user() local 405 while ((utx = getutxent()) != NULL) { in is_login_user() 406 if (utx->ut_type == USER_PROCESS && in is_login_user() 407 strncmp(utx->ut_user, ppwd->pw_name, in is_login_user() 408 strlen(ppwd->pw_name)) == 0 && (strncmp(utx->ut_line, in is_login_user() 409 "console", strlen("console")) == 0 || strncmp(utx->ut_line, in is_login_user()
|
/titanic_50/usr/src/lib/libc/port/ |
H A D | llib-lc | 574 void getutmp(const struct utmpx *utx, struct utmp *ut); 575 void getutmpx(const struct utmp *ut, struct utmpx *utx); 586 void updwtmpx(const char *filex, struct utmpx *utx);
|