Commit Graph

17 Commits

Author SHA1 Message Date
perry
8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
he
92c0ed8788 The nusers variable is actually a size_t, so print with %zd, not %d. 2005-10-01 13:33:21 +00:00
christos
ae3dca21e8 Patches from Liam Foy to:
- Use realloc instead of allocating 1000 structures.
- Remove NUSERS nonsense. If this is kept, shouldn't
  who(1) comply with it too?
- Be consistent with who(1). Add two identical options
  from who(1). These are -q and -H.
- General Cleans:
	- Move globals into local scope
	- Re-write a macro to remove an uneccessary
	  variable.
	- Use UT_NAMESIZE.
	- Remove unecessary header etc.

And from me, KNF, pass lint.
2005-09-30 17:58:24 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
mjl
f40dea5772 Add a setlocale() call and use strftime().
Use err() instead of fprintf + exit.
Check for extraenous arguments and complain.
ANSIfy.
2000-09-06 12:13:48 +00:00
tron
ab40c54610 Use full hostnames when sorting rwho database entries. Fixes PR bin/8401
by John Darrow.
1999-09-20 20:35:43 +00:00
christos
377fe973b8 include <fcntl.h> for O_RDONLY, and remove decls of optind and optarg. 1998-12-19 21:52:00 +00:00
kleink
0a87884eba Need <time.h> for time() and ctime() prototypes. 1998-04-02 11:00:10 +00:00
mrg
57417153bd WARNSify 1997-10-19 15:03:06 +00:00
lukem
568259857e WARNSify, fix .Nm usage 1997-10-19 14:34:08 +00:00
cgd
d15724228e print out a
rwho: no hosts in /var/rwho.
message like ruptime does, for consistency.  (Similarly, exit with exit
code 0, though i'm not sure that's "correct" for either.)
1997-03-08 23:08:28 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
tls
8292047440 Sync to 4.4BSD-Lite2 1997-01-09 15:33:42 +00:00
cgd
32411917b3 pull in string.h 1994-12-24 17:38:21 +00:00
jtc
a3881ff7a8 Use <dirent.h> instead of <sys/dir.h>. 1993-12-04 01:49:05 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd
e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00