summaryrefslogtreecommitdiffstats
path: root/usr.bin/lastcomm/lastcomm.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded lseek(2) hack to position past the 2GB point,hmp2004-05-201-18/+9
| | | | | | | | | use fseeko(3) instead. This commit fixes breakage when `lastcomm matchstring` is run. PR: bin/66765, bin/64568 Submitted by: Dan Nelson <dnelson at allantgroup.com>
* Don't try to fseek before the beginning of the file; POSIX requires thatfenner2003-01-271-7/+8
| | | | | | this return an error. This re-enables display of the first entry in /var/account/acct instead of the error "lastcomm: /var/account/acct: Invalid argument"
* ANSIify function definitions.dwmalone2002-09-041-13/+6
| | | | | | | | | 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
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* remove __Pimp2002-03-221-5/+5
|
* Fixed divots that I created when I moved prototypes of group_from_gidimp2002-02-191-0/+1
| | | | | | | and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp
* Staticize, constize, de-registerize; don't shadow global definitions;dd2001-06-261-29/+28
| | | | | | set WARNS=2. Submitted by: Mike Barcroft <mike@q9media.com>
* Print spaces on the leading edge rather than the trailing edge of eachmikeh2001-06-161-8/+7
| | | | | | | field to avoid trailing spaces. PR: bin/16649 MFC after: 2 weeks
* Avoid using the semi-bogus include <struct.h>phk2000-10-221-5/+3
| | | | All uses of fldsiz() in this file were wrong anyway.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Cosmetic in usage string.charnier1997-07-211-5/+7
|
* Long command names are not NUL terminated. Force truncation in format string.tegge1997-06-231-2/+3
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Add some options which makes lastcomm(1) a better debug tool.wosch1996-06-301-11/+87
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Fix output field rangeache1995-04-111-2/+3
| | | | Submitted by: edward@edcom.com
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+222
OpenPOWER on IntegriCloud