summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant return statement after errxemaste2014-07-211-20/+7
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Use the standard way of printing the usage stringemaste2014-07-211-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* In "procstat -v" (VM), spell out 'FL' to 'FLAG' since there are two extrarwatson2014-07-202-3/+3
| | | | | | | | | columns available anyway. Also left align as we tend to do for flags fields, although you can't see that currently as the string fully fills that available columns. MFC after: 3 days Sponsored by: DARPA, AFRL
* Better align headers and data for 'procstat -f' with and without '-C'.rwatson2014-07-191-2/+3
| | | | | MFC after: 3 days Sponsored by: DARPA, AFRL
* Improve timeout(1) man pagebapt2014-07-181-9/+53
| | | | | | | | | | Document the exit values and the duration format Improve wording Pet mandoc -Tlint Sort SEE ALSO Phabric: https://phabric.freebsd.org/D432 Reviewed by: wblock
* Fix two typos in iscsictl.8gavin2014-07-181-3/+3
| | | | | | PR: 191581 Submitted by: Jimmy Olgeni MFC after: 3 days
* Update to byacc 20140715 (only concerns regression tests being fixed)bapt2014-07-1735-15076/+352
| | | | | | | Directly use regression test from upstream PR: 191020 Submitted by: gcooper (yaneurabeya@gmail.com)
* Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-1714-31/+27
| | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* Add support for the fixed image type. The fixed image is effectivelymarcel2014-07-171-93/+153
| | | | | | | | | | a raw image with a VHD footer appended. There's little value that I can see to use the fixed image type, but in order to make VHD images for use by Microsoft's Azure platform, they must be fixed VHD images. Support has been added by refactoring the code to re-use common code and by adding a second output format structure. To created fixed VHD images, specify "vhdf" as the output format.
* grep: fix some memory leaks.pfg2014-07-171-0/+1
| | | | | | Add memory leak fix missing from r268799. Obtained from: NetBSD
* grep: fix some memory leaks.pfg2014-07-172-7/+17
| | | | | | | | | | | | | | Bring a couple of changes from NetBSD: queue.c (CVS Rev. 1.4. 1.5) Fix memory leaks. NULL does not need a cast. grep.c (CVS Rev. 1.6) Use the more portable getline. Obtained from: NetBSD MFC after: 3 days
* grep: Fix type.pfg2014-07-171-1/+1
| | | | | Obtained from: NetBSD (CVS rev. 1.17) MFC after: 3 days
* units(1): Add basic testseadler2014-07-173-0/+37
| | | | Add some tests to help avoid breaking units
* units(1): Add support for output-formateadler2014-07-172-14/+50
| | | | | Add support for the output-format argument. This also exposes subtle rounding differences between GNU units and our units.
* Sort properly the headersbapt2014-07-161-4/+5
| | | | | | While here space/tabs cleanup Reviewed by: kib
* White space fixesbapt2014-07-161-2/+2
|
* Sort headersbapt2014-07-161-12/+8
| | | | | | Constify long options Remove useless call to sigemptyset properly check errno when waiting for a process status when a SIGCHLD is received
* Fix typobapt2014-07-161-1/+1
|
* Style(9) fixbapt2014-07-161-0/+1
|
* Fix build with gccbapt2014-07-161-5/+4
|
* Fix indentationbapt2014-07-161-1/+1
|
* New BSDL timeout(1) utility compatible with GNU timeoutbapt2014-07-164-0/+412
| | | | | | | it fully passes the GNU timeout regression tests, it is written in a mostly portable way (only signal parsing is relying on non portable structures) Phabric: D377
* Add a bandaid to fix GCC build (on sparc64 et al).delphij2014-07-151-0/+1
|
* Add image_data() for checking whether a sequence of blocks has data.marcel2014-07-154-14/+77
| | | | | | | | | Use this for VHD and VMDK to avoid allocating space in the image for empty sectors. Note that this negatively affects performance because mkimg uses a temporary file for the intermediate storage. When mkimg has better internal book keeping, performance can be significantly improved.
* Unbreak the build by re-enabling exceptions.gahr2014-07-141-1/+1
| | | | | | | | | | | | | | | | | Disabling them breaks build on archs using GCC. The problem is at line 156 of bits/basic_ios.h: if (this->exceptions() & __state) __throw_exception_again; With exceptions disabled __throw_exception_again is defined as #define __throw_exception_again at line 45 of exception_defines.h and the code results in an empty loop body, which fails because of -Werror. Approved by: cognet
* Turn off exceptions and rtti when building the c++ version of users.theraven2014-07-121-0/+1
| | | | | Neither is used in the program and this saves us 10KB (around 40%) in binary size.
* Fix vmstat -M after r263620 renamed 'cnt' to 'vm_cnt'.bdrewery2014-07-111-1/+11
| | | | | | | | | | | | This was showing as: vmstat: undefined symbols: _cnt To remain backwards compatible with older dumps, if 'vm_cnt' symbol is not found then try again with 'cnt'. Reported by: pho Sponsored by: EMC / Isilon Storage Division
* Make this compile on older FreeBSD versions that don't havemarcel2014-07-111-0/+3
| | | | APM_ENT_TYPE_APPLE_BOOT.
* Fix a couple of style nits.ed2014-07-101-4/+3
| | | | | | - Use set instead of std::set, to be consistent with the rest of the file. - Remove return (0); it's not required. - Add a dash at the beginning of the copyright, per style(9).
* Don't use auto, as we also need to support GCC 4.2.ed2014-07-101-1/+1
|
* Let users(1) use an std::set, instead of std::{vector,sort,unique}.ed2014-07-101-14/+11
| | | | Reviewed by: gahr
* Reimplements users(1) in C++.gahr2014-07-102-65/+26
| | | | | | | This reduces the lines of code by roughly 50% (not counting the COPYRIGHT header) and makes it more readable by using standard algorithms. Approved by: bapt
* Update to bmake-20140620sjg2014-07-082-4/+14
| | | | | | Main change is detection of malformed variable references. Reviewed by: obrien
* Make synopsis version of -3 flag match other uses in the page.wblock2014-07-081-1/+2
| | | | MFC after: 1 week
* Remove ia64.marcel2014-07-078-425/+1
| | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* Dominion Day became Canada Day in 1982, update the holiday calendar.gavin2014-07-051-1/+1
| | | | | | | PR: 191533 Submitted by: db Obtained from: http://www.pch.gc.ca/eng/1359137387574/1359137429809 MFC after: 3 days
* units(1): Clean upeadler2014-07-051-18/+14
| | | | Remove unused constant. Add 'static' where able.
* units(1): Convert units.lib to use '#' instead of '/'.eadler2014-07-051-31/+31
| | | | | This allows us to run GNU units against our data files and compare the output. In addition, current units(1) does not support '/' as a comment at all.
* units: Support start of line comments with '#'eadler2014-07-052-2/+2
| | | | Modern GNU units(1) supports comments anywhere with '#' but take the easy route for now and at least support start of line # comments.
* units(1): Add 'terse' supporteadler2014-07-052-11/+24
| | | | terse output is used when calling units from another script.
* units(1): Add 'help' flageadler2014-07-042-2/+8
| | | | | - Add support for --help for compatibility - Make usage() static
* units(1): Fix man pageeadler2014-07-041-3/+5
| | | | | | Igor walks one way. I walked the other. Reported by: wblock
* units(1): add long optionseadler2014-07-042-7/+17
| | | | | | Things brings additional compatibility with units 2.10 Discussed with: wblock (man page)
* Document the -y option as a unit test option.marcel2014-07-042-2/+15
| | | | | | Add missing -v (and -y) to the usage message. Requested by: eadler@
* look: implement long optionseadler2014-07-042-5/+16
| | | | | | | | | | gentoo has "util-linux 2.24.1" with long options. Other distributions have similar. usage() is intentionally unchanged to keep it short and sweet Reviewed by: jmg Discussed with: adrian, jilles
* Add VHD support to mkimg(1). VHD is used by Xen and Microsoft's Hyper-Vmarcel2014-07-039-14/+364
| | | | | | | | | | | among others. Add an undocumented option for unit testing (-y). When given, the image will have UUIDs and timestamps synthesized in a way that gives identical results across runs. As such, UUIDs stop being unique, globally or otherwise. VHD support requested by: gjb@
* More sed(1) usage fixing: the extension -i is not optional.pfg2014-07-031-1/+1
| | | | | Pointed out by: jmallet MFC after: 3 days
* Fix sed(1) usage: the extension -i is not an optional.pfg2014-07-021-1/+1
| | | | MFC after: 3 days
* vtfontcvt: correct width calculation (.hex files and commandline)emaste2014-07-021-8/+13
| | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Add a ful stop after FreeBSD's version in the history section.marcel2014-07-021-2/+2
| | | | Pointed out by: brueffer@ (thanks!)
OpenPOWER on IntegriCloud