History log of /freebsd-9.3-release/usr.bin/rwho/rwho.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 229209 01-Jan-2012 dim

MFC r226427:

Build rwho(1) with WARNS=6.

The only reason why it didn't build with WARNS=6, is because of some
simple to fix string formatting bugs.


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 200997 25-Dec-2009 ed

Let the width of the username column depend on the rwho file format.

Right now the code uses UT_NAMESIZE, but this makes little sense,
because rwho(1) parses files generated by rwhod(8). Not utmp(5) files.


# 99218 01-Jul-2002 markm

Modernise; ISOify, use __FBSDID(), use headers instead of hand-declaring.
Fix easy warnings.


# 92921 21-Mar-2002 imp

remove __P


# 89572 19-Jan-2002 dillon

I've been meaning to do this for a while. Add an underscore to the
time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx()
instead of time_to_xxx(), to make it more obvious that these are
stopgap functions & placemarkers and not meant to create a defacto
standard. They will eventually be replaced when a real standard
comes out of committee.


# 85639 28-Oct-2001 dillon

Fix time_t == int assumption, convert protocol int to time_t.


# 74593 21-Mar-2001 ache

Don't attempt to parse %c


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 35659 03-May-1998 steve

Be picky about the format of the commandline and cleanup
a warning related to qsort.

PR: 6420
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>


# 27978 08-Aug-1997 charnier

Use err(3). Add usage() and prototypes. Add Xr to who(1).


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 20165 05-Dec-1996 ache

Fix my error from previous commit with mixing rwhod protocol
and utmp sizes.
Replace hardcoded constants by sizeofs or symbolic constants


# 20156 05-Dec-1996 ache

Use UT_* contstants when possible instead of harcoded 8

2.2 candidate


# 18485 24-Sep-1996 bde

Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications. Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.


# 11758 24-Oct-1995 ache

Add setlocale LT_TIME


# 9992 07-Aug-1995 ache

Change ctime to strftime %c to use national date/time representation.


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 5239 26-Dec-1994 ats

My prevoius commit missed some things. The out_line didn't need
to be padded to 8 chars. Simply make sure that never more than 8 chars
are printed ( %-.8s ). The former commit otherwise hosed the width
calculation and landed on different positions for the time output.
Also the strlen(xx_out_line) hoses the wide
calculation, so that it sometimes make it much larger than necessary.
Simply use always 8 chars for the out_line calculation now. Looks good
this way.


# 5235 26-Dec-1994 ats

The out_line doesn't need to be zero terminated, so print it not with %s
but with a %-8.8s instead. this prevents funny output, if the out_line
contains a long hostname that is larger than 8 chars.


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources