Lines Matching defs:up
537 struct ru_utmp *up;
540 up = &uip->ui_utmp;
541 #define NAMEMAX ((sizeof (up->ut_name) < NMAX) ? NMAX : sizeof (up->ut_name))
542 #define NAMEMIN ((sizeof (up->ut_name) > NMAX) ? NMAX : sizeof (up->ut_name))
543 /* Try and align this up nicely */
544 #define LINEMAX sizeof (up->ut_line)
545 #define HOSTMAX sizeof (up->ut_host)
552 (void) strncpy(buf, up->ut_name, NAMEMAX);
558 (void) strncat(buf, up->ut_line, LINEMAX);
562 cbuf = (char *)ctime(&up->ut_time);
568 if (up->ut_host[0]) {
569 (void) strncpy(buf, up->ut_host, HOSTMAX);