1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 92 unchanged lines hidden (view full) --- 101 if (!w->loginat) { 102 (void)printf(" * * No logins "); 103 goto office; 104 } 105 (void)putchar(w->info == LOGGEDIN && !w->writable ? 106 '*' : ' '); 107 if (*w->tty) 108 (void)printf("%-2.2s ", |
109 (strncmp(w->tty, "tty", 3) 110 && strncmp(w->tty, "cua", 3)) 111 ? w->tty : w->tty + 3); |
112 else 113 (void)printf(" "); 114 if (w->info == LOGGEDIN) { 115 stimeprint(w); 116 (void)printf(" "); 117 } else 118 (void)printf(" * "); 119 p = ctime(&w->loginat); --- 42 unchanged lines hidden --- |