summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* In usr.bin/indent/io.c, fix a few warnings about format strings not being ↵dim2011-12-171-2/+2
| | | | | | literals. MFC after: 1 week
* Correct a logic error in usr.bin/hexdump/conv.c, found by clang.dim2011-12-171-2/+2
| | | | | | | | | | | | | | | Whenever the conv_c() function encounters an incomplete multibyte char, it peeks ahead. It also sets p to peekbuf, to indicate it is still processing the incomplete character. However, on the next retry, it compares buf against peekbuf, which always returns false, since both buf and peekbuf are local char arrays, whose addresses are never the same. Fix this by comparing against p instead, which was the intention. Also turn peekbuf into an array of u_char, to prevent conversion warnings. MFC after: 1 week
* More fixes for correct printf length modifiers usr.bin/gprof.dim2011-12-172-4/+4
| | | | MFC after: 1 week
* In usr.bin/gprof/aout.c, use the correct printf length modifier for adim2011-12-171-1/+1
| | | | | | uint32_t. MFC after: 1 week
* In usr.bin/csup/proto.c, use the correct printf length modifier to printdim2011-12-171-1/+2
| | | | | | an off_t. MFC after: 1 week
* In usr.bin/csup/auth.c, use the correct number of bytes for zeroing thedim2011-12-171-3/+4
| | | | | | shared secret, and use long long format to snprintf a time_t. MFC after: 1 week
* In usr.bin/mt/mt.c, the c_code member of struct commands should reallydim2011-12-171-1/+1
| | | | | | | be an unsigned long, since it will contain values of ioctl request codes. On 64-bit arches, these will not fit into an int. MFC after: 1 week
* In usr.bin/tar/tree.c, if you really want to poke to NULL, you must usedim2011-12-171-1/+1
| | | | | | volatile, otherwise the indirection will not be emitted. MFC after: 1 week
* 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.
OpenPOWER on IntegriCloud