Lines Matching refs:rutp
58 rusers_utmp *rutp;
67 for (rutp = uap->utmp_array_val, i = 0;
68 i < up.uia_cnt; rutp++, i++) {
69 rutp->ut_line = (char *)malloc(sizeof
71 rutp->ut_user = (char *)malloc(sizeof
73 rutp->ut_host = (char *)malloc(sizeof
75 if (rutp->ut_line == NULL ||
76 rutp->ut_user == NULL ||
77 rutp->ut_host == NULL) {
79 while (--rutp >= uap->utmp_array_val) {
80 free(rutp->ut_line);
81 free(rutp->ut_user);
82 free(rutp->ut_host);
88 strncpy(rutp->ut_line,
91 strncpy(rutp->ut_user,
94 strncpy(rutp->ut_host,
97 rutp->ut_idle = up.uia_arr[i]->ui_idle;
98 rutp->ut_time = up.uia_arr[i]->ui_utmp.ut_time;
99 rutp->ut_type = RUSERS_USER_PROCESS;