Max Khon
94f176ebd4
Revert r228521: sometimes job output is lost
...
(see tools/regression/usr.bin/make/execution/joberr test).
openpty(fd + 0, fd + 1,...) version does not have this problem but
it sometimes enters an infinite sleep in "ttywait" state in tty_drain()
when make(1) closes slave pty.
2011-12-15 06:25:19 +00:00
Max Khon
366cd46cbe
job make: if stdout is a tty create a pty when running a command.
2011-12-15 03:13:23 +00:00
Ed Schouten
f6ab8089c6
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
Mikolaj Golub
cc1ff620b9
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
Mikolaj Golub
de21500d6a
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 Schouten
a02c83afc5
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 Schouten
8375d51296
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 Schouten
516c8ed9dd
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
Glen Barber
653fa5218a
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 Kovesdan
6f4cbf7cb3
- 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
Mikolaj Golub
cc43fe5b46
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
Konstantin Belousov
97695ad4cd
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
Max Khon
019bd13977
- 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 Kovesdan
68f42e1da4
- 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 Kovesdan
ede01be2f2
- 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 Kovesdan
f0c94259d6
- 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
Mikolaj Golub
447fdbd073
Update SYNOPSIS to include the flags added recently.
...
Spotted by: jhb
2011-11-28 19:45:47 +00:00
Baptiste Daroussin
a841e1ebe6
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
Mikolaj Golub
6bfefd99ce
Cast a_val on printing. This fixes build on mips.
2011-11-28 07:09:29 +00:00
Mikolaj Golub
d3c10c5235
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
Mikolaj Golub
598585e835
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
Mikolaj Golub
7294321939
Fix build, hopefully.
...
Reviewed by: kib
2011-11-23 07:34:09 +00:00
Mikolaj Golub
e99272c732
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
Warner Losh
34b7df97a3
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
Eitan Adler
14517324d0
- 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
Greg Lehey
415f031163
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
Mikolaj Golub
729bfad6a4
Bumb date after r227317.
...
Reminded by: pluknet
2011-11-08 19:14:15 +00:00
Ed Schouten
66c5875a45
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
Mikolaj Golub
82841ae6f8
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 Schouten
0c66031ab1
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 Schouten
a35353de88
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 Schouten
641835f465
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 Schouten
e5ec905575
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 Schouten
94cd938578
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 Schouten
558b00f5a1
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 Schouten
48ef17602b
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 Schouten
e7b3338485
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 Schouten
df6dd6933d
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 Schouten
86350df6fe
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 Schouten
357050fc0e
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 Schouten
cb230716e3
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 Schouten
43ad4b4511
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 Schouten
305700d983
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 Schouten
8d34a0b7bc
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 Schouten
c24aea83fa
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 Schouten
f64efe8b60
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 Schouten
ac75fa8849
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 Schouten
6291cd02cb
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 Schouten
15f9b56845
Add missing static keywords to xinstall(1)
2011-11-06 08:19:07 +00:00
Ed Schouten
8df975a218
Add missing static keywords to wc(1)
2011-11-06 08:19:00 +00:00