version 1.7, 1997/03/08 23:08:28 |
version 1.8, 1997/10/19 14:34:11 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
|
#include <sys/cdefs.h> |
#ifndef lint |
#ifndef lint |
static char copyright[] = |
__COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\ |
"@(#) Copyright (c) 1983, 1993\n\ |
The Regents of the University of California. All rights reserved.\n"); |
The Regents of the University of California. All rights reserved.\n"; |
|
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#ifndef lint |
#ifndef lint |
/*static char sccsid[] = "from: @(#)rwho.c 8.1 (Berkeley) 6/6/93";*/ |
/*static char sccsid[] = "from: @(#)rwho.c 8.1 (Berkeley) 6/6/93";*/ |
static char rcsid[] = "$NetBSD$"; |
__RCSID("$NetBSD$"); |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
|
|
int ch; |
int ch; |
struct dirent *dp; |
struct dirent *dp; |
int cc, width; |
int cc, width; |
register struct whod *w = &wd; |
struct whod *w = &wd; |
register struct whoent *we; |
struct whoent *we; |
register struct myutmp *mp; |
struct myutmp *mp; |
int f, n, i, nhosts; |
int f, n, i, nhosts; |
time_t time(); |
time_t time(); |
|
|
while ((ch = getopt(argc, argv, "a")) != EOF) |
while ((ch = getopt(argc, argv, "a")) != -1) |
switch((char)ch) { |
switch((char)ch) { |
case 'a': |
case 'a': |
aflg = 1; |
aflg = 1; |