summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* User and group identifiers the rctl(8) utility receives from the kerneltrasz2015-11-291-3/+7
| | | | | | | | are always in numeric form; don't try to resolve them by names. This speeds up rule listing with large rulesets by about 50%. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Use LIBEXECDIR for /usr/libexec.bdrewery2015-11-264-4/+4
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Replace DPSRCS that work fine in SRCS.bdrewery2015-11-253-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is so that 'make depend' is not a required build step in these files. DPSRCS is overall unneeded. DPSRCS already contains SRCS, so anything which can safely be in SRCS should be. DPSRCS is mostly just a way to generate files that should not be linked into the final PROG/LIB. For headers and grammars it is safe for them to be in SRCS since they will be excluded during linking and installation. The only remaining uses of DPSRCS are for generating .c or .o files that must be built before 'make depend' can run 'mkdep' on the SRCS c files list. A semi-proper example is in tests/sys/kern/acct/Makefile where a checked-in .c file has an #include on a generated .c file. The generated .c file should not be linked into the final PROG though since it is #include'd. The more proper way here is just to build/link it in though without DPSRCS. Another example is in sys/modules/linux/Makefile where a shell script runs to parse a DPSRCS .o file that should not be linked into the module. Beyond those, the need for DPSRCS is largely unneeded, redundant, and forces 'make depend' to be ran. Generally, these Makefiles should avoid the need for DPSRCS and define proper dependencies for their files as well. An example of an improper usage and why this matters is in usr.bin/netstat. nl_defs.h was only in DPSRCS and so was not generated during 'make all', but only during 'make depend'. The files including it lacked proper depenencies on it, which forced running 'make depend' to workaround that bug. The 'make depend' target should mostly be used for incremental build help, not to produce a working build. This specific example was broken in the meta build until r287905 since it does not run 'make depend'. The gnu/lib/libreadline/readline case is fine since bsd.lib.mk has 'OBJS: SRCS:M*.h' when there is no .depend file. Sponsored by: EMC / Isilon Storage Division MFC after: 1 week
* Remove redundant DPSRCS which were already in SRCS.bdrewery2015-11-252-5/+0
| | | | | | | DPSRCS already contains all of SRCS. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix spelling error.bdrewery2015-11-251-1/+1
|
* META MODE: Remove unneeded libmd.host dependency for xinstall.host.bdrewery2015-11-251-12/+0
| | | | | | This is chasing r291026. Sponsored by: EMC / Isilon Storage Division
* META MODE: Fix 'make bootstrap-tools'.bdrewery2015-11-253-1/+34
| | | | | | | | | | | | | | | The main problem was bitrot after elftoolchain being swapped in for the GNU toolchain. This also reworks how the list of 'host allowed' libraries is determined to only allow INTERNALLIBs, which is needed for libelftc to come in. For usr.bin/readelf use the same hack, as libelf and libdward, to bring in the needed sys/ headers for host builds. This has not yet been a problem due to readelf not being built as a host tool in buildworld. This is possible in the meta build though when building the toolchain. Sponsored by: EMC / Isilon Storage Division
* META MODE: Don't create .meta files when symlinking sources into the obj ↵bdrewery2015-11-252-3/+3
| | | | | | | | | | | directory. Tracking these leads to situations where meta mode will consider the file to be out of date if /bin/sh or /bin/ln are newer than the source file. There's no reason for meta mode to do this as make is already handling the rebuild dependency fine. Sponsored by: EMC / Isilon Storage Division
* META MODE: Fix 'make the-lot' with recent locale changesbdrewery2015-11-251-0/+39
| | | | Sponsored by: EMC / Isilon Storage Division
* Fix udp entry of `netstat -TW'.ume2015-11-251-0/+2
|
* Correct alignment of the addresses in the `netstat -aW' output.ume2015-11-241-12/+21
|
* Add myself (lidl) to the calendar.freebsd file.lidl2015-11-241-0/+1
| | | | | Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D4264
* Add missing error check after xo_parse_args() in netstat(8).ume2015-11-241-0/+2
| | | | | Submitted by: Oliver Pinter Differential Revision: https://reviews.freebsd.org/D4233
* Remove unneeded libutil dependency for sendmail.bdrewery2015-11-241-1/+0
| | | | | | | | | It included libutil.h for setproctitle(3), which was moved from libutil to libc in r65353 in 2000. Reviewed by: gshapiro [sendmail change] Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D4261
* bc(1): Fix memory corruption issuespfg2015-11-241-9/+14
| | | | | | | Fix crashes and hangs found by AFL. Improve handling of non-ascii chars. Obtained from: OpenBSD (CVS rev 1.49)
* Compute the median of the data set as the midpoint between the two middlearaujo2015-11-241-2/+4
| | | | | | | | | values when the data set has an even number of elements. PR: 201582 Submitted by: Marcus Reid <marcus@blazingdot.com> Reviewed by: imp Approved by: bapt (mentor)
* bc: sync with OpenBSDpfg2015-11-224-13/+14
| | | | | | | | | | | | | | | | | | | tty.c Rev. 1.3 Avoid unintended problems with operator precedence when doing an assignment and comparison. bc.1, Rev. 1.31, 1.32 '.Ql Quit' -> '.Ql quit' because only the lowercase command is valid. Clarify sentence about `quit` in BUGS section. extern.h, Rev. 1.12 whitespace bc.y, Rev. 1.47 Prefer setvbuf() to setlinebuf() for portability Obtained from: OpenBSD MFC after: 2 weeks
* Add a missing brace to fix vmstat -s output.markj2015-11-211-1/+1
|
* Revert a modification that crept in and should notbapt2015-11-211-1/+1
|
* Synchronize m4(1) with OpenBSDbapt2015-11-216-45/+15
|
OpenPOWER on IntegriCloud