summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* META_MODE: Don't rebuild build-tools targets during normal build.bdrewery2016-04-144-2/+6
| | | | | | | | | This avoids 'build command changed' due to CFLAGS/CC changes during the normal build. Without this the build-tools targets end up rebuilding for the *target* rather than keeping the native versions built in build-tools. Sponsored by: EMC / Isilon Storage Division
* fmt(1): for pointers use NULL instead of 0pfg2016-04-131-4/+3
| | | | While here clean excessive not lint comment indentation.
* fmt(1): reformat with indent(1).pfg2016-04-131-380/+497
| | | | | | | Failed attempt to get nearer to style(9) and the format from the original OpenBSD code. At least it should be readable now. No functional change.
* Add a small tool, resizewin(1), to query terminal for window sizecem2016-04-134-0/+200
| | | | | | | Submitted by: Daniel O'Connor Reviewed by: kan, wblock, cem Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D4438
* Add bofh@ in calendar.freebsdbofh2016-04-101-0/+1
|
* Handle whois referrals between RIRsfanf2016-04-081-0/+13
| | | | | | | | | | | | | | | | | | | | This is rather ugly, because the RIPE and APNIC whois servers do not provide referrals for address blocks that they do not manage. However ARIN is usually the right place or knows the right place so we try there. The particular instance which clued me in to this bug is U.Mich. 141.211.0.0/16 for which the referral chain should be IANA -> RIPE -> ARIN. RIPE's RDAP does provide useful redirects (for example try `curl -I http://rdap.db.ripe.net/ip/141.211.0.0) so maybe their whois server can be improved. AfriNIC's whois server gives more direct referrals, but they are designed to be human-readable. Ugly, but we can manage. The issue of referrals between RIRs is likely to become more important in the future whith the increasing number of cross-region IP address block transfers increases.
* Enhance uuencode with a -r option to produce raw output.gahr2016-04-072-5/+17
| | | | | | | | | | | This matches with uudecode's -r option to decode raw data without initial and final framing lines. $ echo Test | uuencode -mr - | uudecode -mr Test Approved by: cognet MFC after: 1 week
* Add four new RCTL resources - readbps, readiops, writebps and writeiops,trasz2016-04-071-3/+36
| | | | | | | | | | | | | | | for limiting disk (actually filesystem) IO. Note that in some cases these limits are not quite precise. It's ok, as long as it's within some reasonable bounds. Testing - and review of the code, in particular the VFS and VM parts - is very welcome. MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5080
* Fix sed functions 'i' and 'a' from discarding leading white space.pfg2016-04-061-2/+1
| | | | | | | | | | | | | | This appears to be implementation dependent but convenient and makes our sed behave more like GNU sed. Given that it is not the historic behavior, bump FreeBSD_version should userland/ports somehow depend on it. Obtained from: NetBSD (bin/49872) Reviewed by: bdrewery PR: 208554 Merge after: NEVER
* Add a cross reference to ktrace(2).brooks2016-03-311-2/+3
| | | | | | Obtained from: CheriBSD (9cb420d6b7f04c1b7d2006180b80932e5d3fe50e) MFC after: 1 week Sponsored by: DARPA, AFRL
* Fix whois queries for ARIN AS numbers.fanf2016-03-311-3/+7
| | | | | The ARIN whois server likes AS number queries to be in the form "a 8075" rather than "as7085".
* Add phttpget(8) .Xr to fetch(1).trasz2016-03-291-1/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* netstat: avoid returning uninitialized value in p_sockaddr().pfg2016-03-271-0/+1
| | | | | | | | In the case the width is less than 0, we are returning an uninitialized value. For practical purposes the return value is ignored but initialize it to avoid trouble. CID: 1341619
* Replace the CloudABI system call table by a machine generated version.ed2016-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The type definitions and constants that were used by COMPAT_CLOUDABI64 are a literal copy of some headers stored inside of CloudABI's C library, cloudlibc. What is annoying is that we can't make use of cloudlibc's system call list, as the format is completely different and doesn't provide enough information. It had to be synced in manually. We recently decided to solve this (and some other problems) by moving the ABI definitions into a separate file: https://github.com/NuxiNL/cloudabi/blob/master/cloudabi.txt This file is processed by a pile of Python scripts to generate the header files like before, documentation (markdown), but in our case more importantly: a FreeBSD system call table. This change discards the old files in sys/contrib/cloudabi and replaces them by the latest copies, which requires some minor changes here and there. Because cloudabi.txt also enforces consistent names of the system call arguments, we have to patch up a small number of system call implementations to use the new argument names. The new header files can also be included directly in FreeBSD kernel space without needing any includes/defines, so we can now remove cloudabi_syscalldefs.h and cloudabi64_syscalldefs.h. Patch up the sources to include the definitions directly from sys/contrib/cloudabi instead.
* Make the autofs(5) -hosts map more robust, primarily to make it correctlytrasz2016-03-232-6/+37
| | | | | | | | | | handle NFS shares containing whitespace. This also adds the -E parameter to showmount(8). Reviewed by: emaste@, jhibbits@, wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5649
* localedef(1): minor sorting to match Illumos.pfg2016-03-201-2/+2
| | | | | | | | | | | Illumos recently included space in 'print' class. We already had this but the code had slight sorting differences. Move it some lines up to reduce diffs with Illumos. No functional change. Reference: https://illumos.org/issues/5227
* Update fetch.1 and fetch.3 to reflect libfetch's actual use of CA bundlesgrembo2016-03-191-8/+22
| | | | | | | Reviewed by: wblock Approved by: wblock MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5558
* Update to bmake-20160315sjg2016-03-181-2/+2
| | | | | | | | Archive member handling works again meta mode, treat missing reads as for writes. Update dirdeps.mk - much improved startup time. Update meta.stage.mk - avoid ln when chmod required.
* xo_config.h no longer in contrib, so -I's neededsjg2016-03-171-1/+4
| | | | | PR: /homes/sjg/commit-logs/freebsd/libxo/xo_config.diff Reviewed by: jkim
* vtfontcvt: support .hex fonts with characters beyond the Unicode BMPemaste2016-03-151-2/+3
| | | | | | This is already supported by the vt(4) vfnt format mapping from code points to glyphs. Update the .hex font parser to accept up to six hex digits.
* Print running TCP connection counts with TCP statistics.glebius2016-03-154-6/+54
|
* Do not truncate office phones in finger's summary listinglidl2016-03-141-1/+1
| | | | | | | | | | | | When finger is invoked as as "finger username", it produces the long listing by default, and phones numbers are pretty-printed by the prphone() function. When invoked as just "finger", the same pretty-printing happens, but is truncated at 9 characters. Given the summary listing is already greater than 80 columns, making it even wider is of no harm. Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D5638
* In the de-duplication mode, when found matching md5 checksum also readsobomax2016-03-132-3/+48
| | | | | back block and compare actual content. Just output original block instead of back reference in the unlikely event of collision.
* Fix a bug in bsdgrep that caused the program to hang in a tight loop forian2016-03-131-1/+1
| | | | | | | | | | | | | | | some combinations of command line options and search patterns. The code was examining regexec flags looking for a regcomp flag value. The fix is to look in the struct field where the decoded regcomp flag was stored when the regex was compiled. With this fix, it's possible to build WITHOUT_GNU_GREP_COMPAT and WITH_BSDGREP and have a usable GPL-free grep (which of course lacks gnugrep extensions). It now passes the kyua tests except for one test that requires the -z/--null-data gnu extension, and one test involving outputting context lines across multiple files which appears to sometimes output an extra delimiter line ("--") between matches (a rather obscure failure of a rather obscure feature, so bsdgrep should be generally usable now).
* Fix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), addkib2016-03-122-8/+17
| | | | | | | | login.conf(5) support. Reviewed by: jilles Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D5610
* Fix upgrade of bmake by not setting conflicting MAKE_VERSION.bdrewery2016-03-111-2/+2
| | | | | | | This may be used in later checks, such as in bsd.dep.mk, to enable features that rely on the built-in value. Sponsored by: EMC / Isilon Storage Division
* Merge bmake-20160307sjg2016-03-111-2/+2
|
* When -S is specified dump summary to stdout, not stderr, so it'ssobomax2016-03-101-5/+10
| | | | easier to capture and process it with external tools via pipe.
* Add -S option to print out summary after compression has beensobomax2016-03-102-3/+12
| | | | | | completed. MFC after: 2 weeks
* DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-0984-0/+946
| | | | Sponsored by: EMC / Isilon Storage Division
* Use ptrace(2) LWP events to track threads reliably in truss.jhb2016-03-093-54/+163
| | | | | | | | | | | | | | - truss can now log the system call invoked by a thread during a voluntary process exit. No return value is logged, but the value passed to exit() is included in the trace output. Arguments passed to thread exit system calls such as thr_exit() are not logged as voluntary thread exits cannot be distinguished from involuntary thread exits during a system call. - New events are now reported for thread births and exits similar to the recently added events for new child processes when following forks. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5561
* Fix reporting of the CloudABI ABI in kdump.jhb2016-03-091-6/+5
| | | | | | | | | | | | - Advertise the word size for CloudABI ABIs via the SV_LP64 flag. All of the other ABIs include either SV_ILP32 or SV_LP64. - Fix kdump to not assume a 32-bit ABI if the ABI flags field is non-zero but SV_LP64 isn't set. Instead, only assume a 32-bit ABI if SV_ILP32 is set and fallback to the unknown value of "00" if neither SV_LP64 nor SV_ILP32 is set. Reviewed by: kib, ed Differential Revision: https://reviews.freebsd.org/D5560
* DIRDEPS_BUILD: Update clang dependencies after r296417.bdrewery2016-03-0822-90/+106
| | | | Sponsored by: EMC / Isilon Storage Division
* Record command exit status in the typescript file when running simple commands.bdrewery2016-03-081-3/+9
| | | | | | | | Also capitalize 'command:'. Relnotes: yes MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Just exit in the child if execve(2) fails.bdrewery2016-03-081-9/+1
| | | | | | | | | | | | | | No functional change. This is mostly addressing a false-positive from the clang static analyzer due to it thinking that done() was being called with freed memory, however the kill(0, SIGTERM) made the done() never reached. It doesn't make sense to the show the footer from the child anyhow, nor does it make sense to kill the process group here since the execve(2) failed in the child. This code was leftover from many years of refactoring. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Filemon: Attach from the child to avoid racing with the parent attach.bdrewery2016-03-081-4/+10
| | | | | | | | | | This is the same as how the bmake filemon usage works. This also fixes failed attach not properly flushing the TTY. MFC after: 1 week Relnotes: yes Sponsored by: EMC / Isilon Storage Division
* Upgrade our copies of clang, llvm, lldb and compiler-rt to 3.8.0dim2016-03-0547-703/+961
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | release. Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11 support to build; see UPDATING for more information. Release notes for llvm and clang will soon be available here: <http://llvm.org/releases/3.8.0/docs/ReleaseNotes.html> <http://llvm.org/releases/3.8.0/tools/clang/docs/ReleaseNotes.html> Thanks to Ed Maste, Roman Divacky, Davide Italiano and Antoine Brodin for their help. Relnotes: yes
| * Merge ^/head r296007 through r296368.dim2016-03-037-41/+55
| |\
| * | Regenerate llvm and clang manpages.dim2016-03-0318-519/+786
| | |
| * | Merge ^/head r295902 through r296006.dim2016-02-2458-1052/+772
| |\ \
| * \ \ Merge ^/head r295601 through r295844.dim2016-02-2136-45/+1215
| |\ \ \
| * \ \ \ Merge ^/head r295544 through r295600.dim2016-02-131-3/+4
| |\ \ \ \
| * \ \ \ \ Merge ^/head r295351 through r295543.dim2016-02-111-7/+7
| |\ \ \ \ \
| * \ \ \ \ \ Merge ^/head r294961 through r295350.dim2016-02-0618-30/+31
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge ^/head r294777 through r294960.dim2016-01-2723-197/+98
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge ^/head r294599 through r294776.dim2016-01-265-197/+178
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge ^/head r294169 through r294598.dim2016-01-228-76/+156
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge ^head r294090 through r294168.dim2016-01-164-147/+103
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ Merge ^/head r293850 through r294089.dim2016-01-153-5/+13
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Update llvm, clang and lldb to trunk r257626, and update build glue.dim2016-01-141-3/+0
| | | | | | | | | | | | |
OpenPOWER on IntegriCloud