summaryrefslogtreecommitdiffstats
path: root/usr.bin/lastcomm/lastcomm.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded headers.delphij2011-06-211-2/+0
| | | | MFC after: 2 weeks
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | 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
* Let lastcomm(1) build without <utmp.h>.ed2010-01-101-4/+3
| | | | | Use MAXLOGNAME - 1 instead of UTNAMESIZE. There is no definition for TTY name sizes, at least not as low as 8, so hardcode it for now.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+3
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-3/+0
| | | | Tested with: make universe
* Increase precision of time values in the process accountingdds2007-05-221-67/+28
| | | | | structure, while maintaining backward compatibility with legacy file and record formats.
* Backout revisions 1.16-1.14.dds2007-05-141-43/+6
| | | | | | Backwards compatibility with the new acct(5) format will be implemented through the explicit versioning of acct records, not through an export/import procedure.
* Initialise variable size so that reading stdin works deterministically.dwmalone2007-05-031-2/+4
| | | | | | Add missing include. Default to WARNS=6.
* Change the export option from -w (write) to -X.dds2007-04-181-12/+12
| | | | | | | While implementing import it became apparent that write as a mnemonic is ambiguous and confusing. MFC after: 8 days
* Complain on write errors.dds2007-04-181-2/+6
| | | | | | Use correct type for write_text. MFC after: 8 days
* Add export capability through the new -w flag.dds2007-04-181-6/+41
| | | | | Discussed in: -arch MFC after: 8 days
* A dash as an argument to the -f option will now cause lastcomm todds2007-04-041-18/+31
| | | | | | | | read data from the standard input. This allows tail -f to pipe data to lastcomm, and thereby real-time monitoring of executed commands. The manual page includes the exact incantation. MFC after: 2 weeks
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-211-1/+1
|
* 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