History log of /freebsd-10.1-release/usr.bin/users/users.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

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


# 223222 18-Jun-2011 ed

Let the size of the namebuf depend on the size of the ut_user field.


# 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


# 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.


# 200154 05-Dec-2009 ed

Use _ULOG_POSIX_NAMES here, to make eventual porting to <utmpx.h> easier.

By the time we gain a real <utmpx.h>, it's just a matter of changing the
include at the top and -lulog from the Makefile.


# 200067 03-Dec-2009 ed

Use USER_PROCESS instead of LOGIN_PROCESS.

POSIX isn't clear about how the fields should be used, but according to
utmpx(5) on Linux, LOGIN_PROCESS refers to a TTY that's still running a
getty.


# 200066 03-Dec-2009 ed

Port users(1) to libulog.

Instead of digging through the utmp database by hand, use proper API
calls to do so. Instead of parsing entries with a non-empty ut_user, we
now look at LOGIN_PROCESS entries.


# 102944 04-Sep-2002 dwmalone

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


# 92922 21-Mar-2002 imp

remove __P


# 83232 08-Sep-2001 mike

Remove a bogus cast and lockdown users(1) with WARNS?=2

Submitted by: David Hill <david@phobia.ms>
Reviewed by: -audit
MFC after: 1 week


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 28789 26-Aug-1997 charnier

Main() returns int.


# 28563 22-Aug-1997 charnier

Was limited to 200 users. New entry is now allocated as needed.
Add usage().
Obtained from:OpenBSD.


# 24360 29-Mar-1997 imp

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


# 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