Searched refs:utx (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/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() 1360 getutmpx(const struct utmp *ut, struct utmpx *utx) in getutmpx() argument 1362 (void) memcpy(utx->ut_user, ut->ut_user, sizeof (ut->ut_user)); in getutmpx() 1363 (void) bzero(&utx->ut_user[sizeof (ut->ut_user)], in getutmpx() 1364 sizeof (utx->ut_user) - sizeof (ut->ut_user)); in getutmpx() 1365 (void) memcpy(utx->ut_line, ut->ut_line, sizeof (ut->ut_line)); in getutmpx() 1366 (void) bzero(&utx->ut_line[sizeof (ut->ut_line)], in getutmpx() 1367 sizeof (utx->ut_line) - sizeof (ut->ut_line)); in getutmpx() 1368 (void) memcpy(utx->ut_id, ut->ut_id, sizeof (ut->ut_id)); in getutmpx() [all …]
|
/illumos-gate/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
|
/illumos-gate/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()
|