summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC: r264419brueffer2014-04-221-1/+0
| | | | | | | Avoid double close() of a file descriptor. CID: 1006089 Found with: Coverity Prevent(tm)
* MFC: r264418brueffer2014-04-221-1/+0
| | | | | | | Avoid double free in f_acl(). CID: 1018508 Found with: Coverity Prevent(tm)
* MFC r263989: Add atf m4 files from the vendor branch.jmmv2014-04-171-0/+2
|
* MFC refactoring of the *.test.mk files.jmmv2014-04-141-1/+1
| | | | | | | | | - r263161 Make bsd.test.mk the only public mk fragment for the building of tests. - r263172 Move FreeBSD Test Suite-specific code to a suite.test.mk file. - r263204 Add some documentation for bsd.test.mk. - r263217 Document support for TAP-compliant Perl test programs. This is "make tinderbox" clean.
* MFC r263879:bdrewery2014-04-112-11/+30
| | | | Add `-S' to display syscall numbers in the output as well.
* MFC r263778:dim2014-04-092-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process 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 r263833: Enable parallel building for gnu/usr.bin and usr.bin/clang too.
* Merge r263203: garbage collect long time obsoleted (or never used) stuffglebius2014-04-092-18/+0
| | | | from routing API.
* login: Clean up PAM and audit, then exit, on SIGHUP and SIGTERM.jilles2014-04-061-18/+77
| | | | | | | | | | | | | | | | This avoids leaving stale entries in utmpx after the connection is closed on an open login session. It also allows a clean way (SIGTERM) to forcibly terminate a user's terminal session. This does not affect the situation for "hung" processes after the connection is closed. The foreground process group receives SIGHUP and the tty becomes inaccessible. Also replace all use of the obsolete signal() function with sigaction() (not only the part where it is actually required: SIGHUP and SIGTERM must mask the other as well when caught). PR: misc/183495
* MFC r263244: find: When performing -quit, finish pending -exec ... + commandjilles2014-04-051-0/+1
| | | | | | | | | lines. This avoids unexpected partial processing when a find command uses both -quit and -exec ... +. GNU find does the same.
* o Provide a compatibility shim for netstat(1) to obtain output queueglebius2014-04-031-3/+8
| | | | | | | | | | | | | drops via NET_RT_IFLISTL sysctl. The sysctl handler appends oqdrops at the end of struct if_msghdrl, and netstat(1) sees that as an additional field of struct if_data. This allows us to fetch the data keeping ABI and API compatibility. This is direct commit to stable/10. o Merge r263331 from head, to restore printing of queue drops. Sponsored by: Nginx, Inc. Sponsored by: Netflix
* MFC r262657:dim2014-03-261-0/+6
| | | | | | | Apply fix for lldb not linking after the sparc backend import. Reported by: se Pointy hat to: dim
* MFC r262613:dim2014-03-266-0/+36
| | | | | | | | | | | | | | | | | | | | | Merge the projects/clang-sparc64 branch back to head. This brings in several updates from the llvm and clang trunks to make the sparc64 backend fully functional. Apart from one patch to sys/sparc64/include/pcpu.h which is still under discussion, this makes it possible to let clang fully build world and kernel for sparc64. Any assistance with testing this on actual sparc64 hardware is greatly appreciated, as there will unavoidably be bugs left. Many thanks go to Roman Divacky for his upstream work on getting the sparc64 backend into shape. MFC r262985: Repair a few minor mismerges from r262261 in the clang-sparc64 project branch. This is also to minimize differences with upstream.
* MFC r261962:trasz2014-03-251-3/+4
| | | | | | Mention that rctl(8) was sponsored by the Foundation. Sponsored by: The FreeBSD Foundation
* Merge missed r262819, that fixes broken build.glebius2014-03-231-4/+4
|
* MFC 261991:dim2014-03-2131-477/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade our copy of llvm/clang to 3.4 release. This version supports all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC 262121 (by emaste): Update lldb for clang/llvm 3.4 import This commit largely restores the lldb source to the upstream r196259 snapshot with the addition of threaded inferior support and a few bug fixes. Specific upstream lldb revisions restored include: SVN git 181387 779e6ac 181703 7bef4e2 182099 b31044e 182650 f2dcf35 182683 0d91b80 183862 15c1774 183929 99447a6 184177 0b2934b 184948 4dc3761 184954 007e7bc 186990 eebd175 Sponsored by: DARPA, AFRL MFC 262186 (by emaste): Fix mismerge in r262121 A break statement was lost in the merge. The error had no functional impact, but restore it to reduce the diff against upstream. MFC 262303: Pull in r197521 from upstream clang trunk (by rdivacky): Use the integrated assembler by default on FreeBSD/ppc and ppc64. Requested by: jhibbits MFC 262611: Pull in r196874 from upstream llvm trunk: Fix a crash that occurs when PWD is invalid. MCJIT needs to be able to run in hostile environments, even when PWD is invalid. There's no need to crash MCJIT in this case. The obvious fix is to simply leave MCContext's CompilationDir empty when PWD can't be determined. This way, MCJIT clients, and other clients that link with LLVM don't need a valid working directory. If we do want to guarantee valid CompilationDir, that should be done only for clients of getCompilationDir(). This is as simple as checking for an empty string. The only current use of getCompilationDir is EmitGenDwarfInfo, which won't conceivably run with an invalid working dir. However, in the purely hypothetically and untestable case that this happens, the AT_comp_dir will be omitted from the compilation_unit DIE. This should help fix assertions occurring with ports-mgmt/tinderbox, when it is using jails, and sometimes invalidates clang's current working directory. Reported by: decke MFC 262809: Pull in r203007 from upstream clang trunk: Don't produce an alias between destructors with different calling conventions. Fixes pr19007. (Please note that is an LLVM PR identifier, not a FreeBSD one.) This should fix Firefox and/or libxul crashes (due to problems with regparm/stdcall calling conventions) on i386. Reported by: multiple users on freebsd-current PR: bin/187103 MFC 263048: Repair recognition of "CC" as an alias for the C++ compiler, since it was silently broken by upstream for a Windows-specific use-case. Apparently some versions of CMake still rely on this archaic feature... Reported by: rakuco MFC 263049: Garbage collect the old way of adding the libstdc++ include directories in clang's InitHeaderSearch.cpp. This has been superseded by David Chisnall's commit in r255321. Moreover, if libc++ is used, the libstdc++ include directories should not be in the search path at all. These directories are now only used if you pass -stdlib=libstdc++.
* Merge r262763, r262767, r262771, r262806 from head:glebius2014-03-213-31/+38
| | | | | | | | | | - Remove rt_metrics_lite and simply put its members into rtentry. - 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.
* Merge r259562,r259566,r259638,r259645,r260124 by melifaro:glebius2014-03-197-214/+351
| | | | | Switch netstat -rn to use standard API for retrieving list of routes instead of peeking inside in-kernel radix via kget.
* MFC r262540:eadler2014-03-132-253/+202
| | | | | | r262540 | eadler | 2014-02-26 19:52:34 -0500 (Wed, 26 Feb 2014) | 2 lines I had some unrelated (wrong) changes to makewhatis. Undo them.
* MFC r262539:eadler2014-03-132-202/+253
| | | | | | linprocfs: add support for /sys/kernel/random/uuid PR: kern/186187
* Bulk sync of pf changes from head, in attempt to fixup broken build Iglebius2014-03-125-3/+23
| | | | | | | | | made in r263029. Merge r257186,257215,257349,259736,261797. These changesets split pfvar.h into several smaller headers and make userland utilities to include only some of them.
* MFC: r262333brueffer2014-03-081-5/+2
| | | | | | | | | | Simplify the way the end of a singly linked list is followed (for adding 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 r262645,r262647:eadler2014-03-082-6/+19
| | | | | | | | | | | | | | | ssh-copy-id: avoid sending private keys; add -v option 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. ssh-copy-id: add restorecon call 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 various fixes for the ATF tests.jmmv2014-03-062-1/+20
| | | | | | | | | - r260505 Allow tests to provide a Kyuafile when they relied on auto-generation. - r260525 Respect the original layout of the atf-{c,c++} tests. - r260526 Fix path to the process_helpers for the libatf-c++ tests. - r260576 Generate and install pkg-config files for atf. - r260577 Add atf pkg-config files from the vendor branch. - r260584 Prevent misc_helpers from running as a test.
* MFC r262525:trasz2014-03-061-5/+0
| | | | | | | | There is no need to prevent iscsictl from adding iSER session when there 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
* MFC r262247:trasz2014-03-061-1/+16
| | | | | | | Make it clear that there are two ways to add a session using iscsictl(8), and some options require configuration file. Sponsored by: The FreeBSD Foundation
* MFC r261714:trasz2014-03-062-1/+5
| | | | | | | Make iscsictl(8) properly handle (optional) semicolons in iscsi.conf, instead of ignoring them and echoing them to stdout. Sponsored by: The FreeBSD Foundation
* MFC r261713:trasz2014-03-061-22/+22
| | | | | | Simplify. Sponsored by: The FreeBSD Foundation
* MFC r261712:trasz2014-03-061-2/+0
| | | | | | Remove unused variable. Sponsored by: The FreeBSD Foundation
* MFC r261711:trasz2014-03-061-33/+33
| | | | | | Yacc cleanup; no functional changes. Sponsored by: The FreeBSD Foundation
* Merge r261582, r261601, r261610, r261613, r261627, r261640, r261641, r261823,glebius2014-03-044-3/+90
| | | | | | | | | | r261825, r261859, r261875, r261883, r261911, r262027, r262028, r262029, r262030, r262162 from head. Large flowtable revamp. See commit messages for merged revisions for details. Sponsored by: Netflix
* MFC r261296:brooks2014-03-013-3/+16
| | | | | | | | | | | | | Merge from CheriBSD: commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. Sponsored by: DARPA, AFRL
* MFH (r261233): fix whitespace and bump copyrightdes2014-02-272-7/+8
| | | | MFH (r261234): increase buffer size
* MFC r261934:bdrewery2014-02-231-55/+135
| | | | | | Rework rctl(8) manpage Approved by: bapt (mentor, implicit)
* MFC r257129,257936,258084,258569,258602,262250,262251peter2014-02-203-5/+14
| | | | svn-1.8.4, 1.8.5, 1.8.8 and self-contained private support libraries
* MFC 261512,261514:jhb2014-02-191-35/+27
| | | | | | | - Partially revert r52493 and change client side interval statistics to report the actual number of RPCs issued, not the theoretical number that would be issued if all caching was disabled. - Use the DELTA() macro to tidy the server-side interval stats code a bit.
* MFC 261780:jhb2014-02-192-1/+7
| | | | | Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an explicit object type.
* MFC r261895:wblock2014-02-181-19/+3
| | | | | | Remove mention of minimum password length and upper/lower case checking, patch supplied by Allan Jude <freebsd@allanjude.com>. Add xref to pam_passwdqc(8), where that testing is now done.
* MFC r260255:trasz2014-02-111-1/+5
| | | | | | Properly document -u and -s. Sponsored by: The FreeBSD Foundation
* Merged /head:r256510,256512,257376,257469,260052:glebius2014-01-276-463/+314
| | | | Make 'netstat -i' use getifaddrs(3) instead of kvm(3).
* MFC r260621jhibbits2014-01-221-0/+1
| | | | Add missing EM_PPC64 to e_machine header display.
* MFC r260833:trociny2014-01-201-3/+6
| | | | | | | | Bring back r226403, the fix for bin/161526, which was (accidentally?) reverted in r238896. PR: bin/161526 Reported by: Karli.Sjoberg slu.se
* MFC r260336,r260355: find: Fix -lname and -ilname:jilles2014-01-122-3/+18
| | | | | | | | | | | | | | | | | | * Take into account that readlink() does not add a terminating '\0'. * Do not match symlinks that are followed because of -H or -L. This is explicitly documented in GNU find's info file and is like -type l. * Fix matching symlinks in subdirectories when fts changes directories. As before, symlinks of length PATH_MAX or more are not handled correctly. (These can only be created on other operating systems.) Also, avoid some readlink() calls on files that are obviously not symlinks (because of fts(3) restrictions, not all of them). PR: bin/185393 Submitted by: Ben Reser (parts, original version)
* MFC r260106:trasz2014-01-021-3/+0
| | | | | | | The devd part never got implemented; remove for now, until someone actually needs this feature and can talk to me about how it should look like. Sponsored by: The FreeBSD Foundation
* MFC r260105:trasz2014-01-021-3/+3
| | | | | | Fix typo. Sponsored by: The FreeBSD Foundation
* MFC r257532 (by adrian):dim2013-12-301-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix this build for clang. MFC r259730: To avoid having to explicitly test COMPILER_TYPE for setting clang-specific or gcc-specific flags, introduce the following new variables for use in Makefiles: CFLAGS.clang CFLAGS.gcc CXXFLAGS.clang CXXFLAGS.gcc In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for the right compiler. MFC r259913: For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc. MFC r259927: Fix pc98 build, by also forcing COMPILER_TYPE in sys/boot/pc98/boot2's Makefile. Pointy hat to: dim
* Plug the ATF tests into the build.jmmv2013-12-287-3/+46
| | | | | | | | | | | | This is a MFC into stable/10 of: - r257849 Add libatf-c++ to the prebuild libs. - r257853 Build and install the atf tests. - r258233 Move all atf directories to the tests mtree. - r258285 Fix the build of some ATF tests. This change is "make tinderbox" clean on ref10-amd64 with the default settings of WITHOUT_TESTS. It is likely for the WITH_TESTS build to still be broken because not all relevant changes have been merged yet.
* Set up the /usr/tests hierarchy.jmmv2013-12-281-4/+4
| | | | | | | | | | | | | | | | | This is a MFC of the following into stable/10: - r257097 Set up the /usr/tests hierarchy. - r257098 Add missing WITHOUTTESTS file. - r257100 Add a tests(7) manual page. - r257105 Disable WITHTESTS= for now. - r257848 Fix buildworld when WITHTESTS is enabled. - r257850 Subsume the functionality of MKATF into MKTESTS. - r257851 Handle the removal of the test suite when WITHOUTTESTS=yes. - r257852 Install category Kyuafiles from their category directories. - r258232 Install BSD.tests.mtree when MKTESTS is yes. Note that building with WITH_TESTS is still broken at this point (and hence why WITHOUT_TESTS is the set as the default). Subsequent pullups will fix the remaining issues.
* MFC r257631: Add myself to the committers-src list and to the calendar.jmmv2013-12-281-0/+1
|
* MFC r259740:dim2013-12-251-4/+4
| | | | | | In usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced if SORT_THREADS is defined, so make the whole function conditional, instead of just the pthread calls in it.
* MFC r259473:dim2013-12-247-6/+13
| | | | | | | Enable llvm's integrated assembler for PowerPC, since it should now be good enough for typical usage. Requested by: rdivacky
OpenPOWER on IntegriCloud