summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* units(1): call el_end()eadler2014-05-121-0/+1
| | | | Add missing el_end() call
* units(1): unbreak -f option, fix some style, increase compatibility.eadler2014-05-121-6/+4
| | | | | | - Unbreak the -f option: it was missing a ':' - gunits -V spits out more information than just its version: attempt to do so as well.
* units(1): use common functionseadler2014-05-121-3/+2
| | | | No need to replicate strdup
* Minor fixes to previous change introducing switch -H, as per commentsthomas2014-05-112-16/+22
| | | | | | on -arch. Reviewed by: gleb
* printf: fix regression after illumos merges.pfg2014-05-111-3/+5
| | | | | | | | | | | The "bltin/bltin.h" wrappers do not support exit() and attempting to call it will exit sh completely. Note that errx() is acceptable but will always return with status 2. Reported by: jilles (and the testing framework) Fix by: jilles Pointyhat: pfg
* mesg: remove advertising clauseeadler2014-05-111-5/+1
| | | | | The University of California board of trustees has given permission to remove the advertising clause of all software attributed to it.
* look(1): add compability with other implementations.eadler2014-05-112-1/+8
| | | | | On other implementations 'look -a' uses an alternate dictionary. Since we don't have one, just ignore it.
* prinf: replace use of alloca with variable length array.pfg2014-05-101-3/+1
| | | | | | | Use of alloca(3) is discouraged in FreeBSD. Using a VLA is simple and should be more portable. Requested by: jilles
* Eliminate EARLY_BUILD flag. It is redundant and means MK_CLANG_FULL=noimp2014-05-101-2/+2
| | | | | | and MK_LLDB=no, so set those explicitly (now that we can do that). Simplify tests for these variables as well, since we know they will always be defined regardless of the phase of the build.
* Optionally allow building the historical FreeBSD make program andimp2014-05-101-0/+4
| | | | | | install it as fmake. This defaults to no. This should be viewed as the first step towards evental migration of this historic code to ports and removal from the tree.
* Allow systat(1) interactive dispay-specific commands tomelifaro2014-05-093-18/+103
| | | | | | | be specified via command line. Submitted by: vsevolod MFC after: 2 weeks
* Fix the incorrect handling of %b and \c in printf(1)pfg2014-05-081-13/+15
| | | | | | | This is required for POSIX compliance. Obtained from: Garrett D'Amore (Illumos) MFC after: 4 days
* Handle ELF files with 65280 or more sectionsemaste2014-05-071-8/+35
| | | | | | | | If e_shnum or e_shstrndx are at least SHN_LORESERVE (0xff00) then an escape value is used to indicate that the actual value is found in one of section 0's fields. Sponsored by: DARPA, AFRL
* Add width and precision specifiers to printf(1) %n$.pfg2014-05-071-25/+90
| | | | | | | | | | This actually completes r264743 so that width and precision specifiers work properly with %n$. These keeps consistency with ksh93 and zsh. Requested by: jilles Obtained from: Garrett D'Amore (Illumos) MFC after: 4 days
* Introduce a new command line switch '-H' for stat(1)thomas2014-05-072-5/+44
| | | | | | | causing arguments to be interpreted as NFS file handles. Reviewed by: -arch (jhb, eadler) MFC after: 1 month
* Add mkimg_write() which combines lseek(2) and write(2) and usesmarcel2014-05-069-51/+25
| | | | | | | | sector granularity for both offset and length. Have all schemes use mkimg_write() instead of mkimg_seek() followed by write(2). Now that schemes don't use lseek(2) nor write(2) directly, it's easier to support output formats other than raw disks.
* In apm_write(), both fd and imgsz are referenced, so don't mark themarcel2014-05-061-1/+1
| | | | arguments as unused.
* Fix the upgrade path for fmake by allowing the include of src.opts.mkimp2014-05-061-1/+1
| | | | | to fail and falling back on the conservative testing of variables already in place. This should stop the tide of tinderbox mail.
* Revert r265436, since it is not the correct fix.se2014-05-061-1/+1
|
* Fix include statement to accept src.opts.mk from a source directoryse2014-05-061-1/+1
| | | | | | | | instead of from /usr/share/mk. I'm not sure that this will let buildworld complete on a system with no installed src.opts.mk (make buildworld is still running), but the tinderbox builds are all failing earlyon without this patch.
* Remove support for WITHOUT_BMAKE. bmake is now the only make that canimp2014-05-063-14/+0
| | | | | | | | build world, so it is the only make we build or install. fmake is still in the tree, but disconnected, and upgrades from older systems that still have bmake has not been removed, but its state has not been tested (it should work given how minimal the work to upgrade to bmake is).
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-0646-48/+48
| | | | from the latter.
* - Remove net.inet.tcp.reass.overflows sysctl. It counts exactlyglebius2014-05-061-1/+2
| | | | | | | | | same events that tcpstat's tcps_rcvmemdrop counter counts. - Rename tcps_rcvmemdrop to tcps_rcvreassfull and improve its description in netstat(1) output. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Treat the '-' as meaning standard input.pluknet2014-05-042-7/+12
| | | | Obtained from: NetBSD
* Fix width/alignment of JID column. Make it support up to the maximumbdrewery2014-05-031-15/+23
| | | | | | | 7-wide JIDs. On a system using jails for common tasks the JID can quickly increase. MFC after: 2 weeks
* Fix syntax error with modern shellseadler2014-05-031-1/+1
| | | | Submitted by: multiple
* Add -J command/flag to filter by jail name/jid. This will automaticallybdrewery2014-05-022-2/+8
| | | | | | | | | | display the JID as well (the -j command/flag). 0 displays host. + displays all. MFC after: 2 weeks Relnotes: yes
* Add freebsd-boot to recognized partition types.nwhitehorn2014-05-011-0/+1
|
* Fix "netstat -gW" behavior broken in r259638.melifaro2014-04-291-11/+13
| | | | | | | | | | | | | netstat has two options for printing multicast tables: sysctl (the default one for live systems) and kvm-based one (for cores). It looks like kvm-based one hasn't been working since it's been introduced in r190012 due to absence of mfctablesize kernel symbol. Check for all ipv4-multicast symbols being correctly resolved was introduced in r259638 regardless of 'live' value leading to "No IPv4 MROUTING" error message. Reported by: Olivier Cochard-Labbé MFC after: 1 week
* Eliminate last vestigies of NO_MAN= in the tree. Also, removeimp2014-04-253-6/+0
| | | | ineffectual NOMAN= lines. These don't change the build at all.
* Fix spelling error.bdrewery2014-04-251-1/+1
| | | | MFC after: 3 days
* Constify.delphij2014-04-252-6/+6
|
* Add option WITHOUT_VI to not build/install vi. vi was the largestimp2014-04-241-1/+4
| | | | binary without a knob to turn it off.
* Add Linux socket call decoding to trusssmh2014-04-242-1/+123
| | | | MFC after: 1 month
* Grammar fix.trasz2014-04-241-2/+2
|
* Make usage printing more consistent with other tools.ed2014-04-232-2/+20
| | | | | | | - Introduce a separate usage() function. - Don't use argv[0]. Directly name the application, as we do elsewhere. - Don't prepend the application name. - Don't print two newlines.
* Update to byacc 20140409bapt2014-04-231-4/+2
| | | | | | | | Among all the modifications, this new byacc also solves a 14 year old bug [1] PR: bin/23254 [1] Submitted by: marka@nominum.com [1] MFC after: 3 weeks
* Various style(9) fixes and typos in grep, sort and patch.pfg2014-04-2113-71/+71
| | | | MFC after: 3 days
* Add parameterized position handling to printf(1).pfg2014-04-212-1/+39
| | | | | | | | | | | | | | | | | | | | Add a new %n$ option to change the order of the parameters as done in the ksh93 builtin printf (among others). For example: %printf '%2$1d %1$s\n' one 2 three 4 2 one 4 three The feature was written by Garret D'Amore under a BSD license for Nexenta/illumos. Reference: http://garrett.damore.org/2010/10/new-implementation-of-printf.html PR: bin/152934 Obtained from: Illumos MFC after: 2 weeks
* login: Remove broken dialup log message.jilles2014-04-191-8/+0
| | | | | | | | | | For 10 years, the "DIALUP <tty>, <user>" message has required having a hostname (-h) instead of not having a hostname; therefore, it is never logged. Given that dialup is obsolete and this has not been fixed, remove the log message. Note that LOGALL, which is defined by default, logs a message for all logins, including dialup logins.
* Stop casting the const char * to void * to char * to make compile more happybz2014-04-171-1/+1
| | | | | | | | after r264573. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573
* Remove duplicate extern declarations after r264573.bz2014-04-171-3/+0
| | | | | | | | Makes things compile better. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573
* Minor style(9) cleanupspfg2014-04-171-2/+2
| | | | | | #define should be followed by a tab. MFC after: 3 days
* Sync with OpenBSD.delphij2014-04-1611-164/+321
| | | | MFC after: 2 weeks
* units(1): don't compare pointers with 0eadler2014-04-141-1/+1
| | | | | | | For better readability, don't compare pointers with 0 or assign 0 to them. Use NULL instead. Inspired by: DragonflyBSD
* units(1): Add 'static' and sort list.eadler2014-04-141-18/+18
| | | | Inspired by: DragonflyBSD
* units(1): Add v option: verboseeadler2014-04-142-14/+39
| | | | | | | For increased compatibility with GNU units: support a -v option which produces more verbose output when spitting out the answer. GNU -v does additional work in the version, information, and check output which we do not (yet?) replicate.
* units(1): Add U optioneadler2014-04-142-4/+16
| | | | | For increased compatibility with GNU units: support a -U option which tests for the existence of the default units file and prints it to the screen.
* units(1): support reading multiple units fileseadler2014-04-141-9/+12
| | | | | GNU units(1) supports reading up to 25 -f options. We support an arbitrary number.
* units(1): parse config file after setting defaultseadler2014-04-141-1/+1
| | | | | Parse the config file after setting the defaults to permit the user to change things (e.g., editing mode)
OpenPOWER on IntegriCloud