Commit Graph

46 Commits

Author SHA1 Message Date
dim
6429d99436 In usr.sbin/sa/db.c, avoid warnings about assigning two const char
arrays to non-const void pointers, by casting away const explicitly.

MFC after:	1 week
2011-12-18 01:08:25 +00:00
uqs
64c451d29e mdoc: move remaining sections into consistent order
This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.

Found by:	mdocml lint run
Reviewed by:	ru
2010-05-13 12:08:11 +00:00
ed
073cafdd42 The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ed
b9ca89bfc4 ANSIfy almost all applications that use WARNS=6.
I was considering committing all these patches one by one, but as
discussed with brooks@, there is no need to do this. If we ever
need/want to merge these changes back, it is still possible to do this
per application.
2009-12-29 22:53:27 +00:00
grog
afb9fa5a4b Ensure that the -s flag truncates the accounting data.
This problem has only been reported on the amd64 platform.

PR:		bin/120293
Tested by:	Callum Gibson
MFC after:	2 weeks
2008-02-21 07:12:56 +00:00
jb
64d8b73773 Fix a compiler warning by using a printf format matching the variable
type.
2007-11-17 23:17:05 +00:00
dds
56b5e53094 Set .PATH before referring to the corresponding sources. 2007-05-22 10:49:42 +00:00
dds
9ed27d1038 Increase precision of time values in the process accounting
structure, while maintaining backward compatibility with legacy
file and record formats.
2007-05-22 06:51:38 +00:00
dds
ef91577059 Add -U and -P options that allow the specification of the per-user
and per-process summary file location.
These make the program more flexible, and also make it possible to write
sane regression tests.
2007-05-18 12:36:10 +00:00
dds
2e74e12231 Fix the output of percentage figures, which mistakenly were
the corresponding ratios.

PR:		bin/111329
MFC after:	10 days
2007-04-07 06:38:19 +00:00
ru
6b6b8c04f6 Expand contractions. 2005-02-13 23:45:54 +00:00
delphij
2dae001657 Full modernize cleanup:
- De-__P()
	- constify where appropriate
	- ANSI functions instead of K&R

Pointed out by:	stefanf
2005-02-10 12:43:16 +00:00
delphij
f78cbbd5f5 Code cleanup:
- Prefer modern declaration of functions
	- WARNS?= 4 -> 6
2005-02-10 07:07:32 +00:00
ru
c05985f13f Sort sections. 2005-01-18 20:02:45 +00:00
ru
6cc4b6c220 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
ru
6294018a20 Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
grehan
2dafdd4f00 Userland signed char fixes for PPC build. Problems were using a char
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe
2004-01-22 07:23:36 +00:00
obrien
7293a24a2b Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
obrien
a920d12f89 style.Makefile(5) 2003-04-04 17:49:21 +00:00
des
71010f6257 Get rid of %qd, and unbreak Alpha build. 2002-07-15 16:05:15 +00:00
charnier
d2168fe021 The .Nm utility 2002-07-14 14:47:15 +00:00
alfred
088603aa7d WARNS=4, de-__P() 2002-07-11 22:11:20 +00:00
imp
60cc340d82 Fixed divots that I created when I moved prototypes of group_from_gid
and user_from_uid to grp.h and pwd.h.  Update the man pages.

Submitted by: David Malone
Pointy hat to: imp
2002-02-19 00:05:59 +00:00
ru
bde8ec1b70 mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
dd
911ca14c87 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
afd506414e - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
ru
f10dc9aca1 Set the default manual section for usr.sbin/ to 8. 2001-03-20 18:17:26 +00:00
asmodai
2f1d3e2cdf Fix typo: seperate -> separate.
Seperate does not exist in the english language.
2001-02-06 11:21:58 +00:00
ru
71e2293ad4 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 20:10:44 +00:00
gallatin
7fc6c09ef4 fix unaligned access errors by copying untyped data to properly aligned
locals
PR: alpha/13912
obtained from: NetBSD
tested by: Marcin Gryszkalis <dagoon@rs.math.uni.lodz.pl>
2000-10-26 17:35:46 +00:00
ghelmer
4fe853adac Adjust the width of the first column in output from "sa -m" to match
the max length of user names.

PR:		bin/10905
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
2000-05-30 13:27:33 +00:00
chris
3e0ef0bbfc Grammar fix: `Different than'' should really be `different from''. 2000-01-29 01:54:59 +00:00
peter
efabb9ccb1 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
bde
2dc04dd2d7 Fixed printf format errors. One of them fixes the garbage output for
sa -km reported in the PR.

PR:		4582
1999-08-06 07:03:25 +00:00
jmz
e7d8972c4b Initialize exit code so that the program exits with code 0 on success.
PR:		bin/10904
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
1999-05-22 22:56:26 +00:00
charnier
6e321f37d4 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
charnier
189d33fcde Add usage(). 1997-10-15 06:41:19 +00:00
peter
b782f4df30 Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
wosch
3c5e4a3bbe Sort cross references. 1997-01-20 00:03:00 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
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.
1997-01-14 07:20:47 +00:00
wosch
000fb64288 delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
mpp
86b292ffbd Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
mpp
45b01cc2e8 Fix the -t option so that its output matches what the man
page says it prints.  Also silence a few "cc -Wall" warnings.
1996-01-22 09:02:08 +00:00
rgrimes
4f960dd75f Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
dg
2b87c40e9e Local changes - manual page extension, and minor man page changes 1994-09-26 21:41:06 +00:00
dg
dfadb8e7c4 Process accounting utility by Chris Demetriou.
Obtained from:	NetBSD
1994-09-26 21:22:57 +00:00