summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* units(1): make -V print version instead of -veadler2014-04-072-11/+7
| | | | | | | | | | | | | | | The units program is likely little used. It is even less likely that a script will want the units program to print out its version number by passing -v. GNU units uses -V for version and -v for verbosity. Increase compatibility between these two versions (written by the same author) by switching our flag as well. Take this opportunity to remove bogus information about the version number and just call it 'FreeBSD units'. Discussed with: cperciva, rwatson
* units(1): fix spellingeadler2014-04-071-1/+1
| | | | Pointyhat to: me
* units(1): Add some some additional unitseadler2014-04-071-0/+6
| | | | Most of these are also recognized by GNU units
* find: Treat errno from fts_read() more carefully.jilles2014-04-061-4/+5
| | | | | | fts_read() leaves errno unchanged on EOF and sets it on error, so set errno to 0 before calling it. Also, don't trust finish_execplus() to leave errno unchanged.
* Convert sort to using newer MK_ convention.imp2014-04-051-2/+2
|
* Don't test WITHOUT_FOO in program makefiles, test MK_FOO instead.imp2014-04-011-4/+4
|
* Add atf m4 files from the vendor branch.jmmv2014-04-011-0/+2
| | | | | | | These were originally deleted as "not important" but, actually we need them in place if we want to be able to use autoconf on software that provides atf-based tests. (That includes being able to rebuild autotest from scratch on the Kyua cluster machines, as the automated setup does.)
* add capsicum to units(1)eadler2014-03-301-0/+10
|
* units(1): Add some missing unitseadler2014-03-301-0/+3
|
* Teach units(1) that an erg and ergon are the same thing.eadler2014-03-301-0/+1
|
* Fix build on FreeBSD 7 where:marcel2014-03-293-3/+26
| | | | | 1. DOSPTYP_FAT32 is not defined in <sys/diskmbr.h> 2. uuid_enc_le() does not exist in libc.
* Fix build on FreeBSD 8 where partition types for nandfs do not exist.marcel2014-03-294-0/+17
|
* Fix build on FreeBSD 9 where <sys/pc98.h> has the same defines asmarcel2014-03-291-0/+13
| | | | <sys/diskmbr.h> and not the unique defines introduced later.
* 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
OpenPOWER on IntegriCloud