summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* In usr.bin/vacation/Makefile, fix a typo in the comment about clangdim2011-12-191-1/+1
| | | | | | | warnings. Spotted by: arundel MFC after: 1 week
* Unbreak the build after r228697 adding the { } block to make clear whichbz2011-12-191-1/+2
| | | | if the else belongs to.
* o Convert IPv6 read-only stats sysctls to the read-write ones.maxim2011-12-191-7/+13
| | | | | | | | | o Teach netstat(1) -z to reset these stats sysctls. PR: bin/153206 Reviewed by: glebuis Sponsored by: NGINX, Inc. MFC after: 1 month
* Repair breakage after r228697: since m4 now uses pow(3), it needs -lm.dim2011-12-181-1/+1
| | | | Pointy hat to: bapt
* Reimplement support for the ** (exponent) gnu extension, make it available ↵bapt2011-12-183-2/+10
| | | | | | | | thought the -g (mimic gnu) option Reviewed by: cognet Approved by: cognet Discussed with: espie@OpenBSD.org (upstream)
* du: Allow multiple -HLP options, the last one wins.jilles2011-12-172-20/+17
| | | | | | | This matches 4.4BSD tradition and other utilities with these options and is required by POSIX (POSIX does not specify -P, only -HL). MFC after: 2 weeks
* Revert r228650, and work around the clang false positive with printfdim2011-12-172-1/+6
| | | | | | | formats in usr.bin/netstat/atalk.c by conditionally adding NO_WFORMAT to the Makefile instead. MFC after: 1 week
* In usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use thedim2011-12-171-2/+2
| | | | | | | corresponding printf length modifier. Requested by: mdf MFC after: 1 week
* In usr.bin/vmstat/vmstat.c, cast several printf field widths to int, anddim2011-12-171-8/+10
| | | | | | use printf format specifiers from inttypes.h for uint64_t's. MFC after: 1 week
* Unfortunately, clang gives warnings about sendmail code that cannot bedim2011-12-171-0/+7
| | | | | | | turned off yet. Since this is contrib code, and we don't really care about the warnings, just turn make them non-fatal for now. MFC after: 1 week
* In usr.bin/netstat/atalk.c, work around a clang false positive withdim2011-12-171-1/+1
| | | | | | printf format warnings and conditional operators. MFC after: 1 week
* Use NO_WCAST_ALIGN for usr.bin/ncplist, as there are many potentialdim2011-12-171-0/+1
| | | | | | | alignment issues in it. (Though I doubt anyone still cares about NetWare support...) MFC after: 1 week
* In usr.bin/mail/cmd1.c, use the correct printf length modifier for adim2011-12-172-2/+2
| | | | | | ptrdiff_t. In usr.bin/mail/main.c, cast a field width to int. MFC after: 1 week
* 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
OpenPOWER on IntegriCloud