diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-08-18 21:24:28 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-08-18 21:24:28 +0000 |
commit | f3b03756281a9aa2eeea1d46ea58ee45394bb2b4 (patch) | |
tree | 153981071a8d03e369f09157b00756d6bbc3cf1d /usr.bin | |
parent | 159436dc6a636bed60449deadf172f1c09d75c40 (diff) |
- Xr w 1
- sort options and sync usage()
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/who/who.1 | 9 | ||||
-rw-r--r-- | usr.bin/who/who.c | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/who/who.1 b/usr.bin/who/who.1 index 78ae87a4060..45d3962b98b 100644 --- a/usr.bin/who/who.1 +++ b/usr.bin/who/who.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: who.1,v 1.18 2003/09/02 18:50:07 jmc Exp $ +.\" $OpenBSD: who.1,v 1.19 2004/08/18 21:24:27 jmc Exp $ .\" $NetBSD: who.1,v 1.5 1994/12/07 04:28:47 jtc Exp $ .\" .\" Copyright (c) 1986, 1991, 1993 @@ -38,7 +38,7 @@ .Nd display who is logged in .Sh SYNOPSIS .Nm who -.Op Fl mqTuH +.Op Fl HmqTu .Op Ar file .Nm who .Ar am i @@ -51,6 +51,8 @@ hostname if not local. .Pp The options are as follows: .Bl -tag -width Ds +.It Fl H +Write column headings above the regular output. .It Fl m Only print information about the current terminal. This is the @@ -74,8 +76,6 @@ and if a bad line is encountered. .It Fl u Print the idle time for each user. -.It Fl H -Write column headings above the regular output. .It Ar \&am I Returns the invoker's real user name. .It Ar file @@ -125,6 +125,7 @@ For more information on the special characters, see .Xr last 1 , .Xr mesg 1 , .Xr users 1 , +.Xr w 1 , .Xr getuid 2 , .Xr utmp 5 .Sh STANDARDS diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index 32cce5c7470..6363158d0ec 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -1,4 +1,4 @@ -/* $OpenBSD: who.c,v 1.16 2003/06/10 22:20:54 deraadt Exp $ */ +/* $OpenBSD: who.c,v 1.17 2004/08/18 21:24:27 jmc Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: who.c,v 1.16 2003/06/10 22:20:54 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: who.c,v 1.17 2004/08/18 21:24:27 jmc Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -296,6 +296,6 @@ file(char *name) void usage(void) { - (void)fprintf(stderr, "usage: who [-mqTuH] [ file ]\n who am i\n"); + (void)fprintf(stderr, "usage: who [-HmqTu] [file]\n who am i\n"); exit(1); } |