summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Import misc.c,v 1.46 from OpenBSD (by espie@)bapt2016-01-181-1/+3
| | | | Yet another missed ferror call
* Fix printing multibyte printing when performing a networked finger(1) requestbapt2016-01-181-6/+7
| | | | MFC after: 1 week
* mdoc: sort Xrjoel2016-01-181-3/+3
|
* Update mandoc to 20160116bapt2016-01-151-2/+4
|
* - Add support for zip to lesspipe.shak2016-01-151-0/+3
| | | | Approved by: des
* - Match directory extraction message with Infozip [1]ak2016-01-151-2/+5
| | | | | | | - Add comment explaining masks in check_binary() Obtained from: NetBSD [1] Approved by: des
* - Extract common code from extract()/extract_stdout() to extract2fd()ak2016-01-152-143/+91
| | | | | | | - Update information about central directory handling Obtained from: NetBSD Approved by: des
* Set -mlong-calls where needed to get a static clang and lldb 3.8.0andrew2016-01-142-0/+7
| | | | | | | | | | | linking. These are too large for a branch instruction to branch from an earlier point in the code to somewhere later. This will also allow these to be build with Thumb-2 when we get this infrastructure. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D4855
* numactl: fix CPU affinity when modifying an existing process or threadvangyzen2016-01-141-5/+6
| | | | | | | | | | numactl was only modifying its own CPU affinity, which is fine when creating a new process, but not very helpful when modifying an existing processes. Reviewed by: adrian Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4927
* New sendfile(2) syscall. A joint effort of NGINX and Netflix from 2013 andglebius2016-01-081-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | up to now. The new sendfile is the code that Netflix uses to send their multiple tens of gigabits of data per second. The new implementation features asynchronous I/O, when I/O operations are launched, but not awaited to be complete. An explanation of why such behavior is beneficial compared to old one is going to be too long for a commit message, so we will skip it here. Additional features of new syscall are extra flags, which provide an application more control over data sent. The SF_NOCACHE flag tells kernel that data shouldn't be cached after it was sent. The SF_READAHEAD() macro allows to specify readahead size in pages. The new syscalls is a drop in replacement. No modifications are required to applications. One can take nginx binary for stable/10 and run it successfully on head. Although SF_NODISKIO lost its original sense, as now sendfile doesn't block, and now means something completely different (tm), using the new sendfile the old way is absolutely safe. Celebrates: Netflix global launch! Sponsored by: Nginx, Inc. Sponsored by: Netflix Relnotes: yes
* DIRDEPS_BUILD: Update dependencies.bdrewery2016-01-072-5/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* Make cap_mkdb and services_mkdb file operations syncgarga2016-01-071-1/+1
| | | | | | | | | | | | Similar fix was done for passwd and group operations in r285050. When a temporary file is created and then renamed to replace official file there are no checks to make sure data was written to disk and if a power cycle happens at this time, system can end up with a 0 length file Approved by: bapt MFC after: 1 week Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D2982
* Update dependencies after r292622 moved the ioctl script.bdrewery2016-01-071-3/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* MFV r293125: less v481.delphij2016-01-051-0/+5
| | | | | MFC after: 1 month Relnotes: yes
* Drop the clang patch which adds recognition of 'CC' suffixes as aliasesdim2015-12-302-1/+7
| | | | | | | for --driver-mode=g++, since this was never upstreamed. For backwards compatibility, add a wrapper shell script. MFC after: 1 week
* Improvements to BSD-licensed DTC.theraven2015-12-298-136/+792
| | | | | | | - Added an expression parser so that expressions from headers are now working - Fixed missing null terminators on cross references - Disabled exceptions / RTTI in the build for smaller binaries - Changed phandle order generation to be identical to GPL'd dtc
* Fix type mismatches for malloc(3) and Co.uqs2015-12-293-5/+5
| | | | | | | | | This is rather pedantic, as for most architectures it holds that sizeof(type *) == sizeof(type **) Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722
* Add on systat -vm the ability to display the physical and kernel memoryaraujo2015-12-281-1/+13
| | | | | | | | | percent usage. PR: bin/203917 Submitted by: ota <ota@j.email.ne.jp> Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4281
* Merge bmake-20151220sjg2015-12-251-2/+2
| | | | Fixed clearing suffixes impact on null suffix
* Since removal of oldnfs support linking to kvm is not needed anymorebapt2015-12-242-3/+0
|
* Remove extraneous charactersrodrigc2015-12-231-2/+2
| | | | | Noticed by: markj Reviewed by: allanjude
* Move the mkioctls script to libsysdecode and use it to generate ajhb2015-12-225-139/+19
| | | | | | | | | | | sysdecode_ioctlname() function. This function matches the behavior of the truss variant in that it returns a pointer to a string description for known ioctls. The caller is responsible for displaying unknown ioctl requests. For kdump this meant moving the logic to handle unknown ioctl requests out of the generated function and into an ioctlname() function in kdump.c instead. Differential Revision: https://reviews.freebsd.org/D4610
* RIP Juergen Lock (nox@FreeBSD.org), you and your contributions won't be ↵brueffer2015-12-171-0/+1
| | | | forgotten.
* Switch the IPsec related statistics to using the built in sysctlgnn2015-12-172-14/+24
| | | | | | | | | variable set rather than reading from kernel memory. This also makes the -z (zero) flag work correctly MFC after: 1 week Sponsored by: Rubicon Communications, LLC (Netgate) Differential Revision: https://reviews.freebsd.org/D4591
* Start on a new library (libsysdecode) that provides routines for decodingjhb2015-12-157-197/+10
| | | | | | | | | | | | | | | | | system call information such as system call arguments. Initially this will consist of pulling duplicated code out of truss and kdump though it may prove useful for other utilities in the future. This commit moves the shared utrace(2) record parser out of kdump into the library and updates kdump and truss to use it. One difference from the previous version is that the library version treats unknown events that start with the "RTLD" signature as unknown events. This simplifies the interface and allows the consumer to decide how to handle all non-recognized events. Instead, this function only generates a string description for known malloc() and RTLD records. Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D4537
* - Properly set mode and atime/ctime for symlinksak2015-12-131-6/+10
| | | | Approved by: des
* - Allow to extract symlinksak2015-12-112-34/+75
| | | | | | | | | - Implement 4-digit year format listing (-y option) - Improve detection of text files - Use %ju for error_count as it is unsigned Obtained from: NetBSD Approved by: des
* - Remove stray whitespacesak2015-12-111-3/+2
| | | | Approved by: des
* Add ppcboot FAT type. Needed to create a bootable powerpc image.imp2015-12-113-0/+6
| | | | Differential Review: https://reviews.freebsd.org/D4407
* Use LIBADD for pthread.bdrewery2015-12-101-2/+2
| | | | Sponsored by: EMC / Isilon Storage Division
* Merge bmake-20151201sjg2015-12-083-6/+24
|
* DIRDEPS_BUILD: Update dependencies.bdrewery2015-12-071-0/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Add missing CLEANFILES.bdrewery2015-12-071-0/+1
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Remove disconnected directory RETEST.bdrewery2015-12-043-130/+0
|
* Fix LDADD/DPADD that should be LIBADD.bdrewery2015-12-0420-56/+34
| | | | Sponsored by: EMC / Isilon Storage Division
* Avoid -Wmissing-initializerfanf2015-12-031-14/+14
|
* Update to upstream version 2.11fanf2015-12-033-31/+149
| | | | | | | Improved #if expression evaluator and safer modify-in-place. Obtained from: http://dotat.at/prog/unifdef MFC after: 1 week
* Don't override LIB*DIR variables from src.libnames.mk.bdrewery2015-12-014-24/+24
| | | | | | | | In some cases switch to the LIB*SRCDIR value. These recently were defined in r291327 and r291619. Sponsored by: EMC / Isilon Storage Division
* Fix typos in error messages dealing with unknown groups/usersngie2015-12-011-2/+2
| | | | | | MFC after: 1 month X-MFC with: r291447, r291452 Sponsored by: EMC / Isilon Storage Division
* Add more text to explain --libxo flag.rodrigc2015-12-014-5/+35
|
* Some problems were introduced during the libxo-ification of vmstat, fix themallanjude2015-12-011-7/+17
| | | | | | | | | | | | | | | | | | stop vmstat -i segfaulting remove duplicate header from vmstat -i do not pad the name of the interupt in encoded outputs fix stray % and missing } in the header for vmstat -i add outer container to vmstat -i add missing xo_flush in vmstat -i (when run with an interval or delay) add outer container to vmstat -m do not pad the name of malloc areans add outer container to vmstat -z do not pad the name of memory zones Reviewed by: rodrigc Approved by: bapt (mentor) Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4263
* At the time a destination or a gateway of `netstat -r'ume2015-12-011-6/+14
| | | | | protrudes its field, narrow the next field to raise readability bit.
* Fix rctl rule filters - eg the 'rctl -r :' case.trasz2015-12-011-10/+30
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-0134-32/+355
| | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* Update dependencies after r291406 added libelf to libkvm.bdrewery2015-12-0110-0/+11
| | | | | | | | Unfortunately filemon/meta mode tracks all indirect dependencies here since ld(1) is reading libelf when linking in libkvm. Churn would be reduced if this was able to be limited to direct dependencies. Sponsored by: EMC / Isilon Storage Division
* Improve error reporting to clearly show problematic rules.trasz2015-11-291-61/+83
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Simplify rule retrieval and improve error handling.trasz2015-11-291-26/+38
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix some memory management problems.trasz2015-11-291-13/+17
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Handle asprintf(3) errors in a standards-compliant way.trasz2015-11-291-24/+29
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Rewrite the rctl(8) utility to make it possible to add multiple rulestrasz2015-11-292-135/+178
| | | | | | | in a single run. This speeds up operation with large rulesets. MFC after: 1 month Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud