aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lastcomm
Commit message (Collapse)AuthorAgeFilesLines
* Increase precision of time values in the process accountingDiomidis Spinellis2007-05-223-67/+260
| | | | | | | | structure, while maintaining backward compatibility with legacy file and record formats. Notes: svn path=/head/; revision=169857
* Backout revisions 1.16-1.14.Diomidis Spinellis2007-05-142-59/+7
| | | | | | | | | Backwards compatibility with the new acct(5) format will be implemented through the explicit versioning of acct records, not through an export/import procedure. Notes: svn path=/head/; revision=169549
* Initialise variable size so that reading stdin works deterministically.David Malone2007-05-032-2/+5
| | | | | | | | | Add missing include. Default to WARNS=6. Notes: svn path=/head/; revision=169235
* Change the export option from -w (write) to -X.Diomidis Spinellis2007-04-182-15/+15
| | | | | | | | | | While implementing import it became apparent that write as a mnemonic is ambiguous and confusing. MFC after: 8 days Notes: svn path=/head/; revision=168841
* Complain on write errors.Diomidis Spinellis2007-04-181-2/+6
| | | | | | | | | Use correct type for write_text. MFC after: 8 days Notes: svn path=/head/; revision=168836
* Add export capability through the new -w flag.Diomidis Spinellis2007-04-182-7/+57
| | | | | | | | Discussed in: -arch MFC after: 8 days Notes: svn path=/head/; revision=168835
* A dash as an argument to the -f option will now cause lastcomm toDiomidis Spinellis2007-04-042-20/+56
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=168367
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-1/+1
| | | | Notes: svn path=/head/; revision=146466
* Introduce options list the standard way. Correct style(9) in FILES section.Philippe Charnier2004-07-261-4/+2
| | | | Notes: svn path=/head/; revision=132670
* Deal with double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131507
* Remove unneeded lseek(2) hack to position past the 2GB point,Hiten Pandya2004-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> Notes: svn path=/head/; revision=129509
* Don't try to fseek before the beginning of the file; POSIX requires thatBill Fenner2003-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" Notes: svn path=/head/; revision=109943
* ANSIify function definitions.David Malone2002-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 Notes: svn path=/head/; revision=102944
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* Use `The .Nm utility'. Add section number to .Xr.Philippe Charnier2002-04-201-3/+4
| | | | Notes: svn path=/head/; revision=95162
* remove __PWarner Losh2002-03-221-5/+5
| | | | Notes: svn path=/head/; revision=92920
* Fixed divots that I created when I moved prototypes of group_from_gidWarner Losh2002-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 Notes: svn path=/head/; revision=90878
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Staticize, constize, de-registerize; don't shadow global definitions;Dima Dorfman2001-06-262-30/+31
| | | | | | | | | set WARNS=2. Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78859
* Print spaces on the leading edge rather than the trailing edge of eachMike Heffner2001-06-161-8/+7
| | | | | | | | | | field to avoid trailing spaces. PR: bin/16649 MFC after: 2 weeks Notes: svn path=/head/; revision=78341
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-3/+3
| | | | Notes: svn path=/head/; revision=70197
* Avoid using the semi-bogus include <struct.h>Poul-Henning Kamp2000-10-221-5/+3
| | | | | | | All uses of fldsiz() in this file were wrong anyway. Notes: svn path=/head/; revision=67443
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Cosmetic in usage string.Philippe Charnier1997-07-212-9/+11
| | | | Notes: svn path=/head/; revision=27571
* Long command names are not NUL terminated. Force truncation in format string.Tor Egge1997-06-231-2/+3
| | | | Notes: svn path=/head/; revision=26853
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Clean up style and formatting. The listing of options could still beGarrett Wollman1996-09-181-32/+34
| | | | | | | improved. Notes: svn path=/head/; revision=18361
* Add some options which makes lastcomm(1) a better debug tool.Wolfram Schneider1996-06-302-13/+119
| | | | Notes: svn path=/head/; revision=16849
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8874
* Fix output field rangeAndrey A. Chernov1995-04-111-2/+3
| | | | | | | Submitted by: edward@edcom.com Notes: svn path=/head/; revision=7762
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-274-0/+389
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590