History log of /freebsd-10.0-release/usr.bin/who/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

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

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

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


241331 07-Oct-2012 joel

Remove contractions.


235211 10-May-2012 gjb

General mdoc(7) and typo fixes.

PR: 167696
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days


231537 11-Feb-2012 ed

And of course, I forgot to add -a to the usage.


231536 11-Feb-2012 ed

Attempt to implement who -a.

According to POSIX, -a is equal to -bdlprtTu. It seems this is not true
in practice, as -b normally restricts the output to BOOT_TIME entries
and all implementations that I know of don't.


226881 28-Oct-2011 pluknet

Add the XSI option -b to show date of the last reboot.

That required to increase the LINE field to fit the output of -b.
While here, change the row() function to take a const argument.

In collaboration with: ed


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


202756 21-Jan-2010 ed

Remove stale references to utmp(5) and its corresponding filenames.

I removed utmp and its manpage, but not other manpages referring to it.


202200 13-Jan-2010 ed

Perform all trivial ports to utmpx for usr.bin/.

They were already converted to use libulog, so it's easy to convert them
to utmpx.


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


201033 26-Dec-2009 ed

Several refinements to libulog's API.

- Only set the fields in the ulog_utmpx structure that are valid for the
command in question. This means that strings like "shutdown" or "~"
are not visible to the user anymore.
- Rename UTXF_* to UTXI_*, indicating the indexation, instead of using
the `antique' filename. If we ever get rid of utmp, it makes little
sense calling it by its old name.


200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


200166 05-Dec-2009 ed

Port who(1) to utmpx.

(Un)fortunately there is no standardized interface to switch between
utmp database files, so we must call ulog_setutxfile() here.

I'm also changing the column widths to magic numbers here. Display
layout should in this case not be derived from structure fields sizes.
Because I don't want struct utmpx ever to become too small, the fields
are too big to reserve all the space.


155875 21-Feb-2006 cognet

In wall and who, check that the utmp entry isn't stalled, as it is done in w.
Apparently with the new pts code stalled entries are printed, when they are
not with the BSD ptys.

Submitted by: Michal Mertl <mime at traveller dot cz>


146753 29-May-2005 charnier

Move variable initialization to reduce compiler warning.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


121548 26-Oct-2003 peter

Fix a warning that showed up on 64 bit systems. It was actually a real
bug that had been swept under the carpet.


108146 21-Dec-2002 tjr

Remove unimplemented System V options from the getopt() option string.


107276 26-Nov-2002 ru

mdoc(7) police: markup polishing.

Approved by: re


106966 15-Nov-2002 peter

utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than
time_t. Deal with the possibility that time_t != int32_t. This boils
down to this sort of thing:
- time(&ut.ut_time);
+ ut.ut_time = time(NULL);
and similar for ctime(3) etc. I've kept it minimal for the stuff
that may need to be portable (or 3rd party code), but used Matt's time32
stuff for cases where that isn't as much of a concern.

Approved by: re (jhb)


98483 20-Jun-2002 tjr

Style: put static qualifier on definition of static functions.


97975 07-Jun-2002 tjr

Refer to environ(7) for description of COLUMNS. Note the effects of LANG,
LC_ALL and LC_TIME upon the utility.


97800 04-Jun-2002 tjr

Respect the setting of the COLUMNS environment variable, use it instead of
the TTY width obtained by ioctl() when set & non-null. (SUSv3)


97548 30-May-2002 ru

mdoc(7) police: lint.


97374 28-May-2002 tjr

Write "FROM" heading above the hostname column, like NetBSD and GNU do.


96299 09-May-2002 tjr

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


92922 22-Mar-2002 imp

remove __P


87679 11-Dec-2001 markm

WARNS=2 fix, use __FBSDID().

WARNS=2 is not in Makefile, as this will be the default.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


78868 27-Jun-2001 dd

Correct path to wtmp.

PR: 28433
Submitted by: Joseph Mallett <jmallett@xMach.org>


78718 24-Jun-2001 dd

Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).


74589 21-Mar-2001 ache

Don't attempt to parse %c


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


36370 25-May-1998 des

Back out Steve's fix, as this was already fixed by me in revision 1.6


36360 25-May-1998 steve

Only allow 'who' and 'who am i' as valid usages.

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


35470 26-Apr-1998 des

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)


35190 14-Apr-1998 phk

Better SYNOPSIS
PR: 6294
Reviewed by: bde, phk
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>


28791 26-Aug-1997 charnier

Use err(3). Add usage().


23494 07-Mar-1997 yokota

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.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


17891 29-Aug-1996 wosch

[HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41


11757 24-Oct-1995 ache

Add setlocale LC_TIME


9990 07-Aug-1995 ache

Replace ctime by strftime %c to use national date representation now


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.