summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Hook mkimg(1) to the build.marcel2014-03-291-0/+1
|
* Add mkimg, a utility for making disk images from raw partition contents.marcel2014-03-2913-0/+2080
| | | | | | | The partitioning scheme can be one of the schemes supported by gpart. Reviewed by: sjg Obtained from: Juniper Networks, Inc.
* Add `-S' to display syscall numbers in the output as well.bdrewery2014-03-282-11/+30
| | | | | | | | This is useful for debugging compat modules. Sponsored by: EMC / Isilon Storage Division Obtained from: Isilon OneFS (based on work by Jeff Hughes) MFC after: 2 weeks
* Enable parallel building for gnu/usr.bin and usr.bin/clang too.dim2014-03-271-0/+2
| | | | | MFC after: 2 weeks X-MFC-With: r263778
* Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to processdim2014-03-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | all the SUBDIR entries in parallel, instead of serially. Apply this option to a selected number of Makefiles, which can greatly speed up the build on multi-core machines, when using make -j. This can be extended to more Makefiles later on, whenever they are verified to work correctly with parallel building. I tested this on a 24-core machine, with make -j48 buildworld (N = 6): before stddev after stddev ======= ====== ======= ====== real time 1741.1 16.5 959.8 2.7 user time 12468.7 16.4 14393.0 16.8 sys time 1825.0 54.8 2110.6 22.8 (user+sys)/real 8.2 17.1 E.g. the build was approximately 45% faster in real time. On machines with less cores, or with lower -j settings, the speedup will not be as impressive. But at least you can now almost max out a machine with buildworld! Submitted by: jilles MFC after: 2 weeks
* udpate VERY old email address.. I haven't had this email address forjmg2014-03-261-2/+2
| | | | | | | | | | well over 8 years... roll the clock forward 16 years since there have been other changes deserving of a bump, but never happened.. Submitted by: feld Obtained from: 1 week
* Make `-R', `-T' and `-E' options mutially non-exclusive. It is oftensobomax2014-03-251-12/+26
| | | | | | | | useful to see two or three types at the same time when inspecting the dump. MFC after: 1 month Sponsored by: Sippy Software, Inc.
* Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental.andrew2014-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This targets the existing ARMv6 and ARMv7 SoCs that contain a VFP unit. This is an optional coprocessors may not be present in all devices, however it appears to be in all current SoCs we support. armv6hf targets the VFP variant of the ARM EABI and our copy of gcc is too old to support this. Because of this there are a number of WITH/WITHOUT options that are unsupported and must be left as the default value. The options and their required value are: * WITH_ARM_EABI * WITHOUT_GCC * WITHOUT_GNUCXX In addition, without an external toolchain, the following need to be left as their default: * WITH_CLANG * WITH_CLANG_IS_CC As there is a different method of passing float and double values to functions the ABI is incompatible with existing armv6 binaries. To use this a full rebuild of world is required. Because no floating point values are passed into the kernel an armv6 kernel with VFP enabled will work with an armv6hf userland and vice versa.
* Mark multi_test as requiring /usr/share/dict/words.jmmv2014-03-191-0/+1
| | | | The file may not be present if MK_DICT=no. Pointed out by Casey Peel.
* Add Makefiles missed in r263346.jmmv2014-03-1949-0/+659
| | | | Grrr, I wish svn clearly displayed files not yet added when about to commit.
* Migrate tools/regression/usr.bin/make/ to the new tests layout.jmmv2014-03-19272-0/+2119
| | | | | | | | | | | | | Note that these tests are for fmake, not bmake, and thus they are not installed nor run when bmake is selected (the default). Yes, I have wasted a *ton* of time on moving tests for no real reason other than ensuring they are not left behind. But maybe, just maybe, it was not work in vain: the majority of these tests also work with bmake and the few that don't may point at broken stuff. For example, the tests for the "archive" feature do not work with bmake, but bmake's manpage and source tree seem to imply that they should. So... to be investigated later; need to poke sjg@.
* Now, after r263102 we have ifi_oqdrops in if_data, restore printing ofglebius2014-03-191-3/+7
| | | | | | | | | output queue drops in netstat(1). No driver, neither kernel fills this field in if_data, yet. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Remove dead code from umtx support:attilio2014-03-182-15/+1
| | | | | | | | | | | | | | | - Retire long time unused (basically always unused) sys__umtx_lock() and sys__umtx_unlock() syscalls - struct umtx and their supporting definitions - UMUTEX_ERROR_CHECK flag - Retire UMTX_OP_LOCK/UMTX_OP_UNLOCK from _umtx_op() syscall __FreeBSD_version is not bumped yet because it is expected that further breakages to the umtx interface will follow up in the next days. However there will be a final bump when necessary. Sponsored by: EMC / Isilon storage division Reviewed by: jhb
* Make talk(1) capable of displaying UTF-8 characters.glebius2014-03-174-124/+145
| | | | Sponsored by: Nginx, Inc.
* find: When performing -quit, finish pending -exec ... + command lines.jilles2014-03-161-0/+1
| | | | | | | | | This avoids unexpected partial processing when a find command uses both -quit and -exec ... +. GNU find does the same. MFC after: 1 week
* Update most userspace consumers of capability.h to use capsicum.h instead.rwatson2014-03-165-7/+7
| | | | | | | auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. MFC after: 3 weeks
* Migrate most of tools/regression/usr.bin/ to the new tests layout.jmmv2014-03-16546-1/+27951
| | | | | | | | | | | | | | | I'm starting with the easy cases. The leftovers need to be looked at a bit more closely. Note that this change _does_ modify the code of the old tests. This is required in order to allow the code to locate the data files in the source directory instead of the current directory, because Kyua automatically changes the latter to a temporary directory. Also note that at least one test is known to be broken here. Actually, the test is not really broken: it's marked as a TODO but unfortunately Kyua's TAP parser currently does not understand that. Will have to be fixed separately.
* Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.jmmv2014-03-1617-0/+334
| | | | | | | | | | | This change was originally going to only migrate the usr.sbin tests but, as it turns out, the usr.sbin/sa/ tests require files from usr.bin/lastcomm/ so it's better to just also migrate the latter at the same time. The other usr.bin tests will be moved separately. To make these tests work within the test suite, some of them have required changes to prevent modifying the source directory and instead just rely on the current directory for file manipulation.
* Garbage collect long time obsoleted (or never used) stuff from routing API.glebius2014-03-152-18/+0
|
* Use the system queue.h instead of bundling its own.eadler2014-03-1511-237/+17
| | | | | PR: bin/187067 Submitted by: lulf
* Fix cut-and-paste error message.imp2014-03-151-1/+1
|
* Don't dump entries that were modified during the time the KTR buffer was beingneel2014-03-141-3/+11
| | | | | | | | copied to userspace. Failing to do this would result in entries at the bottom of the ktrdump output to be more recent than entries at the top. With this change the timestamps are monotonically decreasing going from the top to the bottom of the ktrdump output.
* Fix an issue with ktrdump(8) where it would not print all entries in theneel2014-03-141-3/+7
| | | | | | | | | | KTR buffer. This happens when 'i' tries to wrap around from 0 to 'entries - 1'. Since 'i' is a signed integer the modulo operation actually returns a negative number. Fix this by computing the next index to use "by hand" instead of relying on the modulo operator.
* Make bsd.test.mk the only public mk fragment for the building of tests.jmmv2014-03-141-1/+1
| | | | | | | | | | | | | | Change {atf,plain,tap}.test.mk to be internal implementation details of bsd.test.mk. Makefiles that build tests should now only include bsd.test.mk and declaratively specify what they want to build, without worrying about the internal implementation of the mk files. The reason for this change is to permit building test programs of different interfaces from a single directory, which is something I had a need for while porting tests over from src/tools/regression/. Additionally, this change makes it possible to perform some other requested changes to bsd.test.mk in an easier manner. Coming soon.
* Remove AppleTalk support.glebius2014-03-148-381/+38
| | | | | | | | | | AppleTalk was a network transport protocol for Apple Macintosh devices in 80s and then 90s. Starting with Mac OS X in 2000 the AppleTalk was a legacy protocol and primary networking protocol is TCP/IP. The last Mac OS X release to support AppleTalk happened in 2009. The same year routing equipment vendors (namely Cisco) end their support. Thus, AppleTalk won't be supported in FreeBSD 11.0-RELEASE.
* multiple: Remove 3rd clause from BSD license where approved by theeadler2014-03-145-25/+5
| | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste
* Remove IPX support.glebius2014-03-148-600/+44
| | | | | | | | | | | IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011. Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
* Since 32-bit if_baudrate isn't enough to describe a baud rate of a 10 Gbitglebius2014-03-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | interface, in the r241616 a crutch was provided. It didn't work well, and finally we decided that it is time to break ABI and simply make if_baudrate a 64-bit value. Meanwhile, the entire struct if_data was reviewed. o Remove the if_baudrate_pf crutch. o Make all fields of struct if_data fixed machine independent size. The notion of data (packet counters, etc) are by no means MD. And it is a bug that on amd64 we've got a 64-bit counters, while on i386 32-bit, which at modern speeds overflow within a second. This also removes quite a lot of COMPAT_FREEBSD32 code. o Give 16 bit for the ifi_datalen field. This field was provided to make future changes to if_data less ABI breaking. Unfortunately the 8 bit size of it had effectively limited sizeof if_data to 256 bytes. o Give 32 bits to ifi_mtu and ifi_metric. o Give 64 bits to the rest of fields, since they are counters. __FreeBSD_version bumped. Discussed with: emax Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Make ministat CRNL tolerant by stripping all isspace() from the tailphk2014-03-121-2/+3
| | | | end of input lines.
* install: Use posix_spawnp() for starting strip and improve error messages.jilles2014-03-081-20/+29
|
* Fix compilation for 32-bit machines.glebius2014-03-061-4/+4
|
* - Clarify usage of the -f option.brd2014-03-051-2/+2
| | | | Reviewed by: gjb@, dru@, and Allan Jude
* Hide struct rtentry from userland.glebius2014-03-051-0/+1
|
* - Remove rt_metrics_lite and simply put its members into rtentry.glebius2014-03-053-31/+37
| | | | | | | | | | | | | | | | - Use counter(9) for rt_pksent (former rt_rmx.rmx_pksent). This removes another cache trashing ++ from packet forwarding path. - Create zini/fini methods for the rtentry UMA zone. Via initialize mutex and counter in them. - Fix reporting of rmx_pksent to routing socket. - Fix netstat(1) to report "Use" both in kvm(3) and sysctl(3) mode. The change is mostly targeted for stable/10 merge. For head, rt_pksent is expected to just disappear. Discussed with: melifaro Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Increase MAXLINE to deal with longer paths.marcel2014-03-041-1/+1
| | | | Obtained from: Juniper Networks, Inc.
* Apply fix for lldb not linking after the sparc backend import.dim2014-03-011-0/+6
| | | | | Reported by: se Pointy hat to: dim
* ssh-copy-id: add restorecon calleadler2014-03-011-0/+3
| | | | | | | | In certain situations when creating an authorized_key file on a Linux machine restorecon(1) may need to be called. Therefore, attempt to run it if it exists. MFC After: 1 week Idea from: https://bugzilla.redhat.com/show_bug.cgi?id=739989
* ssh-copy-id: avoid sending private keys; add -v optioneadler2014-03-012-6/+16
| | | | | | | | | | | | To help avoid confusion: when attempting to send a key file check to see if a file of the same name exists with a '.pub' suffix and send that instead. This mimics the behavior of other ssh-copy-id scripts. Add -v passthrough. Reported by: dweimer <dweimer@dweimer.net> Reported by: feld MFC After: 1 week
* Merge from head up to r262536.dim2014-02-262-7/+3
|\
| * Update LLDB snapshot to upstream r202189emaste2014-02-261-2/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights include (upstream revs in parens): - Improvements to the remote GDB protocol client (r196610, r197579, r197857, r200072, and others) - Bug fixes for big-endian targets (r196808) - Initial support for libdispatch (GCD) queues in the debuggee (r197190) - Add "step-avoid-libraries" setting (r199943) - IO subsystem improvements (including initial work on a curses gui) (r200263) - Support hardware watchpoints on FreeBSD (r201706) - Improved unwinding through hand-written assembly functions (r201839) - Handle DW_TAG_unspecified_parameters for variadic functions (r202061) - Fix Ctrl+C interrupting a running inferior process (r202086, r202154) - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler, ELF core files, DWARF debug info, and others. Sponsored by: DARPA, AFRL
| | * Update LLDB bmake build for r262187emaste2014-02-181-2/+3
| | | | | | | | | | | | Sponsored by: DARPA, AFRL
| * | There is no need to prevent iscsictl from adding iSER session when theretrasz2014-02-261-5/+0
| | | | | | | | | | | | | | | | | | | | | is no iSER support in ctld and/or kernel; should the user make that mistake, the output from "iscsictl -L" is enough to determine what the problem is. Sponsored by: The FreeBSD Foundation
* | | Merge from head up to r262415.dim2014-02-233-6/+4
|\ \ \ | |/ /
| * | Capability rights are held by descriptors, not processes.pjd2014-02-231-1/+1
| | | | | | | | | | | | Reported by: jonathan
| * | Fix parsing multiple roots with whitespace between them.theraven2014-02-231-0/+1
| | | | | | | | | | | | Patch by: Patrick Wildt
| * | Simplify the way the end of a singly linked list is followed (for addingbrueffer2014-02-221-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | items), so it is more obvious that we aren't going to indirect through a NULL pointer. PR: 144723 Submitted by: Garrett Cooper <yaneurabeya at gmail.com> Obtained from: NetBSD r1.19 MFC after: 2 weeks
* | | Add Makefile glue to build the Sparc backend libraries and link themdim2014-02-206-0/+36
|/ / | | | | | | into the clang executable.
* | Match our implementation of iconv's inbuf argument.peter2014-02-201-1/+1
| |
* | Import svn-1.8.8.peter2014-02-201-4/+4
| | | | | | | | | | | | | | Highlights: * Security fix for apache server plugin that we don't build or use * sqlite performance improvements. * bug fixes for edge cases and some other less common operations.
* | Make it clear that there are two ways to add a session using iscsictl(8),trasz2014-02-201-1/+16
|/ | | | | | | and some options require configuration file. Reviewed by: emaste Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud