Tim J. Robbins
d2979f5673
Style: put static qualifier on definition of static functions.
2002-06-20 07:36:22 +00:00
Tim J. Robbins
8358edb6c7
Respect the setting of the COLUMNS environment variable, use it instead of
...
the TTY width obtained by ioctl() when set & non-null. (SUSv3)
2002-06-04 09:52:30 +00:00
Tim J. Robbins
1a94013869
Write "FROM" heading above the hostname column, like NetBSD and GNU do.
2002-05-28 06:36:46 +00:00
Tim J. Robbins
38a9994201
Reimplement the who(1) utility to add some features required by SUSv3:
...
-H option (show column headings),
-T (show mesg(1) state),
-m (same as "am I"),
-u (show idle time),
-q (quick mode; list names in columns).
PR: 36128
Reviewed by: mike
2002-05-09 23:04:40 +00:00
Warner Losh
3f330d7d1a
remove __P
2002-03-22 01:42:45 +00:00
Mark Murray
2c062c85e5
WARNS=2 fix, use __FBSDID().
...
WARNS=2 is not in Makefile, as this will be the default.
2001-12-11 22:29:53 +00:00
Dima Dorfman
7a19d1bbb9
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
Andrey A. Chernov
e36de81ee2
Don't attempt to parse %c
2001-03-21 19:16:41 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Dag-Erling Smørgrav
7ac237e80f
Back out Steve's fix, as this was already fixed by me in revision 1.6
1998-05-25 12:04:47 +00:00
Steve Price
af2bbadbe0
Only allow 'who' and 'who am i' as valid usages.
...
PR: 6294
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
1998-05-25 07:19:07 +00:00
Dag-Erling Smørgrav
574a97f5ce
Check that user really typed "who am {I,i}", and that no stray
...
arguments are given.
Note that usage() and the manpage disagree...
PR: bin/6294
Suggested by: Ruslan Ermilov and Bruce Evans
Submitted by: Ruslan Ermilov (partly)
1998-04-26 19:10:51 +00:00
Philippe Charnier
0abcff762c
Use err(3). Add usage().
1997-08-26 11:14:57 +00:00
Kazutaka YOKOTA
719ed69ecf
Made sure the string formated by strftime() is properly
...
null-terminated.
Fixed a wrong if statement which should test a string is
empty where in fact it tested the string pointer was NULL.
Should go to RELENG_2_1 and RELENG_2_2.
Reviewed by guido@freebsd.org .
1997-03-07 11:04:01 +00:00
Andrey A. Chernov
965f310ce1
Add setlocale LC_TIME
1995-10-24 04:06:02 +00:00
Andrey A. Chernov
eaf7e02e63
Replace ctime by strftime %c to use national date representation now
1995-08-07 23:39:58 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00