summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Revert r228521: sometimes job output is lostfjoe2011-12-152-10/+2
| | | | | | | | (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.
* job make: if stdout is a tty create a pty when running a command.fjoe2011-12-152-2/+10
|
* Replace __const by const in all non-contributed source code.ed2011-12-132-2/+2
| | | | | | 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.
* Make 64-bit procstat output ELF auxiliary vectors for 32-bit processes.trociny2011-12-121-16/+87
| | | | | Reviewed by: kib MFC after: 1 week
* Make procstat -l output similar to the output of limits(1).trociny2011-12-121-10/+51
| | | | | Suggested by: jhb MFC after: 1 week
* Add more static keywords to truss(1) source code.ed2011-12-104-5/+5
| | | | | | 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.
* Add missing "static const" to long options table.ed2011-12-101-1/+1
| | | | | This table is only used in this C file and passed to getopt_long(), so we can safely add static and const to it.
* Replace char copyright[] by static const char copyright[].ed2011-12-102-2/+2
| | | | It seems the latter is used throughout the tree.
* Update du(1):gjb2011-12-092-45/+53
| | | | | | | | | | | | | | - 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
* - Match GNU behavior of exit codegabor2011-12-073-6/+5
| | | | | | | | - Rename variable that has a different meaning now PR: bin/162930 Submitted by: Jan Beich <jbeich@tormail.net> MFC after: 1 week
* Don't output a warning if kern.proc.auxv sysctl has returned EPERM.trociny2011-12-051-1/+1
| | | | | | After r228288 this is rather a normal situation. MFC after: 1 week
* Use explicit information from the kernel to detect the traps due tokib2011-12-041-3/+13
| | | | | | | syscall entry and leave. Based on submision by: Dan Nelson <dnelson allantgroup com> MFC after: 1 month
* - Fix segmentation fault when running "+command" when run with -jX -n duefjoe2011-11-302-58/+51
| | | | | | | | | | | 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
* - Create links to the xz and lzma versions even if BSD grep is not thegabor2011-11-281-7/+8
| | | | | | | default. Nor GNU nor liblzma in base provides such functionality so it may be useful. MFC after: 3 days
* - Call warnx() instead of errx() if a directory is not readable when usinggabor2011-11-281-1/+3
| | | | | | | | 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
* - Fix behavior of --null to match GNU grepgabor2011-11-281-5/+5
| | | | | | PR: bin/162906 Submitted by: Jan Beich <jbeich@tormail.net> MFC after: 3 days
* Update SYNOPSIS to include the flags added recently.trociny2011-11-281-2/+2
| | | | Spotted by: jhb
* Synchronize with laster version of m4 from OpenBSD and NetBSDbapt2011-11-2830-1631/+2481
| | | | | | | | This bring better compatibility with gnum4 Reviewed by: cognet Approved by: cognet Obtained from: OpenBSD, NetBSD
* Cast a_val on printing. This fixes build on mips.trociny2011-11-281-14/+14
|
* Make proctstat -x output more readable.trociny2011-11-271-55/+39
| | | | | | | | 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
* usr.bin/procstattrociny2011-11-245-7/+95
| | | | | | | | Add -l flag to display resource limits. PR: bin/161257 Reviewed by: kib MFC after: 2 weeks
* Fix build, hopefully.trociny2011-11-231-33/+42
| | | | Reviewed by: kib
* Add new options, -e and -x, to display process environment variablestrociny2011-11-226-12/+228
| | | | | | and ELF auxiliary vectors. MFC after: 2 weeks
* Add helpful clarification text. While not strictly necessary, theseimp2011-11-161-3/+5
| | | | | few words make this man page much easier to understand without re-reading prior parts of the man page.
* - add a missing "be" and "in"eadler2011-11-111-1/+1
| | | | | | | | | | | - 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
* Tidy up command line processing:grog2011-11-094-42/+58
| | | | | | | | | | | | | | - 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
* Bumb date after r227317.trociny2011-11-081-1/+1
| | | | Reminded by: pluknet
* Simplify getopt switch parsing.ed2011-11-081-12/+4
| | | | | | | | 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)
* When displaying process virtual memory mappings print superpagetrociny2011-11-072-2/+5
| | | | | | | mapping flag. Submitted by: Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net> Reviewed by: alc, rwatson
* Remove unneeded CFLAGS.ed2011-11-071-1/+0
| | | | | | | | 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
* Partially revert r227233.ed2011-11-062-4/+11
| | | | | | | | 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
* Mark global functions and/or variables in xstr(1) static where possible.ed2011-11-061-37/+37
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in whois(1) static where possible.ed2011-11-061-3/+3
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in which(1) static where possible.ed2011-11-061-2/+2
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in whereis(1) static where possible.ed2011-11-061-16/+16
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in unifdef(1) static where possible.ed2011-11-061-1/+1
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in paste(1) static where possible.ed2011-11-061-9/+9
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in m4(1) static where possible.ed2011-11-062-2/+2
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in lam(1) static where possible.ed2011-11-061-5/+5
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in fstat(1) static where possible.ed2011-11-062-11/+11
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in expand(1) static where possible.ed2011-11-061-2/+2
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in enigma(1) static where possible.ed2011-11-061-9/+9
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in compress(1) static where possible.ed2011-11-061-15/+15
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in comm(1) static where possible.ed2011-11-061-8/+8
| | | | This allows compilers and static analyzers to more thorough analysis.
* Mark global functions and/or variables in checknr(1) static where possible.ed2011-11-061-33/+33
| | | | This allows compilers and static analyzers to more thorough analysis.
* Add missing static keywords to at(1).ed2011-11-063-18/+9
| | | | | | 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.
* Mark the structure fields as const.ed2011-11-062-17/+14
| | | | | This allows us to simply place these strings as constants in the table itself, letting the compiler decide to simply merge duplicate strings.
* Correct the change made in r227166.ed2011-11-061-0/+2
| | | | This function is only compiled in when building WITH_AUDIT.
* Add missing static keywords to xinstall(1)ed2011-11-061-7/+8
|
* Add missing static keywords to wc(1)ed2011-11-061-2/+2
|
OpenPOWER on IntegriCloud