Lines Matching defs:fubuf
130 static struct futmpx fubuf; /* Copy of last entry read in. */
226 if (fread(&fubuf, sizeof (fubuf), 1, fp) != 1) {
228 * Make sure fubuf is zeroed.
230 bzero(&fubuf, sizeof (fubuf));
234 return (&fubuf);
263 utmpx_frec2api(&fubuf, &ubuf);
308 utmpx_api2frec(&ubuf, &fubuf);
316 * If there is no entry in "fubuf", skip to the read.
318 if (fubuf.ut_type != EMPTY) {
338 if (entry->ut_type == fubuf.ut_type) {
339 utmpx_frec2api(&fubuf, &ubuf);
346 * and DEAD_PROCESS the type of the entry in "fubuf",
353 if (((type = fubuf.ut_type) == INIT_PROCESS ||
357 (fubuf.ut_id[0] == entry->ut_id[0]) &&
358 (fubuf.ut_id[1] == entry->ut_id[1]) &&
359 (fubuf.ut_id[2] == entry->ut_id[2]) &&
360 (fubuf.ut_id[3] == entry->ut_id[3])) {
361 utmpx_frec2api(&fubuf, &ubuf);
378 utmpx_frec2api(&fubuf, &ubuf);
421 utmpx_api2frec(&ubuf, &fubuf);
428 if (fubuf.ut_type != EMPTY &&
429 (fubuf.ut_type == LOGIN_PROCESS ||
430 fubuf.ut_type == USER_PROCESS) &&
431 strncmp(&entry->ut_line[0], &fubuf.ut_line[0],
432 sizeof (fubuf.ut_line)) == 0) {
433 utmpx_frec2api(&fubuf, &ubuf);
441 utmpx_frec2api(&fubuf, &ubuf);
679 * Save the new user structure into ubuf and fubuf so that
683 (void) memcpy(&fubuf, &ftmpxbuf, sizeof (fubuf));
684 utmpx_frec2api(&fubuf, &ubuf);
734 bzero(&fubuf, sizeof (fubuf));
766 bzero(&fubuf, sizeof (fubuf));