summaryrefslogtreecommitdiffstats
path: root/usr.bin/lastcomm
Commit message (Collapse)AuthorAgeFilesLines
* MFC various moves of tools/regressions/ tests to the new infrastructure.jmmv2014-04-2717-0/+334
| | | | | | | | | | | | | | | | - r263220 Migrate tools/regression/sbin/ to the new tests layout. - r263222 Add Makefile missed in r263220. - r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout. - r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout. - r263345 Expand tabs that sneaked in into spaces. - r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout. - r263348 Add Makefiles missed in r263346. - r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout. - r263388 Mark multi_test as requiring /usr/share/dict/words. - r263814 Fix path to the run.pl script to let these tests run. - r264742 Prevent building tests when bootstrapping make. This is 'make tinderbox' clean.
* Allow to specify strftime(3) format for process start end exit times.kib2012-05-172-5/+36
| | | | | Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week
* Remove unneeded headers.delphij2011-06-212-6/+0
| | | | MFC after: 2 weeks
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-113-12/+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
* Update xrefs from 4.3BSD to modern signal functions in various man pages.jilles2010-05-061-1/+1
| | | | | | | sigvec(2) references have been updated to sigaction(2), sigsetmask(2) and sigblock(2) to sigprocmask(2), sigpause(2) to sigsuspend(2). Some legacy man pages still refer to them, that is OK.
* 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.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-132-0/+7
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-113-9/+2
| | | | Tested with: make universe
* Increase precision of time values in the process accountingdds2007-05-223-67/+260
| | | | | structure, while maintaining backward compatibility with legacy file and record formats.
* Backout revisions 1.16-1.14.dds2007-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.
* Initialise variable size so that reading stdin works deterministically.dwmalone2007-05-032-2/+5
| | | | | | Add missing include. Default to WARNS=6.
* Change the export option from -w (write) to -X.dds2007-04-182-15/+15
| | | | | | | 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-182-7/+57
| | | | | Discussed in: -arch MFC after: 8 days
* A dash as an argument to the -f option will now cause lastcomm todds2007-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
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-211-1/+1
|
* Introduce options list the standard way. Correct style(9) in FILES section.charnier2004-07-261-4/+2
|
* Deal with double whitespace.ru2004-07-031-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
|
* Use `The .Nm utility'. Add section number to .Xr.charnier2002-04-201-3/+4
|
* 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
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Staticize, constize, de-registerize; don't shadow global definitions;dd2001-06-262-30/+31
| | | | | | 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
* Prepare for mdoc(7)NG.ru2000-12-191-3/+3
|
* 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-282-2/+2
|
* Cosmetic in usage string.charnier1997-07-212-9/+11
|
* 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-222-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Clean up style and formatting. The listing of options could still bewollman1996-09-181-32/+34
| | | | improved.
* Add some options which makes lastcomm(1) a better debug tool.wosch1996-06-302-13/+119
|
* 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-274-0/+389
OpenPOWER on IntegriCloud