ed
0bcfe62162
Replace __const by const in all non-contributed source code.
...
As C1X is close to being released, there is no need to wrap around a
feature that is already part of C90. Most of these files already use
`const' in different placed as well.
2011-12-13 13:32:56 +00:00
trociny
276f79818d
Make 64-bit procstat output ELF auxiliary vectors for 32-bit processes.
...
Reviewed by: kib
MFC after: 1 week
2011-12-12 22:01:33 +00:00
trociny
34b16620f0
Make procstat -l output similar to the output of limits(1).
...
Suggested by: jhb
MFC after: 1 week
2011-12-12 21:41:05 +00:00
ed
e886a142d5
Add more static keywords to truss(1) source code.
...
There are some tables in the source code that are only used by the
individual source files themselves. Therefore there is no need to export
them.
2011-12-10 18:27:55 +00:00
ed
2547a674dd
Add missing "static const" to long options table.
...
This table is only used in this C file and passed to getopt_long(), so
we can safely add static and const to it.
2011-12-10 18:21:03 +00:00
ed
f559e163ab
Replace char copyright[] by static const char copyright[].
...
It seems the latter is used throughout the tree.
2011-12-10 18:11:06 +00:00
gjb
d9807d7f63
Update du(1):
...
- Sort arguments alphabetically where appropriate
- '-B blocksize' is not mutually exclusive of '-h|-k|-m'
- Mention '-t' in synopsis
- Other wording improvements
- Update usage() output to reflect the new synopsis [1]
- Other miscellaneous improvements
PR: 162438
Submitted by: arundel
Reviewed by: Benjamin Kaduk (kaduk ! mit.edu), jhb[1] (original version)
MFC after: 1 week
2011-12-09 02:30:56 +00:00
gabor
ecc4a991f3
- Match GNU behavior of exit code
...
- Rename variable that has a different meaning now
PR: bin/162930
Submitted by: Jan Beich <jbeich@tormail.net>
MFC after: 1 week
2011-12-07 12:25:28 +00:00
trociny
85356b61d3
Don't output a warning if kern.proc.auxv sysctl has returned EPERM.
...
After r228288 this is rather a normal situation.
MFC after: 1 week
2011-12-05 19:39:15 +00:00
kib
aebf2bbe92
Use explicit information from the kernel to detect the traps due to
...
syscall entry and leave.
Based on submision by: Dan Nelson <dnelson allantgroup com>
MFC after: 1 month
2011-12-04 18:43:09 +00:00
fjoe
6f481b1357
- Fix segmentation fault when running "+command" when run with -jX -n due
...
to Compat_RunCommand() being called with `cmd' that is not on the node->commands
list
- Make ellipsis ("..." command) handling consistent: check for "..." command
in job make after variables expansion to match compat make behavior
- Fix empty command handling (after variables expansion and @+- modifiers
are processed): now empty commands are ignored in compat make and are not
printed in job make case
- Bump MAKE_VERSION to 5-2011-11-30-0
2011-11-30 18:07:38 +00:00
gabor
cfb0c71011
- Create links to the xz and lzma versions even if BSD grep is not the
...
default. Nor GNU nor liblzma in base provides such functionality so
it may be useful.
MFC after: 3 days
2011-11-28 20:16:55 +00:00
gabor
8202ac2d5f
- Call warnx() instead of errx() if a directory is not readable when using
...
a recursive search. This is the expected behavior instead of aborting.
PR: bin/162907
Submitted by: Jan Beich <jbeich@tormail.net>
MFC after: 3 days
2011-11-28 20:04:26 +00:00
gabor
7b8d844d3a
- Fix behavior of --null to match GNU grep
...
PR: bin/162906
Submitted by: Jan Beich <jbeich@tormail.net>
MFC after: 3 days
2011-11-28 20:00:31 +00:00
trociny
24ed312289
Update SYNOPSIS to include the flags added recently.
...
Spotted by: jhb
2011-11-28 19:45:47 +00:00
bapt
0d5c584942
Synchronize with laster version of m4 from OpenBSD and NetBSD
...
This bring better compatibility with gnum4
Reviewed by: cognet
Approved by: cognet
Obtained from: OpenBSD, NetBSD
2011-11-28 13:32:39 +00:00
trociny
15a70fe612
Cast a_val on printing. This fixes build on mips.
2011-11-28 07:09:29 +00:00
trociny
bac0b99a93
Make proctstat -x output more readable.
...
This also fixes the issue, spotted by mdf, with values that were
printed as decimal and had hex prefixes.
Discussed with: kib, rwatson
MFC after: 2 weeks
2011-11-27 15:53:58 +00:00
trociny
ded9c6c846
usr.bin/procstat
...
Add -l flag to display resource limits.
PR: bin/161257
Reviewed by: kib
MFC after: 2 weeks
2011-11-24 20:54:06 +00:00
trociny
9927b3355c
Fix build, hopefully.
...
Reviewed by: kib
2011-11-23 07:34:09 +00:00
trociny
7a18cdce7a
Add new options, -e and -x, to display process environment variables
...
and ELF auxiliary vectors.
MFC after: 2 weeks
2011-11-22 20:59:52 +00:00
imp
8d68c85340
Add helpful clarification text. While not strictly necessary, these
...
few words make this man page much easier to understand without
re-reading prior parts of the man page.
2011-11-16 22:02:59 +00:00
eadler
8710aaed7e
- add a missing "be" and "in"
...
- fix other errors introduced when committing r226436
- add 'function' to a sentence where it makes sense
Submitted by: delphij
Submitted by: dougb
Submitted by: jhb
Approved by: dougb
Approved by: jhb
2011-11-11 22:27:09 +00:00
grog
f6a5c05b52
Tidy up command line processing:
...
- Add ? option to optstring.
- Sort options alphabetically.
- Vertical space.
Tidy up usage() function.
Bring man page in sync with source.
Ensure that debug code is only executed with the -d option.
Submitted by: Christiane Yeardley
2011-11-09 01:40:46 +00:00
trociny
7fa9ae3795
Bumb date after r227317.
...
Reminded by: pluknet
2011-11-08 19:14:15 +00:00
ed
c2950f3c9c
Simplify getopt switch parsing.
...
Only one of these flags can be set. Just add them together and check the
value. Also, get rid of the listall variable. The code is already filled
with direct *flag-comparisons.
Obtained from: Alexander Best (though modified)
2011-11-08 11:36:46 +00:00
trociny
422432aa2b
When displaying process virtual memory mappings print superpage
...
mapping flag.
Submitted by: Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net>
Reviewed by: alc, rwatson
2011-11-07 21:16:19 +00:00
ed
142b194b5f
Remove unneeded CFLAGS.
...
Such optimisations should not be performed in this Makefile. Also, uqs@
suggested they have no effect, because the checksum of the resulting
binary is unchanged.
Discussed with: gabor, uqs
2011-11-07 09:42:22 +00:00
ed
b57deea6eb
Partially revert r227233.
...
The privs.h header is not only used by at(1), it's also used by
atrun(8). Just let the code the way it used to be (for now).
Reported by: kwm, tinderbox
Hat to: me
2011-11-06 20:30:21 +00:00
ed
50646b91e6
Mark global functions and/or variables in xstr(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:39 +00:00
ed
dc00e03576
Mark global functions and/or variables in whois(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:33 +00:00
ed
04b0cc9b2b
Mark global functions and/or variables in which(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:26 +00:00
ed
90167b1812
Mark global functions and/or variables in whereis(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:19 +00:00
ed
8ea5e6afe9
Mark global functions and/or variables in unifdef(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:50:00 +00:00
ed
5675f1d7a7
Mark global functions and/or variables in paste(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:53 +00:00
ed
bfc6ddd863
Mark global functions and/or variables in m4(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:48 +00:00
ed
fb0088d7d0
Mark global functions and/or variables in lam(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:41 +00:00
ed
b9deaeaf51
Mark global functions and/or variables in fstat(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:36 +00:00
ed
b4971e80fe
Mark global functions and/or variables in expand(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:30 +00:00
ed
b333c88308
Mark global functions and/or variables in enigma(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:23 +00:00
ed
a7c3f252fc
Mark global functions and/or variables in compress(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:16 +00:00
ed
ba068938d1
Mark global functions and/or variables in comm(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:10 +00:00
ed
3894f3031c
Mark global functions and/or variables in checknr(1) static where possible.
...
This allows compilers and static analyzers to more thorough analysis.
2011-11-06 18:49:03 +00:00
ed
a2c6b647f1
Add missing static keywords to at(1).
...
While there, tidy up the privs.h part, where at.c has to #define to
declare some globals. Also group static and non-static global variables
in at.c.
2011-11-06 17:32:29 +00:00
ed
a3202a01ad
Mark the structure fields as const.
...
This allows us to simply place these strings as constants in the table
itself, letting the compiler decide to simply merge duplicate strings.
2011-11-06 17:20:44 +00:00
ed
b8b9c31dd0
Correct the change made in r227166.
...
This function is only compiled in when building WITH_AUDIT.
2011-11-06 09:09:45 +00:00
ed
89e56ab1b3
Add missing static keywords to xinstall(1)
2011-11-06 08:19:07 +00:00
ed
bc3df37206
Add missing static keywords to wc(1)
2011-11-06 08:19:00 +00:00
ed
6ad23491ec
Add missing static keywords to wall(1)
2011-11-06 08:18:55 +00:00
ed
40d992c2db
Add missing static keywords to w(1)
2011-11-06 08:18:47 +00:00