summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r276893: mkimg: Add MBR EFI partition typeemaste2015-02-181-0/+4
| | | | Sponsored by: The FreeBSD Foundation
* MFC r278362: Fix couple issues in ctlstat header printing.mav2015-02-141-3/+4
|
* MFC r278603, r278607:gjb2015-02-141-1/+1
| | | | | | | | | | | | | r278603: Ensure ORGANIZATION_NAME is quoted when ORGANIZATION could contain strings of two or more words. r278607: Reduce number of lines to set ORGANIZATION_NAME in freebsd-organization.h. PR: 197540 Sponsored by: The FreeBSD Foundation
* MFC r277676:ngie2015-02-131-1/+4
| | | | | | | | r277676: Add MK_TALK knob for building the talk and talkd Sponsored by: EMC / Isilon Storage Division
* Revert r278650. Definite layer 8 bug.sbruno2015-02-131-44/+4
| | | | Submitted by: dhw and Thomas Mueller <tmueller@sysgo.com>
* MFC 272315 272757 274091 274902sbruno2015-02-131-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | r272315 Explicitly return None for negative event indices. Prior to this, eventat(-1) would return the next-to-last event causing the back button to cycle back to the end of an event source instead of stopping at the start. r272757 Add schedgraph traces for callout handlers. Specifically, a callwheel logs a running event each time it executes a callout function. The event includes the function pointer, argument, and whether or not it was run from hardware interrupt context. The callwheel is marked idle when each handler completes. This effectively logs the duration of each callout routine in the graph. r274091 Bind Ctrl-Q as a global hotkey to exit. Bind Ctrl-W as a hotkey to close dialogs. r274902 Add a new thread state "spinning" to schedgraph and add tracepoints at the start and stop of spinning waits in lock primitives. Reviewed by: jhb
* MFC r271394, r271398:ian2015-02-121-1/+1
| | | | | | | Add more register values to armreg.h and remove CPU_CONTROL_32BP_ENABLE from asm.h as they were already defined in armreg.h. Unify interrupts bit definition and usage. While here remove PSR_C_bit.
* MFC r277675,r277726,r278070:ngie2015-02-111-1/+4
| | | | | | | | | | | | | | | | | | | | | | r277675: Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel modules, etc Sponsored by: EMC / Isilon Storage Division r277726: Build sbin/iscontrol again if MK_ISCSI != no Pointyhat to: me r278070: Remove duplicate MK_ISCSI block and sort the conditional blocks so this error won't crop up again in the future Reported by: gjb
* MFC r277663:ngie2015-02-111-1/+4
| | | | | | | | r277663: Add MK_EE knob to control installing edit, ee, etc Sponsored by: EMC / Isilon Storage Division
* MFC r277463:delphij2015-02-041-21/+40
| | | | | | | Fix xz handling for files larger than 32K. Submitted by: Stefan Ehmann <shoesoft gmx net> PR: bin/186861
* MFC r277939:ngie2015-02-021-7/+8
| | | | | | | | r277939 (by ngie): Create MANLINKS for lzgrep, etc when MK_LZMA_SUPPORT != no Sponsored by: EMC / Isilon Storage Division
* MFC r277802, r277811:pfg2015-01-302-1/+3
| | | | | | | | | | | | | | | sed: Fix resource leak and dereference after NULL. process.c: Protect access against NULL. main.c: Prevent outfile overwrite resource leak. CID: 271181 CID: 1006930 Obtained from: NetBSD
* MFC r275918:delphij2015-01-232-31/+53
| | | | | | | | | Sync with NetBSD, mainly address NetBSD bug #43355: Fix valid_format() to be more careful about allowing only valid printf formats. Obtained from: NetBSD
* MFC r276832 (partial), r277099pfg2015-01-221-4/+4
| | | | | Avoid a warning from gcc48. Replace __inline GNUism with the standard inline.
* MFC r275510:trasz2015-01-142-1/+189
| | | | | | | Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as the former is obsolete. Sponsored by: The FreeBSD Foundation
* MFC r273048 by jhb:dchagin2015-01-132-33/+41
| | | | | | | | Fix most of the warnings in kdump(1). r276758: Eliminate new clang warnings.
* MFC: r274460, r274475jkim2015-01-121-3/+4
| | | | Increase MAXTABLE to the maxmimum possible value and regen test cases.
* MFC r276218:pfg2015-01-084-18/+35
| | | | | | | | | | | | | patch: Bring in xstrdup and use it when appropriate. The function savestr allows NULL return values during Plan A patching so in case of out of memory conditions, Plan B can step in. In many cases, NULL value is not properly handled, so use xstrdup here (it's outside Plan A/B patching, which means that even Plan B relies on successful operations). Clean up some whitespaces while here Obtained from: OpenBSD
* MFC r276472:pfg2015-01-052-2/+2
| | | | | | | | | | | | Minor fixes to exit status. Exit with EXIT_FAILURE for invalid arguments. Fixes NetBSD-PR 43517. Print version string to stdout instead of stderr; it is user-requested and not an error. Obtained from: NetBSD
* MFC r272777,r272779,r272780,r272781,r272782,r272783,r272784,r272787,r272788:ngie2015-01-0112-0/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r272777: Integrate usr.sbin/nmtree/tests from NetBSD into atf/kyua In collaboration with: pho Sponsored by: EMC / Isilon Storage Division r272779: Integrate usr.sbin/basename/tests from NetBSD into atf/kyua In collaboration with: pho Sponsored by: EMC / Isilon Storage Division r272780: Integrate usr.bin/cmp/tests from NetBSD into atf/kyua In collaboration with: sjg Sponsored by: EMC / Isilon Storage Division r272781: Integrate usr.bin/dirname/tests from NetBSD into atf/kyua In collaboration with: pho, sjg Sponsored by: EMC / Isilon Storage Division r272782: Integrate bin/sleep/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272783: Integrate usr.bin/cut/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272784: Integrate usr.bin/grep/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272787: Integrate usr.bin/diff/tests from NetBSD into atf/kyua at gnu/usr.bin/diff/tests Sponsored by: EMC / Isilon Storage Division r272788: Integrate usr.bin/gzip/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division
* MFC r264400,r265836:ngie2014-12-3126-25/+27
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC r266074,r266104,r266147:ngie2014-12-30325-78/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r266074: Move old fmake tests into bmake and hook them to the build. This first step is mostly to prevent the code from rotting even further and to ensure these do not get wiped when fmake's code is removed from the tree. These tests are currently being skipped because they detect the underlying make is not fmake and thus disable themselves -- and the reason is that some of the tests fail, possibly due to legitimate bugs. Enabling them to run against bmake will come separately. Lastly, it would be ideal if these tests were fed upstream but they are not ready for that yet. In the interim, just put them under usr.bin/bmake/ while we sort things out. The existence of a different unit-tests directory within here makes me feel less guilty about this. Change confirmed working with a clean amd64 build. r266104: Undo changes to the generated Makefile. Move tests directory to proper location, including updating the test to work in the more-fragile fmake -> bmake bootstrap environment. r266147: Makefile.inc is also included by the tests subdirectory, which results in SUBDIRS having tests added to it, which fails. Work around this by checking to make sure tests exists before adding it to subdirs and work to get the generated file fixed so we can rename Makefile.inc to something else so it isn't automatically included by subdirs...
* MFC r275721:marcel2014-12-282-5/+6
| | | | | | | The size of the first level reference count table is given in terms of the number of clusters it occupies. Bump the version number of mkimg.
* MFC bmake changes to stable/10 ↵ngie2014-12-273-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (r255285,r255916,r258113,r258114,r261212,r266760,r268437) Discussed with: sjg r255285: If MAKE_JOB_ERROR_TOKEN is set to false, do not put an error token ("E") into the job queue. This avoids closing down an entire build on failure of one branch. Probably has no use outside the context of universe/tinderbox. Reviewed by: obrien r255916: Fix Fx syntax. PR: 182269 Approved by: re@ r258113: Avoid SEGV when passed NULL for list r258114: Don't SEGV when Hash_Table is uninitialized r261212: Merge bmake-20140101 from vendor r266760: Portmgr no longer need the UL hack. Reviewed by: obrien r268437: Update to bmake-20140620 Main change is detection of malformed variable references. Reviewed by: obrien
* MFC r275838;pfg2014-12-231-1/+4
| | | | | | | | | sed: Bounds check the file path used in the 'w' command. Modified version of a diff from Sebastien Marie to prevent a crash found with the afl fuzzer. Obtained from: OpenBSD (CVS Rev. 1.37)
* MFC r274549:trasz2014-12-211-7/+2
| | | | | | | Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session that matches both -t and -p. Sponsored by: The FreeBSD Foundation
* MFC: r274960 (slightly modified)brueffer2014-12-191-0/+18
| | | | | | | | | Limit descriptors and enter capability mode. Since the header was renamed in HEAD, this commit includes sys/capability.h. Differential: D1009 Reviewed by: jonathan, pjd Relnotes: yes
* MFC 273053:jhb2014-12-164-2/+105
| | | | | Decode the arguments passed to _umtx_op(). In particular, decode the opcode.
* MFC r275553, r275612;pfg2014-12-162-72/+112
| | | | | | | | | | | | | | | | | patch(1): Bring fixes from OpenBSD Check fstat return value. Use off_t for file size and offsets. Avoid iterating over end of string. Introduce strtolinenum to properly check line numbers while parsing: no signs, no spaces, just digits, 0 <= x <= LONG_MAX Properly validate line ranges supplied in diff file to prevent overflows. Also fixes an out of boundary memory access because the resulting values are used as array indices. PR: 195436 Obtained from: OpenBSD
* MFC r275531, r275581, r275582;pfg2014-12-162-11/+14
| | | | | | | | | | patch(1): Small changes to sync with OpenBSD Update OpenBSD CVS revision tag for our r255232. Prefer setvbuf() to setlinebuf(). Small space changes, mostly to keep in sync with OpenBSD Obtained from: OpenBSD
* MFC r274495:trasz2014-12-141-3/+3
| | | | | | Add missing commas to .Xr. Sponsored by: The FreeBSD Foundation
* MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests.jilles2014-12-074-5/+421
| | | | | | | | | | | | | The change to expand_number (r204654) broke detection of too large sizes and relative sizes ('+'/'-'). Also add some tests. The usr.bin/truncate/Makefile is slightly different in the MFC because src.opts.mk does not exist in stable/10. PR: 190735 Submitted by: Kirk Russell
* MFC r275162:kevlo2014-12-011-3/+3
| | | | | | Init array field in the proper place. Obtained from: OpenBSD
* MFC r273822:trasz2014-11-291-0/+1
| | | | | | | Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines (CRLF) in iscsi.conf and ctl.conf. Sponsored by: The FreeBSD Foundation
* MFC r274116:dteske2014-11-255-0/+1052
| | | | | | | | | | | | | | | | | Add new libraries/utilities for data throughput visualization. dpv(3): dialog progress view library dpv(1): stream data from stdin or multiple paths with dialog progress view figpar(3): configuration file parsing library MFC r274120, r274121, r274123, r274124, r274144, r274146, r274159, r274192, r274203, r274209, r274226, r274270, and r274851: Fixes following r274116 Reviews: D714 Relnotes: New libdpv/libfigpar and dpv(1) utility Reviewed by: jelischer, shurd Discussed at: MeetBSD California 2014 Vendor/Dev Summit Discussed on: -current Thanks to: ngie, ian, jelischer, shurd, bapt
* MFC r274847:dim2014-11-251-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warnings from clang 3.5.0, while building usr.bin/locate: usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i)); ^ usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i)); ^~~ usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] MAXPATHLEN, abs(word) < abs(htonl(word)) ? word : ^ usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative MAXPATHLEN, abs(word) < abs(htonl(word)) ? word : ^~~ The problem is that ntohl() always returns an unsigned quantity. In this case, it's expected to be cast back to a signed integer, but to stop complaints about abs() we just store it into an integer, and don't call ntohl() again. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D1196
* MFC r273464:trasz2014-11-222-2/+2
| | | | | | Whitespace fixes. Sponsored by: The FreeBSD Foundation
* bsdgrep: Work-around for segmentation fault.emaste2014-11-201-1/+1
| | | | | | | | Fix by David Carlier. MFC of r272127 Obtained from: HardenedBSD PR: 167921
* MFC r274410: Fix for behaviour of SEEK_DATA on ZFS.marcel2014-11-171-3/+5
|
* MFC r260800:smh2014-11-131-5/+10
| | | | | | | | | | Fix a regression introduced in r237618 MFC r260801: Re-work r260800 to include other signals which start with 'I' such as ILL, INFO etc. Sponsored by: Multiplay
* MFC r273507: Sync with NetBSD.delphij2014-11-085-17/+41
|
* MFC r273548emax2014-11-063-89/+44
| | | | | | | | Change the code to use the openpty(3) API which uses the pts(4) driver instead of the pty(4) driver. PR: 184597 Submitted by: tobias.rehbein
* MFC r270650 (this is what should have been committed in r273497):ngie2014-10-233-6/+6
| | | | | | | | | | | Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd" Also, add a missing LIBPANEL dependency for lldb Approved by: rpaulo (mentor) Suggested by: brooks Phabric: D675 (as part of a larger diff) PR: 192762
* MFC r263264 (by glebius):ngie2014-10-234-124/+145
| | | | | | Make talk(1) capable of displaying UTF-8 characters. Sponsored by: Nginx, Inc.
* MFC r271692:markj2014-10-221-1/+1
| | | | Fix a typo.
* Merge: r269884rodrigc2014-10-112-43/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | Complete the usr.bin/yacc kyua integration work I originally submitted via r268811 - Install the Kyuafile by adding FILES to FILESGROUPS - Run the testcases with an unprivileged user Some of the testcases depend upon behavior that's broken when run as root on FreeBSD because of how permissions are treated with access(2) vs eaccess(2), open(2), etc - Simplify the test driver to just inspect the exit code from run_test because it now exits with 0 if successful and exits with !0 if unsuccessful - Don't do ad hoc temporary directory creation/deletion; let Kyua handle that - Add entries for files removed in r268811 to OptionalObsoleteFiles.inc PR: 191020 X-MFC with: r268811 Approved by: jmmv (mentor) Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division
* Merge: r258931rodrigc2014-10-111-2/+6
| | | | | | | | | Add missing bits from the vendor's 2005-05-04 change to contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by applications") so that applications have a hope of detecting newer FreeBSD YACC output from an older one. Submitted by: Juniper Networks
* Merge: r268811rodrigc2014-10-1135-15076/+352
| | | | | | | Update to byacc 20140715 PR: 191020 Submitted by: gcooper (yaneurabeya@gmail.com)
* MFC r272762: Correct scale factor for T terabyte suffixemaste2014-10-111-1/+1
| | | | PR: 194250
* MFC r271410:hrs2014-10-091-6/+10
| | | | Fix header output when -P is specified and (ncpus - 1) != maxid.
OpenPOWER on IntegriCloud